public class BigIntVector extends BaseFixedWidthVector
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE_WIDTH |
field, validityAllocationSizeInBytes, validityBuffer, valueAllocationSizeInBytes, valueBuffer, valueCountallocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name| Constructor and Description |
|---|
BigIntVector(String name,
BufferAllocator allocator)
Instantiate a BigIntVector.
|
BigIntVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a BigIntVector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(int fromIndex,
int thisIndex,
BigIntVector 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,
BigIntVector from)
Same as
copyFrom(int, int, BigIntVector) except that
it handles the case when the capacity of the vector needs to be expanded
before copy. |
static long |
get(ArrowBuf buffer,
int index)
Given a data buffer, get the value stored at a particular position
in the vector.
|
long |
get(int index)
Get the element at the given index from the vector.
|
void |
get(int index,
NullableBigIntHolder holder)
Get the element at the given index from the vector and
sets the state in holder.
|
Types.MinorType |
getMinorType()
Get minor type for this vector.
|
Long |
getObject(int index)
Same as
get(int). |
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,
BigIntHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
set(int index,
int isSet,
long value)
Store the given value at a particular position in the vector.
|
void |
set(int index,
long value)
Set the element at the given index to the given value.
|
void |
set(int index,
NullableBigIntHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
setNull(int index)
Set the element at the given index to null.
|
void |
setSafe(int index,
BigIntHolder holder)
Same as
set(int, BigIntHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
void |
setSafe(int index,
int isSet,
long value)
Same as
set(int, int, long) except that it handles the case
when index is greater than or equal to current value capacity of the
vector. |
void |
setSafe(int index,
long value)
Same as
set(int, long) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
void |
setSafe(int index,
NullableBigIntHolder holder)
Same as
set(int, NullableBigIntHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
allocateNew, allocateNew, allocateNewSafe, clear, close, decrementAllocationMonitor, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getField, getFieldBuffers, getFieldInnerVectors, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, handleSafe, incrementAllocationMonitor, initializeChildrenFromFields, isNull, isSafe, isSet, loadFieldBuffers, reAlloc, reset, set, set, setIndexDefined, setInitialCapacity, setSafe, setSafe, setValueCount, splitAndTransferTo, transferTo, zeroVectorcheckBufRefs, compareTypes, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllocatorforEach, iterator, spliteratorpublic static final byte TYPE_WIDTH
public BigIntVector(String name, BufferAllocator allocator)
name - name of the vectorallocator - allocator for memory management.public BigIntVector(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.MinorTypepublic long get(int index)
throws IllegalStateException
index - position of elementIllegalStateExceptionpublic void get(int index,
NullableBigIntHolder holder)
index - position of elementpublic Long getObject(int index)
get(int).index - position of elementpublic void copyFrom(int fromIndex,
int thisIndex,
BigIntVector from)
fromIndex - position to copy from in source vectorthisIndex - position to copy to in this vectorfrom - source vectorpublic void copyFromSafe(int fromIndex,
int thisIndex,
BigIntVector from)
copyFrom(int, int, BigIntVector) 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,
long value)
index - position of elementvalue - value of elementpublic void set(int index,
NullableBigIntHolder holder)
throws IllegalArgumentException
index - position of elementholder - nullable data holder for value of elementIllegalArgumentExceptionpublic void set(int index,
BigIntHolder holder)
index - position of elementholder - data holder for value of elementpublic void setSafe(int index,
long value)
set(int, long) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity().index - position of elementvalue - value of elementpublic void setSafe(int index,
NullableBigIntHolder holder)
throws IllegalArgumentException
set(int, NullableBigIntHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity().index - position of elementholder - nullable data holder for value of elementIllegalArgumentExceptionpublic void setSafe(int index,
BigIntHolder holder)
set(int, BigIntHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity().index - position of elementholder - data holder for value of elementpublic void setNull(int index)
index - position of elementpublic void set(int index,
int isSet,
long value)
index - position of the new valueisSet - 0 for NULL value, 1 otherwisevalue - element valuepublic void setSafe(int index,
int isSet,
long value)
set(int, int, long) except that it handles the case
when index is greater than or equal to current value capacity of the
vector.index - position of the new valueisSet - 0 for NULL value, 1 otherwisevalue - element valuepublic static long get(ArrowBuf buffer, int index)
buffer - data bufferindex - position of the element.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorgetTransferPair in class BaseFixedWidthVectorref - name of the target vectorallocator - allocator for the target vectorTransferPairpublic TransferPair makeTransferPair(ValueVector to)
to - target vectorTransferPairCopyright © 2018 The Apache Software Foundation. All rights reserved.