public abstract class TimeStampVector extends BaseFixedWidthVector
Modifier and Type | Class and Description |
---|---|
class |
TimeStampVector.TransferImpl
|
Modifier and Type | Field and Description |
---|---|
protected static byte |
TYPE_WIDTH |
field, lastValueCapacity, validityBuffer, valueBuffer, valueCount
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
Constructor and Description |
---|
TimeStampVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a TimeStampVector.
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(int fromIndex,
int thisIndex,
TimeStampVector from)
Copy a cell value from a particular index in source vector to a particular
position in this vector.
|
void |
copyFromSafe(int fromIndex,
int thisIndex,
TimeStampVector from)
Same as
copyFromSafe(int, int, TimeStampVector) except that
it handles the case when the capacity of the vector needs to be expanded
before copy. |
static long |
get(ArrowBuf buffer,
int index)
Given a data buffer, get the value stored at a particular position
in the vector.
|
long |
get(int index)
Get the element at the given index from the vector.
|
void |
set(int index,
int isSet,
long value)
Store the given value at a particular position in the vector.
|
void |
set(int index,
long value)
Set the element at the given index to the given value.
|
void |
setNull(int index)
Set the element at the given index to null.
|
void |
setSafe(int index,
int isSet,
long value)
Same as
set(int, int, long) except that it handles the case
when index is greater than or equal to current value capacity of the
vector. |
void |
setSafe(int index,
long value)
Same as
set(int, long) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
protected void |
setValue(int index,
long value) |
allocateNew, allocateNew, allocateNewSafe, clear, close, decrementAllocationMonitor, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getField, getFieldBuffers, getFieldInnerVectors, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, handleSafe, incrementAllocationMonitor, initializeChildrenFromFields, isNull, isSafe, isSet, loadFieldBuffers, reAlloc, reset, set, set, setIndexDefined, setInitialCapacity, setSafe, setSafe, setValueCount, splitAndTransferTo, transferTo, zeroVector
checkBufRefs, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBuffer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator, getMinorType, getObject, getReader, makeTransferPair
forEach, iterator, spliterator
protected static final byte TYPE_WIDTH
public TimeStampVector(String name, FieldType fieldType, BufferAllocator allocator)
name
- name of the vectorfieldType
- type of Field materialized by this vectorallocator
- allocator for memory management.public long get(int index) throws IllegalStateException
index
- position of elementIllegalStateException
public void copyFrom(int fromIndex, int thisIndex, TimeStampVector from)
fromIndex
- position to copy from in source vectorthisIndex
- position to copy to in this vectorfrom
- source vectorpublic void copyFromSafe(int fromIndex, int thisIndex, TimeStampVector from)
copyFromSafe(int, int, TimeStampVector)
except that
it handles the case when the capacity of the vector needs to be expanded
before copy.fromIndex
- position to copy from in source vectorthisIndex
- position to copy to in this vectorfrom
- source vectorprotected void setValue(int index, long value)
public void set(int index, long value)
index
- position of elementvalue
- value of elementpublic void setSafe(int index, long value)
set(int, long)
except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity()
.index
- position of elementvalue
- value of elementpublic void setNull(int index)
index
- position of elementpublic void set(int index, int isSet, long value)
index
- position of the new valueisSet
- 0 for NULL value, 1 otherwisevalue
- element valuepublic void setSafe(int index, int isSet, long value)
set(int, int, long)
except that it handles the case
when index is greater than or equal to current value capacity of the
vector.index
- position of the new valueisSet
- 0 for NULL value, 1 otherwisevalue
- element valuepublic static long get(ArrowBuf buffer, int index)
This method should not be used externally.
buffer
- data bufferindex
- position of the element.Copyright © 2019 The Apache Software Foundation. All rights reserved.