@Override public long longValue() throws IOException { return slice.readInt(((long) doc) << 2); } };
@Override public long get(long index) { try { return in.readInt(offset + index * 3) >>> 8; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { long offset = (index * 28) >>> 3; int shift = (int) ((index + 1) & 1) << 2; return (in.readInt(this.offset + offset) >>> shift) & 0xFFFFFFFL; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readInt(this.offset + (index << 2)) & 0xFFFFFFFFL; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { long offset = (index * 20) >>> 3; // TODO: clean this up... int v = in.readInt(this.offset + offset) >>> 8; int shift = (int) ((index + 1) & 1) << 2; return (v >>> shift) & 0xFFFFF; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long longValue() throws IOException { return slice.readInt(((long) disi.index()) << 2); } };
public long get(long index) { final long block = index >>> shift; if (this.block != block) { assert block > this.block : "Reading backwards is illegal: " + this.block + " < " + block; int bitsPerValue; do { offset = blockEndOffset; try { bitsPerValue = slice.readByte(offset++); delta = slice.readLong(offset); offset += Long.BYTES; if (bitsPerValue == 0) { blockEndOffset = offset; } else { final int length = slice.readInt(offset); offset += Integer.BYTES; blockEndOffset = offset + length; } } catch (IOException e) { throw new RuntimeException(e); } this.block ++; } while (this.block != block); values = bitsPerValue == 0 ? LongValues.ZEROES : DirectReader.getInstance(slice, bitsPerValue, offset); } return mul * values.get(index & mask) + delta; } };
@Override public long longValue() throws IOException { final int block = doc >>> shift; if (this.block != block) { int bitsPerValue; do { offset = blockEndOffset; bitsPerValue = slice.readByte(offset++); delta = slice.readLong(offset); offset += Long.BYTES; if (bitsPerValue == 0) { blockEndOffset = offset; } else { final int length = slice.readInt(offset); offset += Integer.BYTES; blockEndOffset = offset + length; } this.block ++; } while (this.block != block); values = bitsPerValue == 0 ? LongValues.ZEROES : DirectReader.getInstance(slice, bitsPerValue, offset); } return mul * values.get(doc & mask) + delta; } };
@Override public long longValue() throws IOException { final int index = disi.index(); final int block = index >>> shift; if (this.block != block) { int bitsPerValue; do { offset = blockEndOffset; bitsPerValue = slice.readByte(offset++); delta = slice.readLong(offset); offset += Long.BYTES; if (bitsPerValue == 0) { blockEndOffset = offset; } else { final int length = slice.readInt(offset); offset += Integer.BYTES; blockEndOffset = offset + length; } this.block ++; } while (this.block != block); values = bitsPerValue == 0 ? LongValues.ZEROES : DirectReader.getInstance(slice, bitsPerValue, offset); } return mul * values.get(index & mask) + delta; } };
@Override public long longValue() throws IOException { return slice.readInt(((long) doc) << 2); } };
@Override public long longValue() throws IOException { return slice.readInt(((long)docID) << 2L); } };
@Override public long get(long index) { try { return in.readInt(offset + index * 3) >>> 8; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readInt(offset + index * 3) >>> 8; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(int docID) { try { return slice.readInt(((long)docID) << 2L); } catch (IOException e) { throw new RuntimeException(e); } } };
@Override public long get(long index) { try { long offset = (index * 28) >>> 3; int shift = (int) ((index + 1) & 1) << 2; return (in.readInt(this.offset + offset) >>> shift) & 0xFFFFFFFL; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readInt(this.offset + (index << 2)) & 0xFFFFFFFFL; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { long offset = (index * 20) >>> 3; // TODO: clean this up... int v = in.readInt(this.offset + offset) >>> 8; int shift = (int) ((index + 1) & 1) << 2; return (v >>> shift) & 0xFFFFF; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(int docID) { try { return slice.readInt(((long)docID) << 2L); } catch (IOException e) { throw new RuntimeException(e); } } };
@Override public long get(long index) { try { long offset = (index * 28) >>> 3; int shift = (int) ((index + 1) & 1) << 2; return (in.readInt(this.offset + offset) >>> shift) & 0xFFFFFFFL; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long longValue() throws IOException { return slice.readInt(((long) disi.index()) << 2); } };