Package com.exasol.parquetio.reader
Class RowParquetChunkReader
java.lang.Object
com.exasol.parquetio.reader.RowParquetChunkReader
A Parquet file reader that reads only provided row groups.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classIterator that reads the rows of a row group.static classIterator that reads the rows of a given list of chunks. -
Constructor Summary
ConstructorsConstructorDescriptionRowParquetChunkReader(org.apache.parquet.io.InputFile file) Creates a new instance ofRowParquetChunkReader.RowParquetChunkReader(org.apache.parquet.io.InputFile file, long start, long end) Creates a new instance ofRowParquetChunkReader.RowParquetChunkReader(org.apache.parquet.io.InputFile file, List<ChunkInterval> chunks) Creates a new instance ofRowParquetChunkReader. -
Method Summary
Modifier and TypeMethodDescriptioniterator()Get an iterator that reads the rows.voidReads row group chunks of a Parquet file.
-
Constructor Details
-
RowParquetChunkReader
public RowParquetChunkReader(org.apache.parquet.io.InputFile file) Creates a new instance ofRowParquetChunkReader. Since no chunks are provided it reads all row groups of given file.- Parameters:
file- a Parquet file
-
RowParquetChunkReader
public RowParquetChunkReader(org.apache.parquet.io.InputFile file, long start, long end) Creates a new instance ofRowParquetChunkReader.- Parameters:
file- a Parquet filestart- a starting row group positionend- an ending row group position (exclusive)
-
RowParquetChunkReader
Creates a new instance ofRowParquetChunkReader.- Parameters:
file- a Parquet filechunks- a list of row group chunks
-
-
Method Details
-
iterator
Get an iterator that reads the rows.- Returns:
- iterator
-
read
Reads row group chunks of a Parquet file.- Parameters:
rowConsumer- a consumer function that accept read data
-