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<Column> columnFields, List<RowGroupInfo> rowGroups, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext memoryContext, ParquetReaderOptions options, Function<Exception, RuntimeException> exceptionTransform, Optional<TupleDomainParquetPredicate> parquetPredicate, 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<Column> columnFields, List<RowGroupInfo> rowGroups, ParquetDataSource dataSource, org.joda.time.DateTimeZone timeZone, AggregatedMemoryContext memoryContext, ParquetReaderOptions options, Function<Exception, RuntimeException> exceptionTransform, Optional<TupleDomainParquetPredicate> parquetPredicate, 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. -
getColumnFields
-
getMetrics
-
getPrimitiveFields
-
readBlock
- Throws:
IOException
-
getDataSource
-
getMemoryContext
-