public interface VariableWidthVector extends ValueVector
Modifier and Type | Interface and Description |
---|---|
static interface |
VariableWidthVector.VariableWidthAccessor |
static interface |
VariableWidthVector.VariableWidthMutator |
ValueVector.Accessor, ValueVector.Mutator
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RECORD_BYTE_COUNT |
static int |
MIN_BYTE_COUNT |
static MaterializedField |
offsetsField |
BITS_VECTOR_NAME, MAX_BUFFER_SIZE, MAX_ROW_COUNT, MIN_ROW_COUNT, OFFSETS_VECTOR_NAME, VALUES_VECTOR_NAME
Modifier and Type | Method and Description |
---|---|
void |
allocateNew(int totalBytes,
int valueCount)
Allocate a new memory space for this vector.
|
VariableWidthVector.VariableWidthAccessor |
getAccessor()
Returns an
accessor that is used to read from this vector
instance. |
int |
getByteCapacity()
Provide the maximum amount of variable width bytes that can be stored int his vector.
|
int |
getCurrentSizeInBytes() |
VariableWidthVector.VariableWidthMutator |
getMutator()
Returns an
mutator that is used to write to this vector
instance. |
UInt4Vector |
getOffsetVector() |
allocateNew, allocateNewSafe, clear, close, collectLedgers, copyEntry, exchange, getAllocatedSize, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getField, getMetadata, getPayloadByteCount, getReader, getTransferPair, getTransferPair, getValueCapacity, load, makeTransferPair, setInitialCapacity, toNullable
forEach, iterator, spliterator
static final int DEFAULT_RECORD_BYTE_COUNT
static final int MIN_BYTE_COUNT
static final MaterializedField offsetsField
void allocateNew(int totalBytes, int valueCount)
totalBytes
- Desired size of the underlying data buffer.valueCount
- Number of values in the vector.int getByteCapacity()
VariableWidthVector.VariableWidthMutator getMutator()
ValueVector
mutator
that is used to write to this vector
instance.getMutator
in interface ValueVector
VariableWidthVector.VariableWidthAccessor getAccessor()
ValueVector
accessor
that is used to read from this vector
instance.getAccessor
in interface ValueVector
int getCurrentSizeInBytes()
UInt4Vector getOffsetVector()
Copyright © 1970 The Apache Software Foundation. All rights reserved.