public abstract class AbstractRecordReader extends Object implements RecordReader
| Modifier and Type | Field and Description |
|---|---|
protected static List<SchemaPath> |
DEFAULT_TEXT_COLS_TO_READ |
ALLOCATOR_INITIAL_RESERVATION, ALLOCATOR_MAX_RESERVATION| Constructor and Description |
|---|
AbstractRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocate(Map<String,ValueVector> vectorMap) |
protected Collection<SchemaPath> |
getColumns() |
protected List<SchemaPath> |
getDefaultColumnsToRead() |
boolean |
hasNext()
Check if the reader may have potentially more data to be read in subsequent iterations.
|
protected boolean |
isSkipQuery()
Returns true if reader should skip all of the columns, reporting number of records only.
|
protected boolean |
isStarQuery() |
protected void |
setColumns(Collection<SchemaPath> projected) |
String |
toString() |
protected Collection<SchemaPath> |
transformColumns(Collection<SchemaPath> projected) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnext, setupcloseprotected static final List<SchemaPath> DEFAULT_TEXT_COLS_TO_READ
protected final void setColumns(Collection<SchemaPath> projected)
projected - : The column list to be returned from this RecordReader.
1) empty column list: this is for skipAll query. It's up to each storage-plugin to
choose different policy of handling skipAll query. By default, it will use * column.
2) NULL : is NOT allowed. It requires the planner's rule, or GroupScan or ScanBatchCreator to handle NULL.protected Collection<SchemaPath> getColumns()
protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> projected)
protected boolean isStarQuery()
protected boolean isSkipQuery()
public void allocate(Map<String,ValueVector> vectorMap) throws OutOfMemoryException
allocate in interface RecordReaderOutOfMemoryExceptionpublic boolean hasNext()
RecordReaderhasNext in interface RecordReaderprotected List<SchemaPath> getDefaultColumnsToRead()
Copyright © 2021 The Apache Software Foundation. All rights reserved.