public class OrcReader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE_GROWTH_FACTOR |
static int |
INITIAL_BATCH_SIZE |
static int |
MAX_BATCH_SIZE |
Constructor and Description |
---|
OrcReader(OrcDataSource orcDataSource,
OrcEncoding orcEncoding,
OrcFileTailSource orcFileTailSource,
StripeMetadataSource stripeMetadataSource,
OrcAggregatedMemoryContext aggregatedMemoryContext,
OrcReaderOptions orcReaderOptions,
boolean cacheable) |
Modifier and Type | Method and Description |
---|---|
OrcBatchRecordReader |
createBatchRecordReader(Map<Integer,Type> includedColumns,
OrcPredicate predicate,
org.joda.time.DateTimeZone hiveStorageTimeZone,
OrcAggregatedMemoryContext systemMemoryUsage,
int initialBatchSize) |
OrcBatchRecordReader |
createBatchRecordReader(Map<Integer,Type> includedColumns,
OrcPredicate predicate,
long offset,
long length,
org.joda.time.DateTimeZone hiveStorageTimeZone,
OrcAggregatedMemoryContext systemMemoryUsage,
int initialBatchSize) |
OrcSelectiveRecordReader |
createSelectiveRecordReader(Map<Integer,Type> includedColumns,
List<Integer> outputColumns,
Map<Integer,Map<Subfield,TupleDomainFilter>> filters,
List<FilterFunction> filterFunctions,
Map<Integer,Integer> filterFunctionInputs,
Map<Integer,List<Subfield>> requiredSubfields,
Map<Integer,Object> constantValues,
Map<Integer,Function<Block,Block>> coercers,
OrcPredicate predicate,
long offset,
long length,
org.joda.time.DateTimeZone hiveStorageTimeZone,
boolean legacyMapSubscript,
OrcAggregatedMemoryContext systemMemoryUsage,
Optional<OrcWriteValidation> writeValidation,
int initialBatchSize) |
int |
getBufferSize() |
List<String> |
getColumnNames() |
CompressionKind |
getCompressionKind() |
Footer |
getFooter() |
Metadata |
getMetadata() |
static void |
validateWrite(Optional<OrcWriteValidation> writeValidation,
OrcDataSource orcDataSource,
Predicate<OrcWriteValidation> test,
String messageFormat,
Object... args) |
public static final int MAX_BATCH_SIZE
public static final int INITIAL_BATCH_SIZE
public static final int BATCH_SIZE_GROWTH_FACTOR
public OrcReader(OrcDataSource orcDataSource, OrcEncoding orcEncoding, OrcFileTailSource orcFileTailSource, StripeMetadataSource stripeMetadataSource, OrcAggregatedMemoryContext aggregatedMemoryContext, OrcReaderOptions orcReaderOptions, boolean cacheable) throws IOException
IOException
public Footer getFooter()
public Metadata getMetadata()
public int getBufferSize()
public CompressionKind getCompressionKind()
public OrcBatchRecordReader createBatchRecordReader(Map<Integer,Type> includedColumns, OrcPredicate predicate, org.joda.time.DateTimeZone hiveStorageTimeZone, OrcAggregatedMemoryContext systemMemoryUsage, int initialBatchSize) throws OrcCorruptionException
OrcCorruptionException
public OrcBatchRecordReader createBatchRecordReader(Map<Integer,Type> includedColumns, OrcPredicate predicate, long offset, long length, org.joda.time.DateTimeZone hiveStorageTimeZone, OrcAggregatedMemoryContext systemMemoryUsage, int initialBatchSize) throws OrcCorruptionException
OrcCorruptionException
public OrcSelectiveRecordReader createSelectiveRecordReader(Map<Integer,Type> includedColumns, List<Integer> outputColumns, Map<Integer,Map<Subfield,TupleDomainFilter>> filters, List<FilterFunction> filterFunctions, Map<Integer,Integer> filterFunctionInputs, Map<Integer,List<Subfield>> requiredSubfields, Map<Integer,Object> constantValues, Map<Integer,Function<Block,Block>> coercers, OrcPredicate predicate, long offset, long length, org.joda.time.DateTimeZone hiveStorageTimeZone, boolean legacyMapSubscript, OrcAggregatedMemoryContext systemMemoryUsage, Optional<OrcWriteValidation> writeValidation, int initialBatchSize)
public static void validateWrite(Optional<OrcWriteValidation> writeValidation, OrcDataSource orcDataSource, Predicate<OrcWriteValidation> test, String messageFormat, Object... args) throws OrcCorruptionException
OrcCorruptionException
Copyright © 2012–2020. All rights reserved.