public final class ZeroVector extends NullVector
| Modifier and Type | Field and Description |
|---|---|
static ZeroVector |
INSTANCE |
field| Constructor and Description |
|---|
ZeroVector()
Deprecated.
|
ZeroVector(Field field)
Instantiate a ZeroVector.
|
ZeroVector(String name)
Instantiate a ZeroVector.
|
ZeroVector(String name,
FieldType fieldType)
Instantiate a ZeroVector.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNullCount()
Returns number of null elements in the vector.
|
TransferPair |
getTransferPair(BufferAllocator allocator)
To transfer quota responsibility.
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator)
To transfer quota responsibility.
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack)
To transfer quota responsibility.
|
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
int |
getValueCount()
Gets the number of values.
|
int |
hashCode(int index)
Returns hashCode of element in index with the default hasher.
|
int |
hashCode(int index,
ArrowBufHasher hasher)
Returns hashCode of element in index with the given hasher.
|
boolean |
isNull(int index)
Check whether an element in the vector is null.
|
TransferPair |
makeTransferPair(ValueVector target)
Makes a new transfer pair used to transfer underlying buffers.
|
void |
setValueCount(int valueCount)
Set number of values in the vector.
|
accept, allocateNew, allocateNewSafe, clear, close, copyFrom, copyFromSafe, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getField, getFieldBuffers, getFieldInnerVectors, getMinorType, getName, getObject, getOffsetBuffer, getOffsetBufferAddress, getReader, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, initializeChildrenFromFields, iterator, loadFieldBuffers, reAlloc, reset, setInitialCapacity, setNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportBuffer, exportCDataBuffersvalidate, validateFullforEach, spliteratorpublic static final ZeroVector INSTANCE
public ZeroVector(String name)
name - name of the vectorpublic ZeroVector(String name, FieldType fieldType)
name - name of the vectorfieldType - type of Field materialized by this vector.public ZeroVector(Field field)
field - field materialized by this vector.@Deprecated public ZeroVector()
public int getValueCount()
ValueVectorgetValueCount in interface ValueVectorgetValueCount in class NullVectorpublic void setValueCount(int valueCount)
ValueVectorsetValueCount in interface ValueVectorsetValueCount in class NullVectorpublic int getNullCount()
ValueVectorgetNullCount in interface ValueVectorgetNullCount in class NullVectorpublic boolean isNull(int index)
ValueVectorisNull in interface ValueVectorisNull in class NullVectorindex - index to check for nullpublic int hashCode(int index)
ValueVectorhashCode in interface ValueVectorhashCode in class NullVectorpublic int hashCode(int index,
ArrowBufHasher hasher)
ValueVectorhashCode in interface ValueVectorhashCode in class NullVectorpublic int getValueCapacity()
ValueVectorgetValueCapacity in interface ValueVectorgetValueCapacity in class NullVectorpublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class NullVectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class NullVectorref - the name of the vectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class NullVectorref - the name of the vectorallocator - the target allocatorcallBack - A schema change callback.transfer pair, creating a new target vector of
the same type.public TransferPair makeTransferPair(ValueVector target)
ValueVectormakeTransferPair in interface ValueVectormakeTransferPair in class NullVectortarget - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.Copyright © 2024 The Apache Software Foundation. All rights reserved.