public final class RepeatedBitVector extends BaseRepeatedValueVector implements RepeatedFixedWidthVectorLike
Modifier and Type | Class and Description |
---|---|
class |
RepeatedBitVector.Accessor |
class |
RepeatedBitVector.Mutator |
BaseRepeatedValueVector.BaseRepeatedAccessor, BaseRepeatedValueVector.BaseRepeatedMutator, BaseRepeatedValueVector.BaseRepeatedValueVectorTransferPair<T extends BaseRepeatedValueVector>
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutator
RepeatedValueVector.RepeatedAccessor, RepeatedValueVector.RepeatedMutator
DATA_VECTOR_NAME, DEFAULT_DATA_VECTOR, offsets, OFFSETS_FIELD, OFFSETS_VECTOR_NAME, vector
allocator, field, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE
DEFAULT_REPEAT_PER_RECORD
BITS_VECTOR_NAME, MAX_BUFFER_SIZE, MAX_ROW_COUNT, MIN_ROW_COUNT, VALUES_VECTOR_NAME
Constructor and Description |
---|
RepeatedBitVector(MaterializedField field,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
AddOrGetResult<BitVector> |
addOrGetVector(VectorDescriptor descriptor)
Creates and adds a child vector if none with the same name exists, else returns the vector instance.
|
void |
allocateNew()
Allocate new buffers.
|
void |
allocateNew(int valueCount,
int innerValueCount)
Allocate a new memory space for this vector.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
copyEntry(int toIndex,
ValueVector from,
int fromIndex) |
void |
copyFrom(int inIndex,
int outIndex,
RepeatedBitVector v) |
void |
copyFromSafe(int inIndex,
int outIndex,
RepeatedBitVector v) |
RepeatedBitVector.Accessor |
getAccessor()
Returns an
accessor that is used to read from this vector
instance. |
BitVector |
getDataVector() |
RepeatedBitVector.Mutator |
getMutator()
Returns an
mutator that is used to write to this vector
instance. |
FieldReader |
getReader()
Returns a
field reader that supports reading values
from this vector. |
TransferPair |
getTransferPair(BufferAllocator allocator)
Returns a
transfer pair , creating a new target vector of
the same type. |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
TransferPair |
makeTransferPair(ValueVector to)
Returns a new
transfer pair that is used to transfer underlying
buffers into the target vector. |
void |
splitAndTransferTo(int startIndex,
int groups,
RepeatedBitVector to) |
void |
transferTo(RepeatedBitVector target) |
clear, collectLedgers, exchange, getAllocatedSize, getBuffers, getBufferSize, getBufferSizeFor, getMetadataBuilder, getOffsetVector, getPayloadByteCount, getValueCapacity, iterator, load, replaceDataVector, setChildVector, setInitialCapacity, size
checkBufRefs, close, fillBitsVector, getAllocator, getField, getField, getMetadata, toNullable, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getAllocator, getField, getMetadata, toNullable
forEach, spliterator
public RepeatedBitVector(MaterializedField field, BufferAllocator allocator)
public RepeatedBitVector.Mutator getMutator()
ValueVector
mutator
that is used to write to this vector
instance.getMutator
in interface RepeatedValueVector
getMutator
in interface ValueVector
public RepeatedBitVector.Accessor getAccessor()
ValueVector
accessor
that is used to read from this vector
instance.getAccessor
in interface RepeatedValueVector
getAccessor
in interface ValueVector
public FieldReader getReader()
ValueVector
field reader
that supports reading values
from this vector.getReader
in interface ValueVector
public BitVector getDataVector()
getDataVector
in interface RepeatedValueVector
getDataVector
in class BaseRepeatedValueVector
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
transfer pair
, creating a new target vector of
the same type.getTransferPair
in interface ValueVector
getTransferPair
in class BaseValueVector
public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
in interface ValueVector
public TransferPair makeTransferPair(ValueVector to)
ValueVector
transfer pair
that is used to transfer underlying
buffers into the target vector.makeTransferPair
in interface ValueVector
public AddOrGetResult<BitVector> addOrGetVector(VectorDescriptor descriptor)
ContainerVectorLike
addOrGetVector
in interface ContainerVectorLike
addOrGetVector
in class BaseRepeatedValueVector
descriptor
- vector descriptorpublic void transferTo(RepeatedBitVector target)
public void splitAndTransferTo(int startIndex, int groups, RepeatedBitVector to)
public void copyFrom(int inIndex, int outIndex, RepeatedBitVector v)
public void copyFromSafe(int inIndex, int outIndex, RepeatedBitVector v)
public void copyEntry(int toIndex, ValueVector from, int fromIndex)
copyEntry
in interface ValueVector
public boolean allocateNewSafe()
ValueVector
allocateNewSafe
in interface ValueVector
allocateNewSafe
in class BaseRepeatedValueVector
public void allocateNew()
ValueVector
allocateNew
in interface ValueVector
public void allocateNew(int valueCount, int innerValueCount)
RepeatedFixedWidthVectorLike
allocateNew
in interface RepeatedFixedWidthVectorLike
valueCount
- Number of separate repeating groupings.innerValueCount
- Number of supported values in the vector.Copyright © 1970 The Apache Software Foundation. All rights reserved.