Class VarLengthValuesColumn<V extends ValueVector>
java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.ColumnReader
org.apache.drill.exec.store.parquet.columnreaders.VarLengthColumn
org.apache.drill.exec.store.parquet.columnreaders.VarLengthValuesColumn<V>
- Direct Known Subclasses:
NullableVarLengthValuesColumn,VarLengthColumnReaders.VarBinaryColumn,VarLengthColumnReaders.VarCharColumn,VarLengthColumnReaders.VarDecimalColumn
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.drill.exec.store.parquet.columnreaders.VarLenColumnBulkInput.BulkReaderStateBulk read operation state that needs to be maintained across batch callsFields inherited from class org.apache.drill.exec.store.parquet.columnreaders.ColumnReader
DICTIONARY_ENCODINGS, VALUE_ENCODINGS, vectorData -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract VarLenColumnBulkInput<V> newVLBulkInput(int recordsToRead) protected booleanprotected voidreadField(long recordToRead) protected final intreadRecordsInBulk(int recordsToRead) abstract booleanStore a variable length entry if there is enough memory.protected abstract voidsetSafe(VarLenBulkInput<VarLenBulkEntry> bulkInput) Store a set of variable entries in bulk; this method will automatically extend the underlying value vector if needed.booleanvoidvoidMethods inherited from class org.apache.drill.exec.store.parquet.columnreaders.VarLengthColumn
processPageData, resetMethods inherited from class org.apache.drill.exec.store.parquet.columnreaders.ColumnReader
capacity, checkVectorCapacityReached, clear, determineSize, getRecordsReadInCurrentPass, hitRowGroupEnd, postPageRead, processPages, processPagesAsync, readIntLittleEndian, readPage, readPageAsync, readRecords, readRecordsAsync, readValues, recordsRequireDecoding, totalValuesReadAndReadyToReadInPage
-
Field Details
-
bulkReaderState
protected final org.apache.drill.exec.store.parquet.columnreaders.VarLenColumnBulkInput.BulkReaderState bulkReaderStateBulk read operation state that needs to be maintained across batch calls
-
-
Method Details
-
setSafe
Store a variable length entry if there is enough memory.- Parameters:
index- entry's indexbytes- byte array containerstart- start offsetlength- entry's length- Returns:
- true if the entry was successfully inserted; false otherwise
-
setSafe
Store a set of variable entries in bulk; this method will automatically extend the underlying value vector if needed.- Parameters:
bulkInput- set of variable length entries
-
newVLBulkInput
- Returns:
- new variable bulk input object
- Throws:
IOException
-
readRecordsInBulk
- Overrides:
readRecordsInBulkin classColumnReader- Throws:
IOException
-
readField
protected void readField(long recordToRead) - Specified by:
readFieldin classColumnReader
-
updateReadyToReadPosition
public void updateReadyToReadPosition()- Overrides:
updateReadyToReadPositionin classColumnReader
-
updatePosition
public void updatePosition()- Overrides:
updatePositionin classColumnReader
-
skipReadyToReadPositionUpdate
public boolean skipReadyToReadPositionUpdate()- Specified by:
skipReadyToReadPositionUpdatein classVarLengthColumn
-
readAndStoreValueSizeInformation
- Specified by:
readAndStoreValueSizeInformationin classVarLengthColumn- Throws:
IOException
-