public abstract class BaseValueVector extends Object implements ValueVector
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseValueVector.BaseAccessor |
static class |
BaseValueVector.BaseMutator |
ValueVector.Accessor, ValueVector.Mutator| Modifier and Type | Field and Description |
|---|---|
protected BufferAllocator |
allocator |
protected MaterializedField |
field |
static int |
INITIAL_VALUE_ALLOCATION |
static int |
MAX_ALLOCATION_SIZE
Deprecated.
|
BITS_VECTOR_NAME, MAX_BUFFER_SIZE, MAX_ROW_COUNT, MIN_ROW_COUNT, OFFSETS_VECTOR_NAME, VALUES_VECTOR_NAME| Modifier | Constructor and Description |
|---|---|
protected |
BaseValueVector(MaterializedField field,
BufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkBufRefs(ValueVector vv) |
void |
clear()
Release the underlying DrillBuf and reset the ValueVector to empty.
|
void |
close()
Alternative to clear().
|
static void |
fillBitsVector(org.apache.drill.exec.vector.UInt1Vector bits,
int valueCount) |
BufferAllocator |
getAllocator() |
MaterializedField |
getField()
Get information about how this field is materialized.
|
MaterializedField |
getField(String ref) |
UserBitShared.SerializedField |
getMetadata()
Get the metadata for this field.
|
protected UserBitShared.SerializedField.Builder |
getMetadataBuilder() |
TransferPair |
getTransferPair(BufferAllocator allocator)
Returns a
transfer pair, creating a new target vector of
the same type. |
Iterator<ValueVector> |
iterator() |
void |
toNullable(ValueVector nullableVector)
Convert a non-nullable vector to nullable by shuffling the data from
one to the other.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallocateNew, allocateNewSafe, collectLedgers, copyEntry, exchange, getAccessor, getAllocatedSize, getBuffers, getBufferSize, getBufferSizeFor, getMutator, getPayloadByteCount, getReader, getTransferPair, getValueCapacity, load, makeTransferPair, setInitialCapacityforEach, spliterator@Deprecated public static final int MAX_ALLOCATION_SIZE
ValueVector.MAX_BUFFER_SIZE in new code.public static final int INITIAL_VALUE_ALLOCATION
protected final BufferAllocator allocator
protected final MaterializedField field
protected BaseValueVector(MaterializedField field, BufferAllocator allocator)
public void clear()
ValueVectorclear in interface ValueVectorpublic void close()
ValueVectorclose in interface Closeableclose in interface AutoCloseableclose in interface ValueVectorpublic MaterializedField getField()
ValueVectorgetField in interface ValueVectorpublic MaterializedField getField(String ref)
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVectortransfer pair, creating a new target vector of
the same type.getTransferPair in interface ValueVectorpublic UserBitShared.SerializedField getMetadata()
ValueVectorgetMetadata in interface ValueVectorprotected UserBitShared.SerializedField.Builder getMetadataBuilder()
public Iterator<ValueVector> iterator()
iterator in interface Iterable<ValueVector>public static boolean checkBufRefs(ValueVector vv)
public BufferAllocator getAllocator()
getAllocator in interface ValueVectorpublic static void fillBitsVector(org.apache.drill.exec.vector.UInt1Vector bits,
int valueCount)
public void toNullable(ValueVector nullableVector)
ValueVectortoNullable in interface ValueVectornullableVector - nullable vector of the same minor type as
this vectorCopyright © 2021 The Apache Software Foundation. All rights reserved.