public abstract class AbstractContainerVector extends Object implements ValueVector
ValueVector.Accessor, ValueVector.Mutator| Modifier and Type | Field and Description |
|---|---|
protected BufferAllocator |
allocator |
protected CallBack |
callBack |
protected MaterializedField |
field |
BITS_VECTOR_NAME, MAX_BUFFER_SIZE, MAX_ROW_COUNT, MIN_ROW_COUNT, OFFSETS_VECTOR_NAME, VALUES_VECTOR_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContainerVector(MaterializedField field,
BufferAllocator allocator,
CallBack callBack) |
| Modifier and Type | Method and Description |
|---|---|
abstract <T extends ValueVector> |
addOrGet(String name,
TypeProtos.MajorType type,
Class<T> clazz) |
void |
allocateNew()
Allocate new buffers.
|
void |
close()
Clears out all underlying child vectors.
|
BufferAllocator |
getAllocator() |
ValueVector |
getChild(String name)
Returns a
ValueVector corresponding to the given field name if exists or null. |
abstract <T extends ValueVector> |
getChild(String name,
Class<T> clazz) |
protected Collection<String> |
getChildFieldNames()
Returns a sequence of field names in the order that they show up in the schema.
|
abstract VectorWithOrdinal |
getChildVectorWithOrdinal(String name) |
MaterializedField |
getField()
Returns the field definition of this instance.
|
abstract int |
size() |
protected boolean |
supportsDirectRead() |
protected <T extends ValueVector> |
typeify(ValueVector v,
Class<T> clazz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallocateNewSafe, clear, collectLedgers, copyEntry, exchange, getAccessor, getAllocatedSize, getBuffers, getBufferSize, getBufferSizeFor, getMetadata, getMutator, getPayloadByteCount, getReader, getTransferPair, getTransferPair, getValueCapacity, load, makeTransferPair, setInitialCapacity, toNullableforEach, iterator, spliteratorprotected MaterializedField field
protected final BufferAllocator allocator
protected final CallBack callBack
protected AbstractContainerVector(MaterializedField field, BufferAllocator allocator, CallBack callBack)
public void allocateNew()
throws OutOfMemoryException
ValueVectorallocateNew in interface ValueVectorOutOfMemoryException - Thrown if no memory can be allocated.public BufferAllocator getAllocator()
getAllocator in interface ValueVectorpublic MaterializedField getField()
getField in interface ValueVectorpublic ValueVector getChild(String name)
ValueVector corresponding to the given field name if exists or null.protected Collection<String> getChildFieldNames()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface ValueVectorprotected <T extends ValueVector> T typeify(ValueVector v, Class<T> clazz)
protected boolean supportsDirectRead()
public abstract int size()
public abstract <T extends ValueVector> T addOrGet(String name, TypeProtos.MajorType type, Class<T> clazz)
public abstract <T extends ValueVector> T getChild(String name, Class<T> clazz)
public abstract VectorWithOrdinal getChildVectorWithOrdinal(String name)
Copyright © 2021 The Apache Software Foundation. All rights reserved.