public abstract class BaseRepeatedValueVector extends BaseValueVector implements RepeatedValueVector
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected CallBack |
callBack |
static String |
DATA_VECTOR_NAME |
static FieldVector |
DEFAULT_DATA_VECTOR |
static byte |
OFFSET_WIDTH |
protected int |
offsetAllocationSizeInBytes |
protected ArrowBuf |
offsetBuffer |
protected int |
valueCount |
protected FieldVector |
vector |
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, nameDEFAULT_REPEAT_PER_RECORD| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
BaseRepeatedValueVector(String name,
BufferAllocator allocator,
CallBack callBack) |
protected |
BaseRepeatedValueVector(String name,
BufferAllocator allocator,
FieldVector vector,
CallBack callBack) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
<T extends ValueVector> |
addOrGetVector(FieldType fieldType) |
boolean |
allocateNewSafe()
Allocates new buffers.
|
protected void |
allocateOffsetBuffer(long size) |
void |
clear()
Release any owned ArrowBuf and reset the ValueVector to the initial state.
|
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.
|
FieldVector |
getDataVector() |
int |
getInnerValueCount() |
int |
getInnerValueCountAt(int index) |
protected int |
getOffsetBufferValueCapacity() |
UInt4Vector |
getOffsetVector()
非推奨です。
|
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
int |
getValueCount()
Gets the number of values
|
boolean |
isEmpty(int index) |
boolean |
isNull(int index)
Check whether an element in the vector is null
|
Iterator<ValueVector> |
iterator() |
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
protected void |
reallocOffsetBuffer() |
protected void |
replaceDataVector(FieldVector v) |
void |
reset()
Reset the ValueVector to the initial state without releasing any owned ArrowBuf.
|
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
void |
setInitialCapacity(int numRecords,
double density)
Specialized version of setInitialCapacity() for ListVector.
|
void |
setValueCount(int valueCount)
Set number of values in the vector
|
int |
size() |
int |
startNewValue(int index) |
checkBufRefs, close, compareTypes, getAllocator, getTransferPair, getValidityBufferSizeFromCount, releaseBuffer, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallocateNew, close, getAllocator, getDataBuffer, getField, getMinorType, getNullCount, getObject, getOffsetBuffer, getReader, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, makeTransferPairforEach, spliteratorpublic static final FieldVector DEFAULT_DATA_VECTOR
public static final byte OFFSET_WIDTH
protected ArrowBuf offsetBuffer
protected FieldVector vector
protected final CallBack callBack
protected int valueCount
protected int offsetAllocationSizeInBytes
protected BaseRepeatedValueVector(String name, BufferAllocator allocator, CallBack callBack)
protected BaseRepeatedValueVector(String name, BufferAllocator allocator, FieldVector vector, CallBack callBack)
public boolean allocateNewSafe()
ValueVectorallocateNewSafe インタフェース内 ValueVectorprotected void allocateOffsetBuffer(long size)
public void reAlloc()
ValueVectorreAlloc インタフェース内 ValueVectorprotected void reallocOffsetBuffer()
@Deprecated public UInt4Vector getOffsetVector()
getOffsetVector インタフェース内 RepeatedValueVectorpublic FieldVector getDataVector()
getDataVector インタフェース内 RepeatedValueVectorpublic void setInitialCapacity(int numRecords)
ValueVectorsetInitialCapacity インタフェース内 ValueVectornumRecords - the initial record capacity.public void setInitialCapacity(int numRecords,
double density)
setInitialCapacity インタフェース内 DensityAwareVectornumRecords - value countdensity - density of ListVector. Density is the average size of
list per position in the List vector. For example, a
density value of 10 implies each position in the list
vector has a list of 10 values.
A density value of 0.1 implies out of 10 positions in
the list vector, 1 position has a list of size 1 and
remaining positions are null (no lists) or empty lists.
This helps in tightly controlling the memory we provision
for inner data vector.public int getValueCapacity()
ValueVectorgetValueCapacity インタフェース内 ValueVectorprotected int getOffsetBufferValueCapacity()
public 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 fieldType)
protected void replaceDataVector(FieldVector v)
public int getValueCount()
ValueVectorgetValueCount インタフェース内 ValueVectorpublic int getInnerValueCount()
public int getInnerValueCountAt(int index)
public boolean isNull(int index)
ValueVectorisNull インタフェース内 ValueVectorpublic boolean isEmpty(int index)
public int startNewValue(int index)
public void setValueCount(int valueCount)
ValueVectorsetValueCount インタフェース内 ValueVectorCopyright © 2018 The Apache Software Foundation. All rights reserved.