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, valueCount
allocator, 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(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 |
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. |
accept, allocateNew, allocateNew, allocateNew, allocateNewSafe, clear, close, copyFrom, copyFromSafe, fillEmpties, fillHoles, get, getBuffers, getBufferSize, getBufferSizeFor, getByteCapacity, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDataPointer, getDataPointer, getDensity, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getName, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getStartOffset, 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, zeroVector
checkBufRefs, getAllocator, getReader, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBuffer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator, getReader
forEach, iterator, spliterator
public 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()
BaseValueVector
getReaderImpl
in class BaseValueVector
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, 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 TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
in interface ValueVector
getTransferPair
in class BaseLargeVariableWidthVector
ref
- name of the target vectorallocator
- allocator for the target vectorTransferPair
public TransferPair makeTransferPair(ValueVector to)
to
- target vectorTransferPair
Copyright © 2023 The Apache Software Foundation. All rights reserved.