public class MongoRecordReader extends AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION| Constructor and Description |
|---|
MongoRecordReader(MongoSubScan.MongoSubScanSpec subScanSpec,
List<SchemaPath> projectedColumns,
FragmentContext context,
MongoStoragePlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected Collection<SchemaPath> |
transformColumns(Collection<SchemaPath> projectedColumns) |
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumnspublic MongoRecordReader(MongoSubScan.MongoSubScanSpec subScanSpec, List<SchemaPath> projectedColumns, FragmentContext context, MongoStoragePlugin plugin)
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> projectedColumns)
transformColumns in class AbstractRecordReaderpublic 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()
public String toString()
toString in class AbstractRecordReaderCopyright © 2021 The Apache Software Foundation. All rights reserved.