Package io.trino.parquet.reader
Class ParquetReader
java.lang.Object
io.trino.parquet.reader.ParquetReader
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParquetReader(Optional<String> fileCreatedBy, List<Field> columnFields, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, List<Long> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext memoryContext, ParquetReaderOptions options, Function<Exception, RuntimeException> exceptionTransform) ParquetReader(Optional<String> fileCreatedBy, List<Field> columnFields, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, List<Long> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext memoryContext, ParquetReaderOptions options, Function<Exception, RuntimeException> exceptionTransform, Optional<TupleDomainParquetPredicate> parquetPredicate, List<Optional<org.apache.parquet.internal.filter2.columnindex.ColumnIndexStore>> columnIndexStore, Optional<ParquetWriteValidation> writeValidation) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static List<PrimitiveField>getPrimitiveFields(List<Field> fields) longGet the global row index of the first row in the last batch.nextPage()
-
Field Details
-
PARQUET_CODEC_METRIC_PREFIX
- See Also:
-
COLUMN_INDEX_ROWS_FILTERED
- See Also:
-
-
Constructor Details
-
ParquetReader
public ParquetReader(Optional<String> fileCreatedBy, List<Field> columnFields, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, List<Long> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext memoryContext, ParquetReaderOptions options, Function<Exception, RuntimeException> exceptionTransform) throws IOException- Throws:
IOException
-
ParquetReader
public ParquetReader(Optional<String> fileCreatedBy, List<Field> columnFields, List<org.apache.parquet.hadoop.metadata.BlockMetaData> blocks, List<Long> firstRowsOfBlocks, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext memoryContext, ParquetReaderOptions options, Function<Exception, RuntimeException> exceptionTransform, Optional<TupleDomainParquetPredicate> parquetPredicate, List<Optional<org.apache.parquet.internal.filter2.columnindex.ColumnIndexStore>> columnIndexStore, Optional<ParquetWriteValidation> writeValidation) throws IOException- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
nextPage
- Throws:
IOException
-
lastBatchStartRow
public long lastBatchStartRow()Get the global row index of the first row in the last batch. -
getMetrics
-
getPrimitiveFields
-
readBlock
- Throws:
IOException
-
getDataSource
-
getMemoryContext
-