public final class LargeVarCharVector extends BaseLargeVariableWidthVector
The offset width of this vector is 8, so the underlying buffer can be larger than 2GB.
emptyByteArray, field, lastSet, OFFSET_WIDTH, offsetBuffer, validityBuffer, valueBuffer, valueCountallocator, fieldReader, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY| Constructor and Description |
|---|
LargeVarCharVector(Field field,
BufferAllocator allocator)
Instantiate a LargeVarCharVector.
|
LargeVarCharVector(String name,
BufferAllocator allocator)
Instantiate a LargeVarCharVector.
|
LargeVarCharVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a LargeVarCharVector.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
get(int index)
Get the variable length element at specified index as byte array.
|
void |
get(int index,
NullableLargeVarCharHolder 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.
|
protected FieldReader |
getReaderImpl()
Each vector has a different reader that implements the FieldReader interface.
|
TransferPair |
getTransferPair(Field field,
BufferAllocator allocator)
Construct a transfer pair of this vector and another vector of same type.
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator)
Construct a TransferPair comprising of this 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 |
read(int index,
ReusableBuffer<?> buffer)
Read the value at the given position to the given output buffer.
|
void |
set(int index,
LargeVarCharHolder holder)
Set the variable length element at the specified index to the data
buffer supplied in the holder.
|
void |
set(int index,
NullableLargeVarCharHolder 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 |
setSafe(int index,
LargeVarCharHolder holder)
Same as
set(int, LargeVarCharHolder) 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,
NullableLargeVarCharHolder holder)
Same as
set(int, NullableLargeVarCharHolder) 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, NullableLargeVarCharHolder) except that it handles the
case where index and length of new element are beyond the existing
capacity of the vector. |
void |
validateScalars()
Validate the scalar values held by this vector.
|
accept, allocateNew, allocateNew, allocateNew, allocateNewSafe, clear, close, copyFrom, copyFromSafe, exportCDataBuffers, fillEmpties, fillHoles, get, getBuffers, getBufferSize, getBufferSizeFor, getByteCapacity, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDataPointer, getDataPointer, getDensity, getEndOffset, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getName, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getStartOffset, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, getValueLength, handleSafe, hashCode, hashCode, 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, sizeOfValueBuffer, splitAndTransferTo, transferTo, zeroVectorcheckBufRefs, getAllocator, getReader, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBufferclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllocator, getReader, validate, validateFullforEach, iterator, spliteratorexportBufferpublic LargeVarCharVector(String name, BufferAllocator allocator)
name - name of the vectorallocator - allocator for memory management.public LargeVarCharVector(String name, FieldType fieldType, BufferAllocator allocator)
name - name of the vectorfieldType - type of Field materialized by this vectorallocator - allocator for memory management.public LargeVarCharVector(Field field, BufferAllocator allocator)
field - field materialized by this vectorallocator - allocator for memory management.protected FieldReader getReaderImpl()
BaseValueVectorgetReaderImpl in class BaseValueVectorpublic Types.MinorType getMinorType()
Types.MinorTypepublic byte[] get(int index)
index - position of element to getpublic Text getObject(int index)
index - position of element to getpublic void read(int index,
ReusableBuffer<?> buffer)
index - position of element.buffer - the buffer to write into.public void get(int index,
NullableLargeVarCharHolder holder)
index - position of element to getholder - data holder to be populated by this functionpublic void set(int index,
LargeVarCharHolder holder)
index - position of the element to setholder - holder that carries data buffer.public void setSafe(int index,
LargeVarCharHolder holder)
set(int, LargeVarCharHolder) 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,
NullableLargeVarCharHolder holder)
index - position of the element to setholder - holder that carries data buffer.public void setSafe(int index,
NullableLargeVarCharHolder holder)
set(int, NullableLargeVarCharHolder) 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, NullableLargeVarCharHolder) 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 void validateScalars()
BaseLargeVariableWidthVectorvalidateScalars in class BaseLargeVariableWidthVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorgetTransferPair in class BaseLargeVariableWidthVectorref - name of the target vectorallocator - allocator for the target vectorTransferPairpublic TransferPair getTransferPair(Field field, BufferAllocator allocator)
BaseLargeVariableWidthVectorgetTransferPair in interface ValueVectorgetTransferPair in class BaseLargeVariableWidthVectorfield - The field materialized by this vectorallocator - allocator for the target vectorpublic TransferPair makeTransferPair(ValueVector to)
to - target vectorTransferPairCopyright © 2024 The Apache Software Foundation. All rights reserved.