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 String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContainerVector(String name,
BufferAllocator allocator,
CallBack callBack) |
| Modifier and Type | Method and Description |
|---|---|
abstract <T extends FieldVector> |
addOrGet(String name,
Types.MinorType minorType,
Class<T> clazz,
int... precisionScale) |
void |
allocateNew()
Allocate new buffers.
|
void |
close()
Clears out all underlying child vectors.
|
BufferAllocator |
getAllocator() |
FieldVector |
getChild(String name)
Returns a
ValueVector corresponding to the given field name if exists or null. |
abstract <T extends FieldVector> |
getChild(String name,
Class<T> clazz) |
abstract VectorWithOrdinal |
getChildVectorWithOrdinal(String name) |
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, getAccessor, getBuffers, getBufferSize, getBufferSizeFor, getField, getMinorType, getMutator, getReader, getTransferPair, getTransferPair, getValueCapacity, makeTransferPair, setInitialCapacityprotected final String name
protected final BufferAllocator allocator
protected final CallBack callBack
protected AbstractContainerVector(String name, 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 FieldVector getChild(String name)
ValueVector corresponding to the given field name if exists or null.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 FieldVector> T addOrGet(String name, Types.MinorType minorType, Class<T> clazz, int... precisionScale)
public abstract <T extends FieldVector> T getChild(String name, Class<T> clazz)
public abstract VectorWithOrdinal getChildVectorWithOrdinal(String name)
Copyright © 2016 The Apache Software Foundation. All rights reserved.