Interface RepeatedValueVector
- All Superinterfaces:
AutoCloseable
,Closeable
,ContainerVectorLike
,Iterable<ValueVector>
,ValueVector
- All Known Implementing Classes:
AbstractRepeatedMapVector
,BaseRepeatedValueVector
,DictVector
,ListVector
,RepeatedBigIntVector
,RepeatedBitVector
,RepeatedDateVector
,RepeatedDecimal18Vector
,RepeatedDecimal28DenseVector
,RepeatedDecimal28SparseVector
,RepeatedDecimal38DenseVector
,RepeatedDecimal38SparseVector
,RepeatedDecimal9Vector
,RepeatedDictVector
,RepeatedFloat4Vector
,RepeatedFloat8Vector
,RepeatedIntervalDayVector
,RepeatedIntervalVector
,RepeatedIntervalYearVector
,RepeatedIntVector
,RepeatedListVector
,RepeatedListVector.DelegateRepeatedVector
,RepeatedMapVector
,RepeatedSmallIntVector
,RepeatedTimeStampVector
,RepeatedTimeVector
,RepeatedTinyIntVector
,RepeatedUInt1Vector
,RepeatedUInt2Vector
,RepeatedUInt4Vector
,RepeatedUInt8Vector
,RepeatedVar16CharVector
,RepeatedVarBinaryVector
,RepeatedVarCharVector
,RepeatedVarDecimalVector
Represents repeated (AKA "array") value vectors.
A repeated vector contains values that may either be flat or nested. A value consists of zero or more cells(inner values). Current design maintains data and offsets vectors. Each cell is stored in the data vector. Repeated vector uses the offset vector to determine the sequence of cells pertaining to an individual value.
-
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
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
Methods inherited from interface org.apache.drill.exec.vector.complex.ContainerVectorLike
addOrGetVector, size
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_REPEAT_PER_RECORD
static final int DEFAULT_REPEAT_PER_RECORD- See Also:
-
-
Method Details
-
getOffsetVector
UInt4Vector getOffsetVector()- Returns:
- the underlying offset vector or null if none exists.
-
getDataVector
ValueVector getDataVector()- Returns:
- the underlying data vector or null if none exists.
-
getAccessor
RepeatedValueVector.RepeatedAccessor getAccessor()Description copied from interface:ValueVector
Returns anaccessor
that is used to read from this vector instance.- Specified by:
getAccessor
in interfaceValueVector
-
getMutator
RepeatedValueVector.RepeatedMutator getMutator()Description copied from interface:ValueVector
Returns anmutator
that is used to write to this vector instance.- Specified by:
getMutator
in interfaceValueVector
-