Package org.apache.drill.exec.vector
Interface VariableWidthVector
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterable<ValueVector>
,ValueVector
- All Known Implementing Classes:
NullableVar16CharVector
,NullableVarBinaryVector
,NullableVarCharVector
,NullableVarDecimalVector
,Var16CharVector
,VarBinaryVector
,VarCharVector
,VarDecimalVector
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.ValueVector
ValueVector.Accessor, ValueVector.Mutator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final MaterializedField
Fields inherited from interface org.apache.drill.exec.vector.ValueVector
BITS_VECTOR_NAME, MAX_BUFFER_SIZE, MAX_ROW_COUNT, MIN_ROW_COUNT, OFFSETS_VECTOR_NAME, VALUES_VECTOR_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allocateNew
(int totalBytes, int valueCount) Allocate a new memory space for this vector.Returns anaccessor
that is used to read from this vector instance.int
Provide the maximum amount of variable width bytes that can be stored int his vector.int
Returns anmutator
that is used to write to this vector instance.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.apache.drill.exec.vector.ValueVector
allocateNew, allocateNewSafe, clear, close, collectLedgers, copyEntry, exchange, getAllocatedSize, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getField, getMetadata, getPayloadByteCount, getReader, getTransferPair, getTransferPair, getValueCapacity, load, makeTransferPair, setInitialCapacity, toNullable
-
Field Details
-
DEFAULT_RECORD_BYTE_COUNT
static final int DEFAULT_RECORD_BYTE_COUNT- See Also:
-
MIN_BYTE_COUNT
static final int MIN_BYTE_COUNT- See Also:
-
offsetsField
-
-
Method Details
-
allocateNew
void allocateNew(int totalBytes, int valueCount) Allocate a new memory space for this vector. Must be called prior to using the ValueVector.- Parameters:
totalBytes
- Desired size of the underlying data buffer.valueCount
- Number of values in the vector.
-
getByteCapacity
int getByteCapacity()Provide the maximum amount of variable width bytes that can be stored int his vector.- Returns:
-
getMutator
VariableWidthVector.VariableWidthMutator getMutator()Description copied from interface:ValueVector
Returns anmutator
that is used to write to this vector instance.- Specified by:
getMutator
in interfaceValueVector
-
getAccessor
VariableWidthVector.VariableWidthAccessor getAccessor()Description copied from interface:ValueVector
Returns anaccessor
that is used to read from this vector instance.- Specified by:
getAccessor
in interfaceValueVector
-
getCurrentSizeInBytes
int getCurrentSizeInBytes() -
getOffsetVector
UInt4Vector getOffsetVector()
-