@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); this.in = stream.remainingStream(); } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); this.in = stream.remainingStream(); } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), (stream.available() - stream.position())); this.in = stream.remainingStream(); } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); lengthReader.initFromPage(valueCount, stream); this.in = stream.remainingStream(); }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); lengthReader.initFromPage(valueCount, stream); this.in = stream.remainingStream(); }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); this.in = new LittleEndianDataInputStream(stream.remainingStream()); }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), (stream.available() - stream.position())); this.in = stream.remainingStream(); } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); this.in = new LittleEndianDataInputStream(stream.remainingStream()); }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { this.in = stream.remainingStream(); if (in.available() > 0) { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); int bitWidth = BytesUtils.readIntLittleEndianOnOneByte(in); LOG.debug("bit width {}", bitWidth); decoder = new RunLengthBitPackingHybridDecoder(bitWidth, in); } else { decoder = new RunLengthBitPackingHybridDecoder(1, in) { @Override public int readInt() throws IOException { throw new IOException("Attempt to read from empty page"); } }; } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream stream) throws IOException { this.in = stream.remainingStream(); if (in.available() > 0) { LOG.debug("init from page at offset {} for length {}", stream.position(), stream.available()); int bitWidth = BytesUtils.readIntLittleEndianOnOneByte(in); LOG.debug("bit width {}", bitWidth); decoder = new RunLengthBitPackingHybridDecoder(bitWidth, in); } else { decoder = new RunLengthBitPackingHybridDecoder(1, in) { @Override public int readInt() throws IOException { throw new IOException("Attempt to read from empty page"); } }; } }