public abstract class AbstractStructVector extends AbstractContainerVector
allocator, callBack, name
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractStructVector(String name,
BufferAllocator allocator,
CallBack callBack) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected ValueVector |
add(String childName,
FieldType fieldType) |
<T extends FieldVector> |
addOrGet(String childName,
FieldType fieldType,
Class<T> clazz)
Adds a new field with the given parameters or replaces the existing one and consequently returns the resultant
ValueVector . |
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
close()
Clears out all underlying child vectors.
|
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize() |
<T extends FieldVector> |
getChild(String name,
Class<T> clazz)
Returns a
ValueVector instance of subtype of T corresponding to the given
field name if exists or null. |
ValueVector |
getChildByOrdinal(int id)
Returns a
ValueVector corresponding to the given ordinal identifier. |
protected List<String> |
getChildFieldNames() |
protected List<FieldVector> |
getChildren() |
VectorWithOrdinal |
getChildVectorWithOrdinal(String name) |
List<ValueVector> |
getPrimitiveVectors() |
Iterator<ValueVector> |
iterator() |
protected void |
putChild(String name,
FieldVector vector)
Inserts the vector with the given name if it does not exist else replaces it with the new value.
|
protected void |
putVector(String name,
FieldVector vector)
Inserts the input vector into the map if it does not exist, replaces if it exists already
|
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
int |
size() |
addOrGetList, addOrGetStruct, addOrGetUnion, allocateNew, getAllocator, getChild, supportsDirectRead, typeify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getBufferSizeFor, getDataBuffer, getField, getMinorType, getNullCount, getObject, getOffsetBuffer, getReader, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, getValueCapacity, getValueCount, isNull, makeTransferPair, reset, setInitialCapacity, setValueCount
forEach, spliterator
setInitialCapacity
protected AbstractStructVector(String name, BufferAllocator allocator, CallBack callBack)
public void close()
AbstractContainerVector
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
インタフェース内 ValueVector
close
クラス内 AbstractContainerVector
public boolean allocateNewSafe()
ValueVector
public void reAlloc()
ValueVector
public <T extends FieldVector> T addOrGet(String childName, FieldType fieldType, Class<T> clazz)
ValueVector
.
Execution takes place in the following order:
IllegalStateException
addOrGet
クラス内 AbstractContainerVector
T
- class type of expected vector typechildName
- the name of the fieldfieldType
- the type for the vectorclazz
- class of expected vector typeValueVector
IllegalStateException
- raised if there is a hard schema changepublic ValueVector getChildByOrdinal(int id)
ValueVector
corresponding to the given ordinal identifier.id
- the ordinal of the child to returnpublic <T extends FieldVector> T getChild(String name, Class<T> clazz)
ValueVector
instance of subtype of T corresponding to the given
field name if exists or null.getChild
クラス内 AbstractContainerVector
name
- the name of the child to returnclazz
- the expected type of the childprotected ValueVector add(String childName, FieldType fieldType)
protected void putChild(String name, FieldVector vector)
name
- the name of the child to addvector
- the vector to add as a childprotected void putVector(String name, FieldVector vector)
name
- field namevector
- vector to be insertedprotected List<FieldVector> getChildren()
public int size()
size
クラス内 AbstractContainerVector
public Iterator<ValueVector> iterator()
public List<ValueVector> getPrimitiveVectors()
public VectorWithOrdinal getChildVectorWithOrdinal(String name)
getChildVectorWithOrdinal
クラス内 AbstractContainerVector
name
- the name of the child to returnpublic ArrowBuf[] getBuffers(boolean clear)
ValueVector
clear
- Whether to clear vector before returning; the buffers will still be refcounted;
but the returned array will be the only reference to thembuffers
that is used by this vector instance.public int getBufferSize()
Copyright © 2018 The Apache Software Foundation. All rights reserved.