public class RestrictedJsonRecordReader extends MaprDBJsonRecordReader
MaprDBJsonRecordReader.SchemaState
condition, documentWriter, formatPlugin, ID_ONLY_PROJECTION, lastDocument, lastDocumentReader, maxRecordsToRead, subScanSpec, table, valueWriter, vectorWriter, vectorWriterMutator
DEFAULT_TEXT_COLS_TO_READ
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
Constructor and Description |
---|
RestrictedJsonRecordReader(MapRDBSubScanSpec subScanSpec,
MapRDBFormatPlugin formatPlugin,
List<SchemaPath> projectedColumns,
FragmentContext context,
int maxRecordsToRead,
TupleMetadata schema) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Check if the reader may have potentially more data to be read in subsequent iterations.
|
int |
next()
Increments this record reader forward, writing via the provided output
mutator into the output batch.
|
void |
readToInitSchema() |
void |
setup(OperatorContext context,
OutputMutator output)
Configure the RecordReader with the provided schema and the record batch that should be written to.
|
close, getIdOnly, getIgnoreSchemaChange, getScannedFields, getTable, includesIdField, nextDocument, nextDocumentReader, toString, transformColumns
allocate, getColumns, getDefaultColumnsToRead, isSkipQuery, isStarQuery, setColumns
public RestrictedJsonRecordReader(MapRDBSubScanSpec subScanSpec, MapRDBFormatPlugin formatPlugin, List<SchemaPath> projectedColumns, FragmentContext context, int maxRecordsToRead, TupleMetadata schema)
public void readToInitSchema()
public void setup(OperatorContext context, OutputMutator output) throws ExecutionSetupException
RecordReader
setup
in interface RecordReader
setup
in class MaprDBJsonRecordReader
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
next
in interface RecordReader
next
in class MaprDBJsonRecordReader
public boolean hasNext()
RecordReader
hasNext
in interface RecordReader
hasNext
in class AbstractRecordReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.