public final class TextReader extends Object
| Constructor and Description |
|---|
TextReader(TextParsingSettings settings,
org.apache.drill.exec.store.easy.text.reader.TextInput input,
org.apache.drill.exec.store.easy.text.reader.TextOutput output,
DrillBuf workBuf)
The CsvParser supports all settings provided by
TextParsingSettings,
and requires this configuration to be properly initialized. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendIgnoringWhitespace(byte data) |
void |
close()
Invoked once there are no more records and we are done with the
current record reader to clean up state.
|
void |
finishBatch()
Finish the processing of a batch, indicates to the output
interface to wrap up the batch
|
org.apache.drill.exec.store.easy.text.reader.TextOutput |
getOutput() |
long |
getPos() |
boolean |
parseNext()
Parses the next record from the input.
|
void |
resetForNextBatch()
Inform the output interface to indicate we are starting a new record batch
|
void |
start()
Starting point for the reader.
|
public TextReader(TextParsingSettings settings, org.apache.drill.exec.store.easy.text.reader.TextInput input, org.apache.drill.exec.store.easy.text.reader.TextOutput output, DrillBuf workBuf)
TextParsingSettings,
and requires this configuration to be properly initialized.settings - the parser configurationinput - input streamoutput - interface to produce output record batchworkBuf - working buffer to handle whitespacepublic org.apache.drill.exec.store.easy.text.reader.TextOutput getOutput()
public void resetForNextBatch()
public long getPos()
public void appendIgnoringWhitespace(byte data)
public final void start()
throws IOException
IOException - for input file read errorspublic final boolean parseNext()
throws IOException
IOException - for input file read errorspublic void finishBatch()
public void close()
throws IOException
IOException - for input file read errorsCopyright © 2021 The Apache Software Foundation. All rights reserved.