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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceNested classes/interfaces inherited from interface org.apache.drill.exec.vector.ValueVector
ValueVector.Accessor, ValueVector.Mutator -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final MaterializedFieldFields 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 TypeMethodDescriptionvoidallocateNew(int totalBytes, int valueCount) Allocate a new memory space for this vector.Returns anaccessorthat is used to read from this vector instance.intProvide the maximum amount of variable width bytes that can be stored int his vector.intReturns anmutatorthat is used to write to this vector instance.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods 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:ValueVectorReturns anmutatorthat is used to write to this vector instance.- Specified by:
getMutatorin interfaceValueVector
-
getAccessor
VariableWidthVector.VariableWidthAccessor getAccessor()Description copied from interface:ValueVectorReturns anaccessorthat is used to read from this vector instance.- Specified by:
getAccessorin interfaceValueVector
-
getCurrentSizeInBytes
int getCurrentSizeInBytes() -
getOffsetVector
UInt4Vector getOffsetVector()
-