Class ChunkedInputStream

java.lang.Object
java.io.InputStream
io.trino.parquet.reader.ChunkedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ChunkedInputStream extends InputStream
A single continuous InputStream over multiple Slices read on demand using given collection of ChunkReaders. It is used to read parquet column chunk in limited (small) byte chunks (8MB by default, controlled by ParquetReaderOptions.getMaxReadBlockSize()). Column chunks consists of multiple pages. This abstraction is used because the page size is unknown until the page header is read and page header and page data can be split between two or more byte chunks.