public final class BigIntVector extends BaseDataValueVector implements FixedWidthVector
| Modifier and Type | Class and Description |
|---|---|
class |
BigIntVector.Accessor |
class |
BigIntVector.Mutator
BigInt.Mutator implements a mutable vector of fixed width values.
|
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutatordata, emptyByteArrayallocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name| Constructor and Description |
|---|
BigIntVector(String name,
BufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateNew()
Allocate new buffers.
|
void |
allocateNew(int valueCount)
Allocate a new buffer that supports setting at least the provided number of values.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
copyFrom(int fromIndex,
int thisIndex,
BigIntVector from) |
void |
copyFromSafe(int fromIndex,
int thisIndex,
BigIntVector from) |
void |
decrementAllocationMonitor() |
BigIntVector.Accessor |
getAccessor()
Returns an
accessor that is used to read from this vector
instance. |
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
Field |
getField()
Get information about how this field is materialized.
|
Types.MinorType |
getMinorType() |
BigIntVector.Mutator |
getMutator()
Returns an
mutator that is used to write to this vector
instance. |
FieldReader |
getReader()
Returns a
field reader that supports reading values
from this vector. |
TransferPair |
getTransferPair(BufferAllocator allocator)
Returns a
transfer pair, creating a new target vector of
the same type. |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
TransferPair |
makeTransferPair(ValueVector to)
Returns a new
transfer pair that is used to transfer underlying
buffers into the target vector. |
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
void |
reset()
This method has a similar effect of allocateNew() without actually clearing and reallocating
the value vector.
|
void |
setInitialCapacity(int valueCount)
Set the initial record capacity
|
void |
splitAndTransferTo(int startIndex,
int length,
BigIntVector target) |
void |
transferTo(BigIntVector target) |
void |
zeroVector()
Zero out the underlying buffer backing this vector.
|
clear, close, getBuffer, getBuffers, getBufferSize, load, load, unLoad, unloadcheckBufRefs, getAllocator, iterator, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, close, getAllocator, getBuffers, getBufferSizepublic BigIntVector(String name, BufferAllocator allocator)
public Types.MinorType getMinorType()
getMinorType in interface ValueVectorpublic Field getField()
ValueVectorgetField in interface ValueVectorpublic FieldReader getReader()
ValueVectorfield reader that supports reading values
from this vector.getReader in interface ValueVectorpublic int getBufferSizeFor(int valueCount)
ValueVectorgetBufferSizeFor in interface ValueVectorvalueCount - the number of values to assume this vector containspublic int getValueCapacity()
ValueVectorgetValueCapacity in interface ValueVectorpublic BigIntVector.Accessor getAccessor()
ValueVectoraccessor that is used to read from this vector
instance.getAccessor in interface ValueVectorpublic BigIntVector.Mutator getMutator()
ValueVectormutator that is used to write to this vector
instance.getMutator in interface ValueVectorpublic void setInitialCapacity(int valueCount)
ValueVectorsetInitialCapacity in interface ValueVectorvalueCount - the initial record capacity.public void allocateNew()
ValueVectorallocateNew in interface ValueVectorpublic boolean allocateNewSafe()
ValueVectorallocateNewSafe in interface ValueVectorpublic void allocateNew(int valueCount)
allocateNew in interface FixedWidthVectorvalueCount - OutOfMemoryException - if it can't allocate the new bufferpublic void reset()
BaseDataValueVectorreset in class BaseDataValueVectorpublic void reAlloc()
OutOfMemoryException - if it can't allocate the new bufferpublic void zeroVector()
zeroVector in interface FixedWidthVectorpublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectortransfer pair, creating a new target vector of
the same type.getTransferPair in interface ValueVectorgetTransferPair in class BaseValueVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorpublic TransferPair makeTransferPair(ValueVector to)
ValueVectortransfer pair that is used to transfer underlying
buffers into the target vector.makeTransferPair in interface ValueVectorpublic void transferTo(BigIntVector target)
public void splitAndTransferTo(int startIndex,
int length,
BigIntVector target)
public void copyFrom(int fromIndex,
int thisIndex,
BigIntVector from)
public void copyFromSafe(int fromIndex,
int thisIndex,
BigIntVector from)
public void decrementAllocationMonitor()
Copyright © 2016 The Apache Software Foundation. All rights reserved.