public final class IntervalMonthDayNanoVector extends BaseFixedWidthVector
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE_WIDTH |
actualValueCapacity, field, lastValueCapacity, validityBuffer, valueBuffer, valueCountallocator, fieldReader, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY| Constructor and Description |
|---|
IntervalMonthDayNanoVector(Field field,
BufferAllocator allocator)
Instantiate a IntervalMonthDayNanoVector.
|
IntervalMonthDayNanoVector(String name,
BufferAllocator allocator)
Instantiate a IntervalMonthDayNanoVector.
|
IntervalMonthDayNanoVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a IntervalMonthDayNanoVector.
|
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
get(int index)
Get the element at the given index from the vector.
|
void |
get(int index,
NullableIntervalMonthDayNanoHolder holder)
Get the element at the given index from the vector and
sets the state in holder.
|
StringBuilder |
getAsStringBuilder(int index)
Get the Interval value at a given index as a
StringBuilder object. |
static int |
getDays(ArrowBuf buffer,
int index)
Given a data buffer, get the number of days stored at a particular position
in the vector.
|
Types.MinorType |
getMinorType()
Get minor type for this vector.
|
static int |
getMonths(ArrowBuf buffer,
int index)
Given a data buffer, get the number of months stored at a particular position
in the vector.
|
static long |
getNanoseconds(ArrowBuf buffer,
int index)
Given a data buffer, get the get the number of nanoseconds stored at a particular position
in the vector.
|
PeriodDuration |
getObject(int index)
Same as
get(int). |
protected FieldReader |
getReaderImpl()
Each vector has a different reader that implements the FieldReader interface.
|
TransferPair |
getTransferPair(Field field,
BufferAllocator allocator)
Construct a TransferPair comprising of this and a target vector of
the same type.
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator)
Construct a TransferPair comprising 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,
ArrowBuf value)
Set the element at the given index to the given value.
|
void |
set(int index,
IntervalMonthDayNanoHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
set(int index,
int isSet,
int months,
int days,
long nanoseconds)
Store the given value at a particular position in the vector.
|
void |
set(int index,
int months,
int days,
long nanoseconds)
Set the element at the given index to the given value.
|
void |
set(int index,
NullableIntervalMonthDayNanoHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
setSafe(int index,
ArrowBuf value)
Same as
set(int, ArrowBuf) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
void |
setSafe(int index,
IntervalMonthDayNanoHolder holder)
Same as
set(int, IntervalMonthDayNanoHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
void |
setSafe(int index,
int isSet,
int months,
int days,
long nanoseconds)
Same as
set(int, int, 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,
int months,
int days,
long nanoseconds)
Same as
set(int, int, int, long) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
void |
setSafe(int index,
NullableIntervalMonthDayNanoHolder holder)
Same as
set(int, NullableIntervalMonthDayNanoHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity(). |
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, getTransferPair, getTypeWidth, getValidityBuffer, getValidityBufferAddress, getValidityBufferValueCapacity, getValueBufferValueCapacity, getValueCapacity, getValueCount, handleSafe, hashCode, hashCode, incrementAllocationMonitor, initializeChildrenFromFields, isNull, isSafe, isSet, loadFieldBuffers, reAlloc, refreshValueCapacity, reset, set, set, setIndexDefined, setInitialCapacity, setNull, setSafe, setSafe, setValueCount, splitAndTransferTo, transferTo, validateScalars, zeroVectorcheckBufRefs, getAllocator, getReader, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBufferclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllocator, getReader, validate, validateFullforEach, iterator, spliteratorexportBuffer, exportCDataBufferspublic static final byte TYPE_WIDTH
public IntervalMonthDayNanoVector(String name, BufferAllocator allocator)
name - name of the vectorallocator - allocator for memory management.public IntervalMonthDayNanoVector(String name, FieldType fieldType, BufferAllocator allocator)
name - name of the vectorfieldType - type of Field materialized by this vectorallocator - allocator for memory management.public IntervalMonthDayNanoVector(Field field, BufferAllocator allocator)
field - field materialized by this vectorallocator - allocator for memory management.protected FieldReader getReaderImpl()
BaseValueVectorgetReaderImpl in class BaseValueVectorpublic Types.MinorType getMinorType()
Types.MinorTypepublic static int getMonths(ArrowBuf buffer, int index)
This method should not be used externally.
buffer - data bufferindex - position of the element.public static int getDays(ArrowBuf buffer, int index)
This method should not be used externally.
buffer - data bufferindex - position of the element.public static long getNanoseconds(ArrowBuf buffer, int index)
This method should not be used externally.
buffer - data bufferindex - position of the element.public ArrowBuf get(int index) throws IllegalStateException
index - position of elementIllegalStateExceptionpublic void get(int index,
NullableIntervalMonthDayNanoHolder holder)
index - position of elementpublic PeriodDuration getObject(int index)
get(int).index - position of elementpublic StringBuilder getAsStringBuilder(int index)
StringBuilder object.index - position of the elementpublic void set(int index,
ArrowBuf value)
index - position of elementvalue - value of elementpublic void set(int index,
int months,
int days,
long nanoseconds)
index - position of elementmonths - months component of intervaldays - days component of intervalnanoseconds - nanosecond component of intervalpublic void set(int index,
NullableIntervalMonthDayNanoHolder holder)
throws IllegalArgumentException
index - position of elementholder - nullable data holder for value of elementIllegalArgumentExceptionpublic void set(int index,
IntervalMonthDayNanoHolder holder)
index - position of elementholder - data holder for value of elementpublic void setSafe(int index,
ArrowBuf value)
set(int, ArrowBuf) 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 setSafe(int index,
int months,
int days,
long nanoseconds)
set(int, int, int, long) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity().index - position of elementmonths - months for the intervaldays - days for the intervalnanoseconds - nanoseconds for the intervalpublic void setSafe(int index,
NullableIntervalMonthDayNanoHolder holder)
throws IllegalArgumentException
set(int, NullableIntervalMonthDayNanoHolder) 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 elementIllegalArgumentExceptionpublic void setSafe(int index,
IntervalMonthDayNanoHolder holder)
set(int, IntervalMonthDayNanoHolder) 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 void set(int index,
int isSet,
int months,
int days,
long nanoseconds)
index - position of the new valueisSet - 0 for NULL value, 1 otherwisemonths - months component of intervaldays - days component of intervalnanoseconds - nanosecond component of intervalpublic void setSafe(int index,
int isSet,
int months,
int days,
long nanoseconds)
set(int, int, 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 otherwisemonths - months component of intervaldays - days component of intervalnanoseconds - nanosecond component of intervalpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorgetTransferPair in class BaseFixedWidthVectorref - name of the target vectorallocator - allocator for the target vectorTransferPairpublic TransferPair getTransferPair(Field field, BufferAllocator allocator)
getTransferPair in interface ValueVectorgetTransferPair in class BaseFixedWidthVectorfield - Field object used by the target vectorallocator - allocator for the target vectorTransferPairpublic TransferPair makeTransferPair(ValueVector to)
to - target vectorTransferPairCopyright © 2024 The Apache Software Foundation. All rights reserved.