Package org.apache.drill.exec.vector
Class RepeatedVar16CharVector
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector
org.apache.drill.exec.vector.complex.BaseRepeatedValueVector
org.apache.drill.exec.vector.RepeatedVar16CharVector
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Iterable<ValueVector>,- ContainerVectorLike,- RepeatedValueVector,- RepeatedVariableWidthVectorLike,- ValueVector
public final class RepeatedVar16CharVector
extends BaseRepeatedValueVector
implements RepeatedVariableWidthVectorLike
RepeatedVar16Char implements a vector with multiple values per row (e.g. JSON array or
 repeated protobuf field).  The implementation uses an additional value vectors to convert
 the index offset to the underlying element offset. The count of values comes from subtracting
 two successive offsets.
 NB: this class is automatically generated from RepeatedValueVectors.java and ValueVectorTypes.tdd using FreeMarker.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionfinal classfinal classNested classes/interfaces inherited from class org.apache.drill.exec.vector.complex.BaseRepeatedValueVectorBaseRepeatedValueVector.BaseRepeatedAccessor, BaseRepeatedValueVector.BaseRepeatedMutator, BaseRepeatedValueVector.BaseRepeatedValueVectorTransferPair<T extends BaseRepeatedValueVector>Nested classes/interfaces inherited from class org.apache.drill.exec.vector.BaseValueVectorBaseValueVector.BaseAccessor, BaseValueVector.BaseMutatorNested classes/interfaces inherited from interface org.apache.drill.exec.vector.complex.RepeatedValueVectorRepeatedValueVector.RepeatedAccessor, RepeatedValueVector.RepeatedMutator
- 
Field SummaryFields inherited from class org.apache.drill.exec.vector.complex.BaseRepeatedValueVectorDATA_VECTOR_NAME, DEFAULT_DATA_VECTOR, offsets, OFFSETS_FIELD, OFFSETS_VECTOR_NAME, vectorFields inherited from class org.apache.drill.exec.vector.BaseValueVectorallocator, field, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZEFields inherited from interface org.apache.drill.exec.vector.complex.RepeatedValueVectorDEFAULT_REPEAT_PER_RECORDFields inherited from interface org.apache.drill.exec.vector.ValueVectorBITS_VECTOR_NAME, MAX_BUFFER_SIZE, MAX_ROW_COUNT, MIN_ROW_COUNT, VALUES_VECTOR_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddOrGetVector(VectorDescriptor descriptor) Creates and adds a child vector if none with the same name exists, else returns the vector instance.voidAllocate new buffers.voidallocateNew(int totalBytes, int valueCount, int innerValueCount) Allocate a new memory space for this vector.booleanAllocates new buffers.voidcopyEntry(int toIndex, ValueVector from, int fromIndex) voidcopyFrom(int inIndex, int outIndex, RepeatedVar16CharVector v) voidcopyFromSafe(int inIndex, int outIndex, RepeatedVar16CharVector v) 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.protected UserBitShared.SerializedField.BuilderReturns anmutatorthat is used to write to this vector instance.Returns afield readerthat supports reading values from this vector.getTransferPair(String ref, BufferAllocator allocator) getTransferPair(BufferAllocator allocator) Returns atransfer pair, creating a new target vector of the same type.Returns a newtransfer pairthat is used to transfer underlying buffers into the target vector.voidsplitAndTransferTo(int startIndex, int groups, RepeatedVar16CharVector to) voidtransferTo(RepeatedVar16CharVector target) Methods inherited from class org.apache.drill.exec.vector.complex.BaseRepeatedValueVectorclear, collectLedgers, exchange, getAllocatedSize, getBuffers, getBufferSize, getBufferSizeFor, getOffsetVector, getPayloadByteCount, getValueCapacity, iterator, load, replaceDataVector, setChildVector, setInitialCapacity, sizeMethods inherited from class org.apache.drill.exec.vector.BaseValueVectorcheckBufRefs, close, fillBitsVector, getAllocator, getField, getField, getMetadata, toNullable, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.apache.drill.exec.vector.ValueVectorclose, getAllocator, getField, getMetadata, toNullable
- 
Constructor Details- 
RepeatedVar16CharVector
 
