@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
/** * @return a byte stream reading the data + checksum of this block */ DataInputStream getByteStream() { ByteBuff dup = this.buf.duplicate(); dup.position(this.headerSize()); return new DataInputStream(new ByteBuffInputStream(dup)); }
private ByteBuff decompress(CompressionCodec compressor, ByteBuff compressedCellBlock) throws IOException { ByteBuffer cellBlock = decompress(compressor, new ByteBuffInputStream(compressedCellBlock), compressedCellBlock.remaining() * this.cellBlockDecompressionMultiplier); return new SingleByteBuff(cellBlock); }
ByteBuffInputStream bbis = new ByteBuffInputStream(new MultiByteBuff(bb)); assertEquals(15 + s.length(), bbis.available()); assertEquals(1, bbis.read()); bbis = new ByteBuffInputStream(new MultiByteBuff(bb)); DataInputStream dis = new DataInputStream(bbis); dis.read();
@Override public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) throws IOException { final ByteBuffInputStream byteBuffInputStream = new ByteBuffInputStream(onDiskBlock); InputStream dataInputStream = new DataInputStream(byteBuffInputStream);
private ByteBuff decompress(CompressionCodec compressor, ByteBuff compressedCellBlock) throws IOException { ByteBuffer cellBlock = decompress(compressor, new ByteBuffInputStream(compressedCellBlock), compressedCellBlock.remaining() * this.cellBlockDecompressionMultiplier); return new SingleByteBuff(cellBlock); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
@Override public Decoder getDecoder(ByteBuff buf) { return getDecoder(new ByteBuffInputStream(buf)); }
private ByteBuff decompress(CompressionCodec compressor, ByteBuff compressedCellBlock) throws IOException { ByteBuffer cellBlock = decompress(compressor, new ByteBuffInputStream(compressedCellBlock), compressedCellBlock.remaining() * this.cellBlockDecompressionMultiplier); return new SingleByteBuff(cellBlock); }
ByteBuffInputStream bbis = new ByteBuffInputStream(new MultiByteBuff(bb)); assertEquals(15 + s.length(), bbis.available()); assertEquals(1, bbis.read()); bbis = new ByteBuffInputStream(new MultiByteBuff(bb)); DataInputStream dis = new DataInputStream(bbis); dis.read();
@Override public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) throws IOException { final ByteBuffInputStream byteBuffInputStream = new ByteBuffInputStream(onDiskBlock); InputStream dataInputStream = new DataInputStream(byteBuffInputStream);
ByteBuffInputStream bbis = new ByteBuffInputStream(new MultiByteBuff(bb)); assertEquals(15 + s.length(), bbis.available()); assertEquals(1, bbis.read()); bbis = new ByteBuffInputStream(new MultiByteBuff(bb)); DataInputStream dis = new DataInputStream(bbis); dis.read();
@Override public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) throws IOException { final ByteBuffInputStream byteBuffInputStream = new ByteBuffInputStream(onDiskBlock); InputStream dataInputStream = new DataInputStream(byteBuffInputStream);