public abstract class AbstractContainerVector extends Object implements ValueVector, DensityAwareVector
修飾子とタイプ | フィールドと説明 |
---|---|
protected BufferAllocator |
allocator |
protected CallBack |
callBack |
protected String |
name |
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractContainerVector(String name,
BufferAllocator allocator,
CallBack callBack) |
修飾子とタイプ | メソッドと説明 |
---|---|
abstract <T extends FieldVector> |
addOrGet(String name,
FieldType fieldType,
Class<T> clazz) |
ListVector |
addOrGetList(String name) |
StructVector |
addOrGetStruct(String name) |
UnionVector |
addOrGetUnion(String name) |
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, wait
allocateNewSafe, clear, getBuffers, getBufferSize, getBufferSizeFor, getDataBuffer, getField, getMinorType, getNullCount, getObject, getOffsetBuffer, getReader, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, getValueCapacity, getValueCount, isNull, makeTransferPair, reAlloc, reset, setInitialCapacity, setValueCount
forEach, iterator, spliterator
setInitialCapacity
protected final String name
protected final BufferAllocator allocator
protected final CallBack callBack
protected AbstractContainerVector(String name, BufferAllocator allocator, CallBack callBack)
public void allocateNew() throws OutOfMemoryException
ValueVector
allocateNew
インタフェース内 ValueVector
OutOfMemoryException
- Thrown if no memory can be allocated.public BufferAllocator getAllocator()
getAllocator
インタフェース内 ValueVector
public FieldVector getChild(String name)
ValueVector
corresponding to the given field name if exists or null.name
- the name of the child to returnpublic void close()
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
インタフェース内 ValueVector
protected <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, FieldType fieldType, Class<T> clazz)
public abstract <T extends FieldVector> T getChild(String name, Class<T> clazz)
public abstract VectorWithOrdinal getChildVectorWithOrdinal(String name)
public StructVector addOrGetStruct(String name)
public ListVector addOrGetList(String name)
public UnionVector addOrGetUnion(String name)
Copyright © 2018 The Apache Software Foundation. All rights reserved.