Package io.trino.orc
Class OrcReader
- java.lang.Object
-
- io.trino.orc.OrcReader
-
public class OrcReader extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrcReader.FieldMapperstatic interfaceOrcReader.FieldMapperFactorystatic classOrcReader.NameBasedProjectedLayoutstatic interfaceOrcReader.ProjectedLayout
-
Field Summary
Fields Modifier and Type Field Description static intBATCH_SIZE_GROWTH_FACTORstatic intINITIAL_BATCH_SIZEstatic intMAX_BATCH_SIZE
-
Method Summary
-
-
-
Field Detail
-
MAX_BATCH_SIZE
public static final int MAX_BATCH_SIZE
- See Also:
- Constant Field Values
-
INITIAL_BATCH_SIZE
public static final int INITIAL_BATCH_SIZE
- See Also:
- Constant Field Values
-
BATCH_SIZE_GROWTH_FACTOR
public static final int BATCH_SIZE_GROWTH_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createOrcReader
public static Optional<OrcReader> createOrcReader(OrcDataSource orcDataSource, OrcReaderOptions options) throws IOException
- Throws:
IOException
-
getFooter
public Footer getFooter()
-
getMetadata
public Metadata getMetadata()
-
getRootColumn
public OrcColumn getRootColumn()
-
getBufferSize
public int getBufferSize()
-
getCompressionKind
public CompressionKind getCompressionKind()
-
createRecordReader
public OrcRecordReader createRecordReader(List<OrcColumn> readColumns, List<Type> readTypes, OrcPredicate predicate, org.joda.time.DateTimeZone legacyFileTimeZone, AggregatedMemoryContext systemMemoryUsage, 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 systemMemoryUsage, int initialBatchSize, Function<Exception,RuntimeException> exceptionTransform, OrcReader.FieldMapperFactory fieldMapperFactory) throws OrcCorruptionException
- Throws:
OrcCorruptionException
-
fullyProjectedLayout
public static OrcReader.ProjectedLayout fullyProjectedLayout()
Constructs a ProjectedLayout where all subfields must be read
-
-