Package org.apache.drill.exec.vector
Interface FixedWidthVector
- All Superinterfaces:
AutoCloseable,Closeable,Iterable<ValueVector>,ValueVector
- All Known Implementing Classes:
BigIntVector,BitVector,DateVector,Decimal18Vector,Decimal28DenseVector,Decimal28SparseVector,Decimal38DenseVector,Decimal38SparseVector,Decimal9Vector,Float4Vector,Float8Vector,IntervalDayVector,IntervalVector,IntervalYearVector,IntVector,NullableBigIntVector,NullableBitVector,NullableDateVector,NullableDecimal18Vector,NullableDecimal28DenseVector,NullableDecimal28SparseVector,NullableDecimal38DenseVector,NullableDecimal38SparseVector,NullableDecimal9Vector,NullableFloat4Vector,NullableFloat8Vector,NullableIntervalDayVector,NullableIntervalVector,NullableIntervalYearVector,NullableIntVector,NullableSmallIntVector,NullableTimeStampVector,NullableTimeVector,NullableTinyIntVector,NullableUInt1Vector,NullableUInt2Vector,NullableUInt4Vector,NullableUInt8Vector,SmallIntVector,TimeStampVector,TimeVector,TinyIntVector,UInt1Vector,UInt2Vector,UInt4Vector,UInt8Vector,UntypedNullVector
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.ValueVector
ValueVector.Accessor, ValueVector.Mutator -
Field Summary
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 TypeMethodDescriptionvoidallocateNew(int valueCount) Allocate a new memory space for this vector.intThe width of a record in bytes.voidZero out the underlying buffer backing this vector.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, getAccessor, getAllocatedSize, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getField, getMetadata, getMutator, getPayloadByteCount, getReader, getTransferPair, getTransferPair, getValueCapacity, load, makeTransferPair, setInitialCapacity, toNullable
-
Method Details
-
allocateNew
void allocateNew(int valueCount) Allocate a new memory space for this vector. Must be called prior to using the ValueVector.- Parameters:
valueCount- Number of values in the vector.
-
zeroVector
void zeroVector()Zero out the underlying buffer backing this vector. -
getValueWidth
int getValueWidth()The width of a record in bytes.- Returns:
- The width of a record in bytes.
-