Class VarLengthColumnReaders.VarCharColumn
java.lang.Object
org.apache.drill.exec.store.parquet.columnreaders.ColumnReader<V>
org.apache.drill.exec.store.parquet.columnreaders.VarLengthColumn
org.apache.drill.exec.store.parquet.columnreaders.VarLengthValuesColumn<VarCharVector>
org.apache.drill.exec.store.parquet.columnreaders.VarLengthColumnReaders.VarCharColumn
- Enclosing class:
- VarLengthColumnReaders
public static final class VarLengthColumnReaders.VarCharColumn
extends VarLengthValuesColumn<VarCharVector>
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.parquet.columnreaders.VarLengthValuesColumn
bulkReaderState
Fields inherited from class org.apache.drill.exec.store.parquet.columnreaders.ColumnReader
DICTIONARY_ENCODINGS, VALUE_ENCODINGS, vectorData
-
Method Summary
Modifier and TypeMethodDescriptionint
capacity()
protected VarLenColumnBulkInput<VarCharVector>
newVLBulkInput
(int recordsToRead) boolean
Store a variable length entry if there is enough memory.protected void
setSafe
(VarLenBulkInput<VarLenBulkEntry> bulkInput) Store a set of variable entries in bulk; this method will automatically extend the underlying value vector if needed.Methods inherited from class org.apache.drill.exec.store.parquet.columnreaders.VarLengthValuesColumn
readAndStoreValueSizeInformation, readField, readRecordsInBulk, skipReadyToReadPositionUpdate, updatePosition, updateReadyToReadPosition
Methods inherited from class org.apache.drill.exec.store.parquet.columnreaders.VarLengthColumn
processPageData, reset
Methods inherited from class org.apache.drill.exec.store.parquet.columnreaders.ColumnReader
checkVectorCapacityReached, clear, determineSize, getRecordsReadInCurrentPass, hitRowGroupEnd, postPageRead, processPages, processPagesAsync, readIntLittleEndian, readPage, readPageAsync, readRecords, readRecordsAsync, readValues, recordsRequireDecoding, totalValuesReadAndReadyToReadInPage
-
Method Details
-
setSafe
Description copied from class:VarLengthValuesColumn
Store a variable length entry if there is enough memory.- Specified by:
setSafe
in classVarLengthValuesColumn<VarCharVector>
- Parameters:
index
- entry's indexbytebuf
- byte array containerstart
- start offsetlength
- entry's length- Returns:
- true if the entry was successfully inserted; false otherwise
-
capacity
public int capacity()- Overrides:
capacity
in classColumnReader
-
setSafe
Store a set of variable entries in bulk; this method will automatically extend the underlying value vector if needed.- Specified by:
setSafe
in classVarLengthValuesColumn<VarCharVector>
- Parameters:
bulkInput
- set of variable length entries
-
newVLBulkInput
- Specified by:
newVLBulkInput
in classVarLengthValuesColumn<VarCharVector>
- Returns:
- new variable bulk input object
- Throws:
IOException
-