public abstract class ColumnReader<V extends ValueVector> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DrillBuf |
vectorData |
| Modifier | Constructor and Description |
|---|---|
protected |
ColumnReader(ParquetRecordReader parentReader,
int allocateSize,
org.apache.parquet.column.ColumnDescriptor descriptor,
org.apache.parquet.hadoop.metadata.ColumnChunkMetaData columnChunkMetaData,
boolean fixedLength,
V v,
org.apache.parquet.format.SchemaElement schemaElement) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
protected boolean |
checkVectorCapacityReached() |
void |
clear() |
boolean |
determineSize(long recordsReadInCurrentPass)
Determines the size of a single value in a variable column.
|
int |
getRecordsReadInCurrentPass() |
protected void |
hitRowGroupEnd() |
protected void |
postPageRead() |
protected boolean |
processPageData(int recordsToReadInThisPass) |
void |
processPages(long recordsToReadInThisPass) |
Future<Long> |
processPagesAsync(long recordsToReadInThisPass) |
protected abstract void |
readField(long recordsToRead) |
static int |
readIntLittleEndian(DrillBuf in,
int offset) |
boolean |
readPage() |
Future<Boolean> |
readPageAsync() |
protected void |
readRecords(int recordsToRead) |
protected Future<Integer> |
readRecordsAsync(int recordsToRead) |
void |
readValues(long recordsToRead) |
void |
reset() |
protected int |
totalValuesReadAndReadyToReadInPage() |
void |
updatePosition() |
void |
updateReadyToReadPosition() |
protected DrillBuf vectorData
protected ColumnReader(ParquetRecordReader parentReader, int allocateSize, org.apache.parquet.column.ColumnDescriptor descriptor, org.apache.parquet.hadoop.metadata.ColumnChunkMetaData columnChunkMetaData, boolean fixedLength, V v, org.apache.parquet.format.SchemaElement schemaElement) throws ExecutionSetupException
ExecutionSetupExceptionpublic int getRecordsReadInCurrentPass()
public void processPages(long recordsToReadInThisPass)
throws IOException
IOExceptionpublic void clear()
public void readValues(long recordsToRead)
protected abstract void readField(long recordsToRead)
public boolean determineSize(long recordsReadInCurrentPass)
throws IOException
recordsReadInCurrentPass - lengthVarFieldsInCurrentRecord - IOExceptionprotected void readRecords(int recordsToRead)
protected boolean processPageData(int recordsToReadInThisPass)
throws IOException
IOExceptionpublic void updatePosition()
public void updateReadyToReadPosition()
public void reset()
public int capacity()
public boolean readPage()
throws IOException
IOExceptionprotected int totalValuesReadAndReadyToReadInPage()
protected void postPageRead()
protected void hitRowGroupEnd()
protected boolean checkVectorCapacityReached()
public static int readIntLittleEndian(DrillBuf in, int offset)
Copyright © 2017 The Apache Software Foundation. All rights reserved.