Package org.apache.drill.exec.store.mock
Class MockRecordReader
java.lang.Object
org.apache.drill.exec.store.AbstractRecordReader
org.apache.drill.exec.store.mock.MockRecordReader
- All Implemented Interfaces:
- AutoCloseable,- RecordReader
- 
Field SummaryFields inherited from class org.apache.drill.exec.store.AbstractRecordReaderDEFAULT_TEXT_COLS_TO_READFields inherited from interface org.apache.drill.exec.store.RecordReaderALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
- 
Constructor SummaryConstructorsConstructorDescriptionMockRecordReader(FragmentContext context, MockTableDef.MockScanEntry config) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidallocate(Map<String, ValueVector> vectorMap) voidclose()intnext()Increments this record reader forward, writing via the provided output mutator into the output batch.voidsetup(OperatorContext context, OutputMutator output) Configure the RecordReader with the provided schema and the record batch that should be written to.Methods inherited from class org.apache.drill.exec.store.AbstractRecordReadergetColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString, transformColumns
- 
Constructor Details- 
MockRecordReader
 
- 
- 
Method Details- 
setupDescription copied from interface:RecordReaderConfigure the RecordReader with the provided schema and the record batch that should be written to.- Parameters:
- context- operator context for the reader
- output- 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.
- Throws:
- ExecutionSetupException
 
- 
nextpublic int next()Description copied from interface:RecordReaderIncrements this record reader forward, writing via the provided output mutator into the output batch.- Returns:
- The number of additional records added to the output.
 
- 
allocate- Specified by:
- allocatein interface- RecordReader
- Overrides:
- allocatein class- AbstractRecordReader
- Throws:
- OutOfMemoryException
 
- 
closepublic void close()
 
-