- 
- 
Method Details- 
getMutatorDescription copied from interface:ValueVectorReturns anmutatorthat is used to write to this vector instance.- Specified by:
- getMutatorin interface- RepeatedValueVector
- Specified by:
- getMutatorin interface- ValueVector
 
- 
getAccessorDescription copied from interface:ValueVectorReturns anaccessorthat is used to read from this vector instance.- Specified by:
- getAccessorin interface- RepeatedValueVector
- Specified by:
- getAccessorin interface- ValueVector
 
- 
getReaderDescription copied from interface:ValueVectorReturns afield readerthat supports reading values from this vector.- Specified by:
- getReaderin interface- ValueVector
 
- 
getDataVector- Specified by:
- getDataVectorin interface- RepeatedValueVector
- Overrides:
- getDataVectorin class- BaseRepeatedValueVector
- Returns:
- the underlying data vector or null if none exists.
 
- 
getTransferPairDescription copied from interface:ValueVectorReturns atransfer pair, creating a new target vector of the same type.- Specified by:
- getTransferPairin interface- ValueVector
- Overrides:
- getTransferPairin class- BaseValueVector
 
- 
getTransferPair- Specified by:
- getTransferPairin interface- ValueVector
 
- 
makeTransferPairDescription copied from interface:ValueVectorReturns a newtransfer pairthat is used to transfer underlying buffers into the target vector.- Specified by:
- makeTransferPairin interface- ValueVector
 
- 
addOrGetVectorDescription copied from interface:ContainerVectorLikeCreates and adds a child vector if none with the same name exists, else returns the vector instance.- Specified by:
- addOrGetVectorin interface- ContainerVectorLike
- Overrides:
- addOrGetVectorin class- BaseRepeatedValueVector
- Parameters:
- descriptor- vector descriptor
- Returns:
- result of operation wrapping vector corresponding to the given descriptor and whether it's newly created
 
- 
transferTo
- 
splitAndTransferTo
- 
copyFrom
- 
copyFromSafe
- 
copyEntry- Specified by:
- copyEntryin interface- ValueVector
 
- 
allocateNewSafepublic boolean allocateNewSafe()Description copied from interface:ValueVectorAllocates new buffers. ValueVector implements logic to determine how much to allocate.- Specified by:
- allocateNewSafein interface- ValueVector
- Overrides:
- allocateNewSafein class- BaseRepeatedValueVector
- Returns:
- Returns true if allocation was successful.
 
- 
allocateNewpublic void allocateNew()Description copied from interface:ValueVectorAllocate new buffers. ValueVector implements logic to determine how much to allocate.- Specified by:
- allocateNewin interface- ValueVector
 
- 
getMetadataBuilder- Overrides:
- getMetadataBuilderin class- BaseRepeatedValueVector
 
- 
allocateNewpublic void allocateNew(int totalBytes, int valueCount, int innerValueCount) Description copied from interface:RepeatedVariableWidthVectorLikeAllocate a new memory space for this vector. Must be called prior to using the ValueVector.- Specified by:
- allocateNewin interface- RepeatedVariableWidthVectorLike
- Parameters:
- totalBytes- Desired size of the underlying data buffer.
- valueCount- Number of separate repeating groupings.
- innerValueCount- Number of supported values in the vector.
 
- 
getByteCapacitypublic int getByteCapacity()Description copied from interface:RepeatedVariableWidthVectorLikeProvide the maximum amount of variable width bytes that can be stored int his vector.- Specified by:
- getByteCapacityin interface- RepeatedVariableWidthVectorLike
- Returns:
 
 
-