public class LTSVRecordReader extends AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READ
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION
Constructor and Description |
---|
LTSVRecordReader(FragmentContext fragmentContext,
org.apache.hadoop.fs.Path path,
DrillFileSystem fileSystem,
List<SchemaPath> columns) |
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.
|
protected Collection<SchemaPath> |
transformColumns(Collection<SchemaPath> projected) |
allocate, getColumns, getDefaultColumnsToRead, hasNext, isSkipQuery, isStarQuery, setColumns, toString
public LTSVRecordReader(FragmentContext fragmentContext, org.apache.hadoop.fs.Path path, DrillFileSystem fileSystem, List<SchemaPath> columns) throws OutOfMemoryException
OutOfMemoryException
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> projected)
transformColumns
in class AbstractRecordReader
public void setup(OperatorContext context, OutputMutator output)
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.public int next()
RecordReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.