public final class TimeStampMilliVector extends TimeStampVector
TimeStampVector.TransferImpl
TYPE_WIDTH
field, lastValueCapacity, validityBuffer, valueBuffer, valueCount
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY
Constructor and Description |
---|
TimeStampMilliVector(Field field,
BufferAllocator allocator)
Instantiate a TimeStampMilliVector.
|
TimeStampMilliVector(String name,
BufferAllocator allocator)
Instantiate a TimeStampMilliVector.
|
TimeStampMilliVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a TimeStampMilliVector.
|
Modifier and Type | Method and Description |
---|---|
void |
get(int index,
NullableTimeStampMilliHolder 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.
|
LocalDateTime |
getObject(int index)
Same as
TimeStampVector.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 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,
NullableTimeStampMilliHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
set(int index,
TimeStampMilliHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
setSafe(int index,
NullableTimeStampMilliHolder holder)
Same as
set(int, NullableTimeStampMilliHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
void |
setSafe(int index,
TimeStampMilliHolder holder)
Same as
set(int, TimeStampMilliHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
get, get, set, set, setSafe, setSafe, setValue
accept, allocateNew, allocateNew, allocateNewSafe, clear, close, copyFrom, copyFromSafe, decrementAllocationMonitor, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDataPointer, getDataPointer, getField, getFieldBuffers, getFieldInnerVectors, getName, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getTransferPair, getTransferPair, getTypeWidth, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, handleSafe, hashCode, hashCode, incrementAllocationMonitor, initializeChildrenFromFields, isNull, isSafe, isSet, loadFieldBuffers, reAlloc, reset, set, set, setIndexDefined, setInitialCapacity, setNull, setSafe, setSafe, setValueCount, splitAndTransferTo, transferTo, zeroVector
checkBufRefs, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBuffer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator
forEach, iterator, spliterator
public TimeStampMilliVector(String name, BufferAllocator allocator)
name
- name of the vectorallocator
- allocator for memory management.public TimeStampMilliVector(String name, FieldType fieldType, BufferAllocator allocator)
name
- name of the vectorfieldType
- type of Field materialized by this vectorallocator
- allocator for memory management.public TimeStampMilliVector(Field field, BufferAllocator allocator)
field
- field materialized by this vectorallocator
- allocator for memory management.public FieldReader getReader()
public Types.MinorType getMinorType()
Types.MinorType
public void get(int index, NullableTimeStampMilliHolder holder)
index
- position of elementpublic LocalDateTime getObject(int index)
TimeStampVector.get(int)
.index
- position of elementpublic void set(int index, NullableTimeStampMilliHolder holder) throws IllegalArgumentException
index
- position of elementholder
- nullable data holder for value of elementIllegalArgumentException
public void set(int index, TimeStampMilliHolder holder)
index
- position of elementholder
- data holder for value of elementpublic void setSafe(int index, NullableTimeStampMilliHolder holder) throws IllegalArgumentException
set(int, NullableTimeStampMilliHolder)
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 elementIllegalArgumentException
public void setSafe(int index, TimeStampMilliHolder holder)
set(int, TimeStampMilliHolder)
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 TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
in interface ValueVector
getTransferPair
in class BaseFixedWidthVector
ref
- name of the target vectorallocator
- allocator for the target vectorTransferPair
public TransferPair makeTransferPair(ValueVector to)
to
- target vectorTransferPair
Copyright © 2020 The Apache Software Foundation. All rights reserved.