public class FixedSizeListVector extends BaseValueVector implements FieldVector, PromotableVector
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name| コンストラクタと説明 |
|---|
FixedSizeListVector(String name,
BufferAllocator allocator,
FieldType fieldType,
CallBack schemaChangeCallback) |
FixedSizeListVector(String name,
BufferAllocator allocator,
int listSize,
DictionaryEncoding dictionary,
CallBack schemaChangeCallback)
非推奨です。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
<T extends ValueVector> |
addOrGetVector(FieldType type) |
void |
allocateNew()
Allocate new buffers.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
clear()
Release any owned ArrowBuf and reset the ValueVector to the initial state.
|
void |
copyFrom(int fromIndex,
int thisIndex,
FixedSizeListVector from) |
void |
copyFromSafe(int inIndex,
int outIndex,
FixedSizeListVector from) |
static FixedSizeListVector |
empty(String name,
int size,
BufferAllocator allocator) |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize() |
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
List<FieldVector> |
getChildrenFromFields()
the returned list is the same size as the list passed to initializeChildrenFromFields
|
ArrowBuf |
getDataBuffer()
Gets the underlying buffer associated with data vector
|
long |
getDataBufferAddress()
Gets the starting address of the underlying buffer associated with data vector
|
FieldVector |
getDataVector() |
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 |
getListSize() |
Types.MinorType |
getMinorType() |
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
|
UnionFixedSizeListReader |
getReader() |
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()
Returns the maximum number of values that can be stored in this vector instance.
|
int |
getValueCount()
Gets the number of values
|
void |
initializeChildrenFromFields(List<Field> children)
Initializes the child vectors
to be later loaded with loadBuffers
|
boolean |
isNull(int index)
Check whether an element in the vector is null
|
int |
isSet(int index) |
Iterator<ValueVector> |
iterator() |
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector target)
makes a new transfer pair used to transfer underlying buffers
|
UnionVector |
promoteToUnion() |
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
void |
reset()
Reset the ValueVector to the initial state without releasing any owned ArrowBuf.
|
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
void |
setNotNull(int index) |
void |
setNull(int index) |
void |
setValueCount(int valueCount)
Set number of values in the vector
|
int |
size() |
checkBufRefs, close, compareTypes, getAllocator, getTransferPair, getValidityBufferSizeFromCount, releaseBuffer, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getAllocator, getTransferPairforEach, spliterator@Deprecated public FixedSizeListVector(String name, BufferAllocator allocator, int listSize, DictionaryEncoding dictionary, CallBack schemaChangeCallback)
public FixedSizeListVector(String name, BufferAllocator allocator, FieldType fieldType, CallBack schemaChangeCallback)
public static FixedSizeListVector empty(String name, int size, BufferAllocator allocator)
public Field getField()
ValueVectorgetField インタフェース内 ValueVectorpublic Types.MinorType getMinorType()
getMinorType インタフェース内 ValueVectorpublic int getListSize()
public void initializeChildrenFromFields(List<Field> children)
FieldVectorinitializeChildrenFromFields インタフェース内 FieldVectorchildren - the schemapublic List<FieldVector> getChildrenFromFields()
FieldVectorgetChildrenFromFields インタフェース内 FieldVectorpublic 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 UnionFixedSizeListReader getReader()
getReader インタフェース内 ValueVectorfield reader that supports reading values
from this vector.public void allocateNew()
throws OutOfMemoryException
ValueVectorallocateNew インタフェース内 ValueVectorOutOfMemoryException - Thrown if no memory can be allocated.public boolean allocateNewSafe()
ValueVectorallocateNewSafe インタフェース内 ValueVectorpublic void reAlloc()
ValueVectorreAlloc インタフェース内 ValueVectorpublic FieldVector getDataVector()
public void setInitialCapacity(int numRecords)
ValueVectorsetInitialCapacity インタフェース内 ValueVectornumRecords - the initial record capacity.public int getValueCapacity()
ValueVectorgetValueCapacity インタフェース内 ValueVectorpublic int getBufferSize()
getBufferSize インタフェース内 ValueVectorpublic int getBufferSizeFor(int valueCount)
ValueVectorgetBufferSizeFor インタフェース内 ValueVectorvalueCount - the number of values to assume this vector containspublic Iterator<ValueVector> iterator()
iterator インタフェース内 Iterable<ValueVector>iterator クラス内 BaseValueVectorpublic void clear()
ValueVectorclear インタフェース内 ValueVectorclear クラス内 BaseValueVectorpublic void reset()
ValueVectorreset インタフェース内 ValueVectorpublic ArrowBuf[] getBuffers(boolean clear)
ValueVectorgetBuffers インタフェース内 ValueVectorclear - 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 size()
public <T extends ValueVector> AddOrGetResult<T> addOrGetVector(FieldType type)
addOrGetVector インタフェース内 PromotableVectorpublic void copyFromSafe(int inIndex,
int outIndex,
FixedSizeListVector from)
public void copyFrom(int fromIndex,
int thisIndex,
FixedSizeListVector from)
public UnionVector promoteToUnion()
promoteToUnion インタフェース内 PromotableVectorpublic long getValidityBufferAddress()
FieldVectorgetValidityBufferAddress インタフェース内 FieldVectorpublic long getDataBufferAddress()
FieldVectorgetDataBufferAddress インタフェース内 FieldVectorpublic long getOffsetBufferAddress()
FieldVectorgetOffsetBufferAddress インタフェース内 FieldVectorpublic ArrowBuf getValidityBuffer()
ValueVectorgetValidityBuffer インタフェース内 ValueVectorpublic ArrowBuf getDataBuffer()
ValueVectorgetDataBuffer インタフェース内 ValueVectorpublic ArrowBuf getOffsetBuffer()
ValueVectorgetOffsetBuffer インタフェース内 ValueVectorpublic Object getObject(int index)
ValueVectorgetObject インタフェース内 ValueVectorpublic boolean isNull(int index)
ValueVectorisNull インタフェース内 ValueVectorpublic int isSet(int index)
public int getNullCount()
ValueVectorgetNullCount インタフェース内 ValueVectorpublic int getValueCount()
ValueVectorgetValueCount インタフェース内 ValueVectorpublic void setNull(int index)
public void setNotNull(int index)
public void setValueCount(int valueCount)
ValueVectorsetValueCount インタフェース内 ValueVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair インタフェース内 ValueVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair インタフェース内 ValueVectorpublic TransferPair makeTransferPair(ValueVector target)
ValueVectormakeTransferPair インタフェース内 ValueVectortarget - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.Copyright © 2018 The Apache Software Foundation. All rights reserved.