public abstract class BatchReader extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchReader.FixedWidthReader
Strategy for reading a record batch when all columns are
fixed-width.
|
static class |
BatchReader.MockBatchReader
Strategy for reading mock records.
|
static class |
BatchReader.VariableWidthReader
Strategy for reading a record batch when at last one column is
variable width.
|
| Constructor and Description |
|---|
BatchReader(ReadState readState) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
readAllFixedFields(long recordsToRead) |
protected void |
readAllFixedFieldsParallel(long recordsToRead) |
protected void |
readAllFixedFieldsSerial(long recordsToRead) |
int |
readBatch() |
protected abstract int |
readRecords(ColumnReader<?> firstColumnStatus,
long recordsToRead) |
protected final ReadState readState
public BatchReader(ReadState readState)
protected abstract int readRecords(ColumnReader<?> firstColumnStatus, long recordsToRead) throws Exception
Exceptionprotected void readAllFixedFields(long recordsToRead)
throws Exception
Exceptionprotected void readAllFixedFieldsSerial(long recordsToRead)
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.