public class DrillParquetReader extends CommonParquetRecordReader
CommonParquetRecordReader.Metric
footer, fragmentContext, NUM_RECORDS_TO_READ_NOT_SPECIFIED, operatorContext, parquetReaderStats
DEFAULT_TEXT_COLS_TO_READ
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
Constructor and Description |
---|
DrillParquetReader(FragmentContext fragmentContext,
org.apache.parquet.hadoop.metadata.ParquetMetadata footer,
RowGroupReadEntry entry,
List<SchemaPath> columns,
DrillFileSystem fileSystem,
ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates,
long recordsToRead) |
Modifier and Type | Method and Description |
---|---|
void |
allocate(Map<String,ValueVector> vectorMap) |
void |
close() |
int |
next()
Increments this record reader forward, writing via the provided output
mutator into the output batch.
|
void |
setup(OperatorContext context,
OutputMutator output)
Configure the RecordReader with the provided schema and the record batch that should be written to.
|
String |
toString() |
closeStats, handleAndRaise, initNumRecordsToRead, updateRowGroupsStats
getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, transformColumns
public DrillParquetReader(FragmentContext fragmentContext, org.apache.parquet.hadoop.metadata.ParquetMetadata footer, RowGroupReadEntry entry, List<SchemaPath> columns, DrillFileSystem fileSystem, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates, long recordsToRead)
public void allocate(Map<String,ValueVector> vectorMap) throws OutOfMemoryException
allocate
in interface RecordReader
allocate
in class AbstractRecordReader
OutOfMemoryException
public void setup(OperatorContext context, OutputMutator output) throws ExecutionSetupException
RecordReader
context
- operator context for the readeroutput
- The place where output for a particular scan should be written. The record reader is responsible for
mutating the set of schema values for that particular record.ExecutionSetupException
public int next()
RecordReader
public void close()
public String toString()
toString
in class AbstractRecordReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.