public final class TimeStampSecVector extends BaseDataValueVector implements FixedWidthVector
| Modifier and Type | Class and Description |
|---|---|
class |
TimeStampSecVector.Accessor |
class |
TimeStampSecVector.Mutator
TimeStampSec.Mutator implements a mutable vector of fixed width values.
|
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutator| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_WIDTH |
dataallocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name| Constructor and Description |
|---|
TimeStampSecVector(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,
TimeStampSecVector from) |
void |
copyFromSafe(int fromIndex,
int thisIndex,
TimeStampSecVector from) |
void |
decrementAllocationMonitor() |
TimeStampSecVector.Accessor |
getAccessor() |
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
ArrowBuf |
getDataBuffer()
Gets the underlying buffer associated with data vector
|
Field |
getField()
Get information about how this field is materialized.
|
Types.MinorType |
getMinorType() |
TimeStampSecVector.Mutator |
getMutator() |
ArrowBuf |
getOffsetBuffer()
Gets the underlying buffer associated with offset vector
|
FieldReader |
getReader() |
TransferPair |
getTransferPair(BufferAllocator allocator)
to transfer quota responsibility
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
ArrowBuf |
getValidityBuffer()
Gets the underlying buffer associated with validity vector
|
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
TransferPair |
makeTransferPair(ValueVector to)
makes a new transfer pair used to transfer underlying buffers
|
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,
TimeStampSecVector target) |
void |
transferTo(TimeStampSecVector target) |
void |
zeroVector()
Zero out the underlying buffer backing this vector.
|
clear, getBuffer, getBuffers, getBufferSize, getTransferPair, load, load, truncateBufferBasedOnSize, unLoad, unloadcheckBufRefs, close, getAllocator, iterator, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, close, getAllocator, getBuffers, getBufferSize, getTransferPairforEach, iterator, spliteratorpublic static final int TYPE_WIDTH
public TimeStampSecVector(String name, BufferAllocator allocator)
public Types.MinorType getMinorType()
getMinorType in interface ValueVectorpublic Field getField()
ValueVectorgetField in interface ValueVectorpublic FieldReader getReader()
getReader in interface ValueVectorfield reader that supports reading values
from this vector.public int getBufferSizeFor(int valueCount)
ValueVectorgetBufferSizeFor in interface ValueVectorvalueCount - the number of values to assume this vector containspublic ArrowBuf getValidityBuffer()
ValueVectorgetValidityBuffer in interface ValueVectorpublic ArrowBuf getDataBuffer()
ValueVectorgetDataBuffer in interface ValueVectorpublic ArrowBuf getOffsetBuffer()
ValueVectorgetOffsetBuffer in interface ValueVectorpublic int getValueCapacity()
ValueVectorgetValueCapacity in interface ValueVectorpublic TimeStampSecVector.Accessor getAccessor()
getAccessor in interface ValueVectoraccessor that is used to read from this vector
instance.public TimeStampSecVector.Mutator getMutator()
getMutator in interface ValueVectormutator that is used to write to this vector
instance.public 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 - the number of values to allocate forOutOfMemoryException - if it can't allocate the new bufferpublic void reset()
BaseDataValueVectorreset in class BaseDataValueVectorpublic void reAlloc()
reAlloc in interface ValueVectorOutOfMemoryException - if it can't allocate the new bufferpublic void zeroVector()
zeroVector in interface FixedWidthVectorpublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class BaseValueVectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorpublic TransferPair makeTransferPair(ValueVector to)
ValueVectormakeTransferPair in interface ValueVectorto - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.public void transferTo(TimeStampSecVector target)
public void splitAndTransferTo(int startIndex,
int length,
TimeStampSecVector target)
public void copyFrom(int fromIndex,
int thisIndex,
TimeStampSecVector from)
public void copyFromSafe(int fromIndex,
int thisIndex,
TimeStampSecVector from)
public void decrementAllocationMonitor()
Copyright © 2017 The Apache Software Foundation. All rights reserved.