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) |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
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, getValidityBuffer, getValidityBufferAddress, initializeChildrenFromFields, iterator, loadFieldBuffers, reAlloc, reset, setInitialCapacity, setNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate, validateFull
forEach, spliterator
public 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()
ValueVector
getValueCount
in interface ValueVector
getValueCount
in class NullVector
public void setValueCount(int valueCount)
ValueVector
setValueCount
in interface ValueVector
setValueCount
in class NullVector
public int getNullCount()
ValueVector
getNullCount
in interface ValueVector
getNullCount
in class NullVector
public boolean isNull(int index)
ValueVector
isNull
in interface ValueVector
isNull
in class NullVector
index
- index to check for nullpublic int hashCode(int index)
ValueVector
hashCode
in interface ValueVector
hashCode
in class NullVector
public int hashCode(int index, ArrowBufHasher hasher)
ValueVector
hashCode
in interface ValueVector
hashCode
in class NullVector
public int getValueCapacity()
ValueVector
getValueCapacity
in interface ValueVector
getValueCapacity
in class NullVector
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
getTransferPair
in interface ValueVector
getTransferPair
in class NullVector
allocator
- the target allocatortransfer pair
, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
in interface ValueVector
getTransferPair
in class NullVector
public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair
in interface ValueVector
getTransferPair
in class NullVector
public TransferPair makeTransferPair(ValueVector target)
ValueVector
makeTransferPair
in interface ValueVector
makeTransferPair
in class NullVector
target
- the target for the transfertransfer pair
that is used to transfer underlying
buffers into the target vector.Copyright © 2023 The Apache Software Foundation. All rights reserved.