Package io.trino.orc
Class OrcReader
java.lang.Object
io.trino.orc.OrcReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptioncreateOrcReader(OrcDataSource orcDataSource, OrcReaderOptions options) createRecordReader(List<OrcColumn> readColumns, List<Type> readTypes, OrcPredicate predicate, org.joda.time.DateTimeZone legacyFileTimeZone, AggregatedMemoryContext memoryUsage, int initialBatchSize, Function<Exception, RuntimeException> exceptionTransform) createRecordReader(List<OrcColumn> readColumns, List<Type> readTypes, List<OrcReader.ProjectedLayout> readLayouts, OrcPredicate predicate, long offset, long length, org.joda.time.DateTimeZone legacyFileTimeZone, AggregatedMemoryContext memoryUsage, int initialBatchSize, Function<Exception, RuntimeException> exceptionTransform, OrcReader.FieldMapperFactory fieldMapperFactory) static OrcReader.ProjectedLayoutConstructs a ProjectedLayout where all subfields must be readint
-
Field Details
-
MAX_BATCH_SIZE
public static final int MAX_BATCH_SIZE- See Also:
-
INITIAL_BATCH_SIZE
public static final int INITIAL_BATCH_SIZE- See Also:
-
BATCH_SIZE_GROWTH_FACTOR
public static final int BATCH_SIZE_GROWTH_FACTOR- See Also:
-
-
Method Details
-
createOrcReader
public static Optional<OrcReader> createOrcReader(OrcDataSource orcDataSource, OrcReaderOptions options) throws IOException - Throws:
IOException
-
getColumnNames
-
getMetadata
-
getRootColumn
-
getBufferSize
public int getBufferSize() -
getCompressionKind
-
createRecordReader
public OrcRecordReader createRecordReader(List<OrcColumn> readColumns, List<Type> readTypes, OrcPredicate predicate, org.joda.time.DateTimeZone legacyFileTimeZone, AggregatedMemoryContext memoryUsage, int initialBatchSize, Function<Exception, RuntimeException> exceptionTransform) throws OrcCorruptionException- Throws:
OrcCorruptionException
-
createRecordReader
public OrcRecordReader createRecordReader(List<OrcColumn> readColumns, List<Type> readTypes, List<OrcReader.ProjectedLayout> readLayouts, OrcPredicate predicate, long offset, long length, org.joda.time.DateTimeZone legacyFileTimeZone, AggregatedMemoryContext memoryUsage, int initialBatchSize, Function<Exception, RuntimeException> exceptionTransform, OrcReader.FieldMapperFactory fieldMapperFactory) throws OrcCorruptionException- Throws:
OrcCorruptionException
-
fullyProjectedLayout
Constructs a ProjectedLayout where all subfields must be read
-