public class StructVector extends NonNullableStructVector implements FieldVector
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected class |
StructVector.NullableStructTransferPair |
NonNullableStructVector.StructTransferPair| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected ArrowBuf |
validityBuffer |
fieldType, valueCountallocator, callBack, name| コンストラクタと説明 |
|---|
StructVector(String name,
BufferAllocator allocator,
CallBack callBack)
非推奨です。
|
StructVector(String name,
BufferAllocator allocator,
DictionaryEncoding dictionary,
CallBack callBack)
非推奨です。
|
StructVector(String name,
BufferAllocator allocator,
FieldType fieldType,
CallBack callBack) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
clear()
Same as
close() |
void |
close()
Close the vector and release the associated buffers.
|
static StructVector |
empty(String name,
BufferAllocator allocator) |
void |
get(int index,
ComplexHolder holder) |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize()
Get the size (number of bytes) of underlying buffers used by this
vector
|
int |
getBufferSizeFor(int valueCount)
Get the potential buffer size for a particular number of records.
|
ArrowBuf |
getDataBuffer()
Gets the underlying buffer associated with data vector
|
long |
getDataBufferAddress()
Gets the starting address of the underlying buffer associated with data vector
|
Field |
getField()
Get information about how this field is materialized.
|
List<ArrowBuf> |
getFieldBuffers()
(same size as getFieldVectors() since it is their content)
|
List<BufferBacked> |
getFieldInnerVectors()
非推奨です。
|
int |
getNullCount()
Returns number of null elements in the vector
|
Object |
getObject(int index)
Get friendly type object from the vector
|
ArrowBuf |
getOffsetBuffer()
Gets the underlying buffer associated with offset vector
|
long |
getOffsetBufferAddress()
Gets the starting address of the underlying buffer associated with offset vector
|
NullableStructReaderImpl |
getReader() |
TransferPair |
getTransferPair(BufferAllocator allocator)
to transfer quota responsibility
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
ArrowBuf |
getValidityBuffer()
Gets the underlying buffer associated with validity vector
|
long |
getValidityBufferAddress()
Gets the starting address of the underlying buffer associated with validity vector
|
int |
getValueCapacity()
Get the current value capacity for the vector
|
NullableStructWriter |
getWriter() |
boolean |
isNull(int index)
Check whether an element in the vector is null
|
int |
isSet(int index) |
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector to)
makes a new transfer pair used to transfer underlying buffers
|
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
void |
reset()
Reset this vector to empty, does not release buffers
|
void |
setIndexDefined(int index) |
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
void |
setInitialCapacity(int numRecords,
double density)
Set value with density
|
void |
setNull(int index) |
void |
setValueCount(int valueCount)
Set number of values in the vector
|
copyFromSafe, fieldNameIterator, getChildrenFromFields, getMinorType, getValueCount, getVectorById, initializeChildrenFromFields, supportsDirectReadadd, addOrGet, getChild, getChildByOrdinal, getChildFieldNames, getChildren, getChildVectorWithOrdinal, getPrimitiveVectors, iterator, putChild, putVector, sizeaddOrGetList, addOrGetStruct, addOrGetUnion, allocateNew, getAllocator, getChild, typeifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrenFromFields, initializeChildrenFromFieldsallocateNew, getAllocator, getMinorType, getValueCountforEach, iterator, spliteratorprotected ArrowBuf validityBuffer
@Deprecated public StructVector(String name, BufferAllocator allocator, CallBack callBack)
@Deprecated public StructVector(String name, BufferAllocator allocator, DictionaryEncoding dictionary, CallBack callBack)
public StructVector(String name, BufferAllocator allocator, FieldType fieldType, CallBack callBack)
public static StructVector empty(String name, BufferAllocator allocator)
public Field getField()
ValueVectorgetField インタフェース内 ValueVectorgetField クラス内 NonNullableStructVectorpublic void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
FieldVectorloadFieldBuffers インタフェース内 FieldVectorfieldNode - the fieldNodeownBuffers - the buffers for this Field (own buffers only, children not included)public List<ArrowBuf> getFieldBuffers()
FieldVectorgetFieldBuffers インタフェース内 FieldVector@Deprecated public List<BufferBacked> getFieldInnerVectors()
getFieldInnerVectors インタフェース内 FieldVectorpublic NullableStructReaderImpl getReader()
getReader インタフェース内 ValueVectorgetReader クラス内 NonNullableStructVectorfield reader that supports reading values
from this vector.public NullableStructWriter getWriter()
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVectorgetTransferPair インタフェース内 ValueVectorgetTransferPair クラス内 NonNullableStructVectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair makeTransferPair(ValueVector to)
ValueVectormakeTransferPair インタフェース内 ValueVectormakeTransferPair クラス内 NonNullableStructVectorto - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair インタフェース内 ValueVectorgetTransferPair クラス内 NonNullableStructVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair インタフェース内 ValueVectorgetTransferPair クラス内 NonNullableStructVectorpublic int getValueCapacity()
getValueCapacity インタフェース内 ValueVectorgetValueCapacity クラス内 NonNullableStructVectorpublic ArrowBuf[] getBuffers(boolean clear)
getBuffers インタフェース内 ValueVectorgetBuffers クラス内 AbstractStructVectorclear - 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 void close()
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose インタフェース内 ValueVectorclose クラス内 NonNullableStructVectorpublic void clear()
close()clear インタフェース内 ValueVectorclear クラス内 NonNullableStructVectorpublic void reset()
reset インタフェース内 ValueVectorreset クラス内 NonNullableStructVectorpublic int getBufferSize()
getBufferSize インタフェース内 ValueVectorgetBufferSize クラス内 NonNullableStructVectorpublic int getBufferSizeFor(int valueCount)
getBufferSizeFor インタフェース内 ValueVectorgetBufferSizeFor クラス内 NonNullableStructVectorvalueCount - desired number of elements in the vectorpublic void setInitialCapacity(int numRecords)
ValueVectorsetInitialCapacity インタフェース内 ValueVectorsetInitialCapacity クラス内 NonNullableStructVectornumRecords - the initial record capacity.public void setInitialCapacity(int numRecords,
double density)
DensityAwareVectorsetInitialCapacity インタフェース内 DensityAwareVectorsetInitialCapacity クラス内 NonNullableStructVectorpublic boolean allocateNewSafe()
ValueVectorallocateNewSafe インタフェース内 ValueVectorallocateNewSafe クラス内 AbstractStructVectorpublic void reAlloc()
ValueVectorreAlloc インタフェース内 ValueVectorreAlloc クラス内 AbstractStructVectorpublic long getValidityBufferAddress()
FieldVectorgetValidityBufferAddress インタフェース内 FieldVectorpublic long getDataBufferAddress()
FieldVectorgetDataBufferAddress インタフェース内 FieldVectorpublic long getOffsetBufferAddress()
FieldVectorgetOffsetBufferAddress インタフェース内 FieldVectorpublic ArrowBuf getValidityBuffer()
ValueVectorgetValidityBuffer インタフェース内 ValueVectorgetValidityBuffer クラス内 NonNullableStructVectorpublic ArrowBuf getDataBuffer()
ValueVectorgetDataBuffer インタフェース内 ValueVectorgetDataBuffer クラス内 NonNullableStructVectorpublic ArrowBuf getOffsetBuffer()
ValueVectorgetOffsetBuffer インタフェース内 ValueVectorgetOffsetBuffer クラス内 NonNullableStructVectorpublic Object getObject(int index)
ValueVectorgetObject インタフェース内 ValueVectorgetObject クラス内 NonNullableStructVectorpublic void get(int index,
ComplexHolder holder)
get クラス内 NonNullableStructVectorpublic int getNullCount()
ValueVectorgetNullCount インタフェース内 ValueVectorgetNullCount クラス内 NonNullableStructVectorpublic boolean isNull(int index)
ValueVectorisNull インタフェース内 ValueVectorisNull クラス内 NonNullableStructVectorpublic int isSet(int index)
public void setIndexDefined(int index)
public void setNull(int index)
public void setValueCount(int valueCount)
ValueVectorsetValueCount インタフェース内 ValueVectorsetValueCount クラス内 NonNullableStructVectorCopyright © 2018 The Apache Software Foundation. All rights reserved.