public class DrillParquetReader extends AbstractRecordReader
| Modifier and Type | Class and Description |
|---|---|
static class |
DrillParquetReader.ProjectedColumnType |
DEFAULT_TEXT_COLS_TO_READALLOCATOR_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) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocate(Map<String,ValueVector> vectorMap) |
void |
close() |
static org.apache.parquet.schema.MessageType |
getProjection(org.apache.parquet.schema.MessageType schema,
Collection<SchemaPath> columns,
List<SchemaPath> columnsNotFound) |
protected void |
handleAndRaise(String s,
Exception e) |
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.
|
getColumns, getDefaultColumnsToRead, isSkipQuery, isStarQuery, setColumns, toString, transformColumnspublic DrillParquetReader(FragmentContext fragmentContext, org.apache.parquet.hadoop.metadata.ParquetMetadata footer, RowGroupReadEntry entry, List<SchemaPath> columns, DrillFileSystem fileSystem, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates)
public static org.apache.parquet.schema.MessageType getProjection(org.apache.parquet.schema.MessageType schema,
Collection<SchemaPath> columns,
List<SchemaPath> columnsNotFound)
public void allocate(Map<String,ValueVector> vectorMap) throws OutOfMemoryException
allocate in interface RecordReaderallocate in class AbstractRecordReaderOutOfMemoryExceptionpublic void setup(OperatorContext context, OutputMutator output) throws ExecutionSetupException
RecordReadercontext - 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.ExecutionSetupExceptionpublic int next()
RecordReaderpublic void close()
Copyright © 2017 The Apache Software Foundation. All rights reserved.