Package io.trino.parquet.reader
Class ParquetReader
- java.lang.Object
-
- io.trino.parquet.reader.ParquetReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ParquetReader extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description ParquetReader(Optional<String> fileCreatedBy, org.apache.parquet.io.MessageColumnIO messageColumnIO, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, Optional<List<Long>> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext systemMemoryContext, ParquetReaderOptions options)ParquetReader(Optional<String> fileCreatedBy, org.apache.parquet.io.MessageColumnIO messageColumnIO, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, Optional<List<Long>> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext systemMemoryContext, ParquetReaderOptions options, Predicate parquetPredicate, List<Optional<org.apache.parquet.internal.filter2.columnindex.ColumnIndexStore>> columnIndexStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ParquetDataSourcegetDataSource()AggregatedMemoryContextgetSystemMemoryContext()longlastBatchStartRow()Get the global row index of the first row in the last batch.intnextBatch()BlockreadBlock(Field field)
-
-
-
Constructor Detail
-
ParquetReader
public ParquetReader(Optional<String> fileCreatedBy, org.apache.parquet.io.MessageColumnIO messageColumnIO, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, Optional<List<Long>> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext systemMemoryContext, ParquetReaderOptions options) throws IOException
- Throws:
IOException
-
ParquetReader
public ParquetReader(Optional<String> fileCreatedBy, org.apache.parquet.io.MessageColumnIO messageColumnIO, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, Optional<List<Long>> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext systemMemoryContext, ParquetReaderOptions options, Predicate parquetPredicate, List<Optional<org.apache.parquet.internal.filter2.columnindex.ColumnIndexStore>> columnIndexStore) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
lastBatchStartRow
public long lastBatchStartRow()
Get the global row index of the first row in the last batch.
-
nextBatch
public int nextBatch()
-
readBlock
public Block readBlock(Field field) throws IOException
- Throws:
IOException
-
getDataSource
public ParquetDataSource getDataSource()
-
getSystemMemoryContext
public AggregatedMemoryContext getSystemMemoryContext()
-
-