public class SequenceFileRecordReader extends AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION| Constructor and Description |
|---|
SequenceFileRecordReader(org.apache.hadoop.mapred.FileSplit split,
DrillFileSystem dfs,
String queryUserName,
String opUserName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected boolean |
isSkipQuery()
Returns true if reader should skip all of the columns, reporting number of records only.
|
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.
|
allocate, getColumns, getDefaultColumnsToRead, isStarQuery, setColumns, toString, transformColumnspublic SequenceFileRecordReader(org.apache.hadoop.mapred.FileSplit split,
DrillFileSystem dfs,
String queryUserName,
String opUserName)
protected boolean isSkipQuery()
AbstractRecordReaderisSkipQuery 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()
Copyright © 2017 The Apache Software Foundation. All rights reserved.