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 | 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 in this vector.
|
int |
getCurrentSizeInBytes() |
VariableWidthVector.VariableWidthMutator |
getMutator()
Returns an
mutator that is used to write to this vector
instance. |
allocateNew, allocateNewSafe, clear, close, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getField, getMinorType, getReader, getTransferPair, getTransferPair, getValueCapacity, makeTransferPair, setInitialCapacity
forEach, iterator, spliterator
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()
Copyright © 2017 The Apache Software Foundation. All rights reserved.