public class DrillTextRecordReader extends AbstractRecordReader
DEFAULT_TEXT_COLS_TO_READALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION| Constructor and Description |
|---|
DrillTextRecordReader(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.conf.Configuration fsConf,
FragmentContext context,
char delimiter,
List<SchemaPath> columns) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
find(org.apache.hadoop.io.Text text,
byte delimiter,
int start)
Returns the index within the text of the first occurrence of delimiter, starting the search at the specified index.
|
protected List<SchemaPath> |
getDefaultColumnsToRead() |
protected void |
handleAndRaise(String s,
Exception e) |
boolean |
isStarQuery() |
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, isSkipQuery, setColumns, toString, transformColumnspublic DrillTextRecordReader(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.conf.Configuration fsConf,
FragmentContext context,
char delimiter,
List<SchemaPath> columns)
protected List<SchemaPath> getDefaultColumnsToRead()
getDefaultColumnsToRead in class AbstractRecordReaderpublic boolean isStarQuery()
isStarQuery 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 int find(org.apache.hadoop.io.Text text,
byte delimiter,
int start)
text - the text being searcheddelimiter - the delimiterstart - the index to start searchingpublic void close()
Copyright © 2017 The Apache Software Foundation. All rights reserved.