public class VarBinaryVector extends BaseVariableWidthVector
emptyByteArray, field, lastSet, OFFSET_WIDTH, offsetBuffer, validityBuffer, valueBuffer, valueCount
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
コンストラクタと説明 |
---|
VarBinaryVector(String name,
BufferAllocator allocator)
Instantiate a VarBinaryVector.
|
VarBinaryVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a VarBinaryVector.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
copyFrom(int fromIndex,
int thisIndex,
VarBinaryVector from)
Copy a cell value from a particular index in source vector to a particular
position in this vector
|
void |
copyFromSafe(int fromIndex,
int thisIndex,
VarBinaryVector from)
Same as
copyFrom(int, int, VarBinaryVector) except that
it handles the case when the capacity of the vector needs to be expanded
before copy. |
byte[] |
get(int index)
Get the variable length element at specified index as byte array.
|
void |
get(int index,
NullableVarBinaryHolder holder)
Get the variable length element at specified index and sets the state
in provided holder.
|
Types.MinorType |
getMinorType()
Get minor type for this vector.
|
byte[] |
getObject(int index)
Get the variable length element at specified index as Text.
|
FieldReader |
getReader()
Get a reader that supports reading values from this vector
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator)
Construct a TransferPair comprising of this and and a target vector of
the same type.
|
TransferPair |
makeTransferPair(ValueVector to)
Construct a TransferPair with a desired target vector of the same type.
|
void |
set(int index,
NullableVarBinaryHolder holder)
Set the variable length element at the specified index to the data
buffer supplied in the holder
|
void |
set(int index,
VarBinaryHolder holder)
Set the variable length element at the specified index to the data
buffer supplied in the holder
|
void |
setSafe(int index,
NullableVarBinaryHolder holder)
Same as
set(int, NullableVarBinaryHolder) except that it handles the
case where index and length of new element are beyond the existing
capacity of the vector. |
void |
setSafe(int index,
VarBinaryHolder holder)
Same as
set(int, VarBinaryHolder) except that it handles the
case where index and length of new element are beyond the existing
capacity of the vector. |
allocateNew, allocateNew, allocateNewSafe, clear, close, fillEmpties, fillHoles, get, getBuffers, getBufferSize, getBufferSizeFor, getByteCapacity, getChildrenFromFields, getCurrentSizeInBytes, getDataBuffer, getDataBufferAddress, getDensity, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getStartEnd, getstartOffset, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, getValueLength, handleSafe, initializeChildrenFromFields, isNull, isSafe, isSet, loadFieldBuffers, reAlloc, reallocDataBuffer, reallocValidityAndOffsetBuffers, reset, set, set, set, set, set, set, setBytes, setIndexDefined, setInitialCapacity, setInitialCapacity, setLastSet, setNull, setSafe, setSafe, setSafe, setSafe, setSafe, setValueCount, setValueLengthSafe, splitAndTransferTo, transferTo, zeroVector
checkBufRefs, compareTypes, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator
forEach, iterator, spliterator
public VarBinaryVector(String name, BufferAllocator allocator)
name
- name of the vectorallocator
- allocator for memory management.public VarBinaryVector(String name, FieldType fieldType, BufferAllocator allocator)
name
- name of the vectorfieldType
- type of Field materialized by this vectorallocator
- allocator for memory management.public FieldReader getReader()
public Types.MinorType getMinorType()
Types.MinorType
public byte[] get(int index)
index
- position of element to getpublic byte[] getObject(int index)
index
- position of element to getpublic void get(int index, NullableVarBinaryHolder holder)
index
- position of element to getholder
- data holder to be populated by this functionpublic void copyFrom(int fromIndex, int thisIndex, VarBinaryVector from)
fromIndex
- position to copy from in source vectorthisIndex
- position to copy to in this vectorfrom
- source vectorpublic void copyFromSafe(int fromIndex, int thisIndex, VarBinaryVector from)
copyFrom(int, int, VarBinaryVector)
except that
it handles the case when the capacity of the vector needs to be expanded
before copy.fromIndex
- position to copy from in source vectorthisIndex
- position to copy to in this vectorfrom
- source vectorpublic void set(int index, VarBinaryHolder holder)
index
- position of the element to setholder
- holder that carries data buffer.public void setSafe(int index, VarBinaryHolder holder)
set(int, VarBinaryHolder)
except that it handles the
case where index and length of new element are beyond the existing
capacity of the vector.index
- position of the element to setholder
- holder that carries data buffer.public void set(int index, NullableVarBinaryHolder holder)
index
- position of the element to setholder
- holder that carries data buffer.public void setSafe(int index, NullableVarBinaryHolder holder)
set(int, NullableVarBinaryHolder)
except that it handles the
case where index and length of new element are beyond the existing
capacity of the vector.index
- position of the element to setholder
- holder that carries data buffer.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
インタフェース内 ValueVector
getTransferPair
クラス内 BaseVariableWidthVector
ref
- name of the target vectorallocator
- allocator for the target vectorTransferPair
public TransferPair makeTransferPair(ValueVector to)
to
- target vectorTransferPair
Copyright © 2018 The Apache Software Foundation. All rights reserved.