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(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, wait
allocateNew, allocateNewSafe, collectLedgers, copyEntry, exchange, getAccessor, getAllocatedSize, getBuffers, getBufferSize, getBufferSizeFor, getMutator, getPayloadByteCount, getReader, getTransferPair, getValueCapacity, load, makeTransferPair, setInitialCapacity
forEach, 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()
ValueVector
clear
in interface ValueVector
public void close()
ValueVector
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ValueVector
public MaterializedField getField()
ValueVector
getField
in interface ValueVector
public MaterializedField getField(String ref)
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
transfer pair
, creating a new target vector of
the same type.getTransferPair
in interface ValueVector
public UserBitShared.SerializedField getMetadata()
ValueVector
getMetadata
in interface ValueVector
protected 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 ValueVector
public static void fillBitsVector(UInt1Vector bits, int valueCount)
public void toNullable(ValueVector nullableVector)
ValueVector
toNullable
in interface ValueVector
nullableVector
- nullable vector of the same minor type as
this vectorCopyright © 1970 The Apache Software Foundation. All rights reserved.