@Override public long longValue() throws IOException { return slice.readLong(((long) doc) << 3); } };
@Override public long get(long index) { try { return in.readLong(this.offset + index * 5) >>> 24; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 6) >>> 16; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 7) >>> 8; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(offset + (index << 3)); } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long longValue() throws IOException { return slice.readLong(((long) disi.index()) << 3); } };
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.readLong(((long)docID) << 3L); } };
@Override public long longValue() throws IOException { return slice.readLong(((long) doc) << 3); } };
@Override public long get(long index) { try { return in.readLong(this.offset + index * 6) >>> 16; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 5) >>> 24; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 7) >>> 8; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(offset + (index << 3)); } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 5) >>> 24; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 6) >>> 16; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 6) >>> 16; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long get(long index) { try { return in.readLong(this.offset + index * 7) >>> 8; } catch (IOException e) { throw new RuntimeException(e); } } }
@Override public long longValue() throws IOException { return slice.readLong(((long) disi.index()) << 3); } };