public byte[] next(int length) throws IOException { byte[] data = new byte[length]; next(data, 0, length); return data; }
@Override protected ByteArrayInputStream createValueStream(Slice slice) throws OrcCorruptionException { Optional<OrcDecompressor> orcDecompressor = createOrcDecompressor(ORC_DATA_SOURCE_ID, SNAPPY, COMPRESSION_BLOCK_SIZE); return new ByteArrayInputStream(new OrcInputStream(ORC_DATA_SOURCE_ID, slice.getInput(), orcDecompressor, newSimpleAggregatedMemoryContext(), slice.getRetainedSize())); }
case CHAR: case BINARY: return new ByteArrayInputStream(inputStream); case TIMESTAMP: return createLongStream(inputStream, encoding, type, true, usesVInt); case CHAR: case BINARY: return new ByteArrayInputStream(inputStream); case CHAR: case BINARY: return new ByteArrayInputStream(inputStream);
@Override protected Slice readValue(ByteArrayInputStream valueStream) throws IOException { return Slices.wrappedBuffer(valueStream.next(8)); } }
@Override protected ByteArrayInputStream createValueStream(Slice slice) throws OrcCorruptionException { Optional<OrcDecompressor> orcDecompressor = createOrcDecompressor(ORC_DATA_SOURCE_ID, SNAPPY, COMPRESSION_BLOCK_SIZE); return new ByteArrayInputStream(new OrcInputStream(ORC_DATA_SOURCE_ID, slice.getInput(), orcDecompressor, newSimpleAggregatedMemoryContext(), slice.getRetainedSize())); }
if (length > 0) { dictionaryDataStream.next(data, offset, offset + length);
case CHAR: case BINARY: return new ByteArrayInputStream(inputStream); case TIMESTAMP: return createLongStream(inputStream, encoding, type, true, usesVInt); case CHAR: case BINARY: return new ByteArrayInputStream(inputStream); case CHAR: case BINARY: return new ByteArrayInputStream(inputStream);
public byte[] next(int length) throws IOException { byte[] data = new byte[length]; next(data, 0, length); return data; }
@Override protected Slice readValue(ByteArrayInputStream valueStream) throws IOException { return Slices.wrappedBuffer(valueStream.next(8)); } }
if (length > 0) { dictionaryDataStream.next(data, offset, offset + length);