public class VarCharVector extends BaseVariableWidthVector
emptyByteArray, field, lastSet, OFFSET_WIDTH, offsetBuffer, validityBuffer, valueBuffer, valueCount
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
コンストラクタと説明 |
---|
VarCharVector(String name,
BufferAllocator allocator)
Instantiate a VarCharVector.
|
VarCharVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a VarCharVector.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
copyFrom(int fromIndex,
int thisIndex,
VarCharVector 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,
VarCharVector from)
Same as
copyFrom(int, int, VarCharVector) 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,
NullableVarCharHolder 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.
|
Text |
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,
NullableVarCharHolder holder)
Set the variable length element at the specified index to the data
buffer supplied in the holder
|
void |
set(int index,
Text text)
Set the variable length element at the specified index to the
content in supplied Text
|
void |
set(int index,
VarCharHolder holder)
Set the variable length element at the specified index to the data
buffer supplied in the holder
|
void |
setSafe(int index,
NullableVarCharHolder holder)
Same as
set(int, NullableVarCharHolder) 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,
Text text)
Same as
set(int, NullableVarCharHolder) 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,
VarCharHolder holder)
Same as
set(int, VarCharHolder) 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 VarCharVector(String name, BufferAllocator allocator)
name
- name of the vectorallocator
- allocator for memory management.public VarCharVector(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 Text getObject(int index)
index
- position of element to getpublic void get(int index, NullableVarCharHolder holder)
index
- position of element to getholder
- data holder to be populated by this functionpublic void copyFrom(int fromIndex, int thisIndex, VarCharVector from)
fromIndex
- position to copy from in source vectorthisIndex
- position to copy to in this vectorfrom
- source vectorpublic void copyFromSafe(int fromIndex, int thisIndex, VarCharVector from)
copyFrom(int, int, VarCharVector)
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, VarCharHolder holder)
index
- position of the element to setholder
- holder that carries data buffer.public void setSafe(int index, VarCharHolder holder)
set(int, VarCharHolder)
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, NullableVarCharHolder holder)
index
- position of the element to setholder
- holder that carries data buffer.public void setSafe(int index, NullableVarCharHolder holder)
set(int, NullableVarCharHolder)
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, Text text)
index
- position of the element to settext
- Text object with datapublic void setSafe(int index, Text text)
set(int, NullableVarCharHolder)
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 set.text
- Text object with datapublic 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.