public class IntervalDayVector extends BaseFixedWidthVector
field, validityAllocationSizeInBytes, validityBuffer, valueAllocationSizeInBytes, valueBuffer, valueCount
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
コンストラクタと説明 |
---|
IntervalDayVector(String name,
BufferAllocator allocator)
Instantiate a IntervalDayVector.
|
IntervalDayVector(String name,
FieldType fieldType,
BufferAllocator allocator)
Instantiate a IntervalDayVector.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
copyFrom(int fromIndex,
int thisIndex,
IntervalDayVector 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,
IntervalDayVector from)
Same as
copyFrom(int, int, IntervalDayVector) except that
it handles the case when the capacity of the vector needs to be expanded
before copy. |
ArrowBuf |
get(int index)
Get the element at the given index from the vector.
|
void |
get(int index,
NullableIntervalDayHolder 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 |
Types.MinorType |
getMinorType()
Get minor type for this vector.
|
org.joda.time.Period |
getObject(int index)
Same as
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 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,
IntervalDayHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
set(int index,
int days,
int milliseconds)
Set the element at the given index to the given value.
|
void |
set(int index,
int isSet,
int days,
int milliseconds)
Store the given value at a particular position in the vector. isSet indicates
whether the value is NULL or not.
|
void |
set(int index,
NullableIntervalDayHolder holder)
Set the element at the given index to the value set in data holder.
|
void |
setNull(int index)
Set the element at the given index to null.
|
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,
IntervalDayHolder holder)
Same as
set(int, IntervalDayHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
void |
setSafe(int index,
int days,
int milliseconds)
Same as
set(int, int, int) 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 days,
int milliseconds)
Same as
set(int, int, int, int) except that it handles the case
when index is greater than or equal to current value capacity of the
vector. |
void |
setSafe(int index,
NullableIntervalDayHolder holder)
Same as
set(int, NullableIntervalDayHolder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
allocateNew, allocateNew, allocateNewSafe, clear, close, decrementAllocationMonitor, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getField, getFieldBuffers, getFieldInnerVectors, getNullCount, getOffsetBuffer, getOffsetBufferAddress, 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, compareTypes, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator
forEach, iterator, spliterator
public IntervalDayVector(String name, BufferAllocator allocator)
name
- name of the vectorallocator
- allocator for memory management.public IntervalDayVector(String name, FieldType fieldType, BufferAllocator allocator)
name
- name of the vectorfieldType
- type of Field materialized by this vectorallocator
- allocator for memory management.public FieldReader getReader()
public Types.MinorType getMinorType()
Types.MinorType
public ArrowBuf get(int index) throws IllegalStateException
index
- position of elementIllegalStateException
public void get(int index, NullableIntervalDayHolder holder)
index
- position of elementpublic org.joda.time.Period getObject(int index)
get(int)
.index
- position of elementpublic StringBuilder getAsStringBuilder(int index)
StringBuilder
objectindex
- position of the elementpublic void copyFrom(int fromIndex, int thisIndex, IntervalDayVector from)
fromIndex
- position to copy from in source vectorthisIndex
- position to copy to in this vectorfrom
- source vectorpublic void copyFromSafe(int fromIndex, int thisIndex, IntervalDayVector from)
copyFrom(int, int, IntervalDayVector)
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 vectorpublic void set(int index, ArrowBuf value)
index
- position of elementvalue
- value of elementpublic void set(int index, int days, int milliseconds)
index
- position of elementdays
- days for the intervalmilliseconds
- milliseconds for the intervalpublic void set(int index, NullableIntervalDayHolder holder) throws IllegalArgumentException
index
- position of elementholder
- nullable data holder for value of elementIllegalArgumentException
public void set(int index, IntervalDayHolder 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 days, int milliseconds)
set(int, int, int)
except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity()
.index
- position of elementdays
- days for the intervalmilliseconds
- milliseconds for the intervalpublic void setSafe(int index, NullableIntervalDayHolder holder) throws IllegalArgumentException
set(int, NullableIntervalDayHolder)
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, IntervalDayHolder holder)
set(int, IntervalDayHolder)
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 setNull(int index)
index
- position of elementpublic void set(int index, int isSet, int days, int milliseconds)
index
- position of the new valueisSet
- 0 for NULL value, 1 otherwisedays
- days component of intervalmilliseconds
- millisecond component of intervalpublic void setSafe(int index, int isSet, int days, int milliseconds)
set(int, int, int, int)
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 otherwisedays
- days component of intervalmilliseconds
- millisecond component of intervalpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
インタフェース内 ValueVector
getTransferPair
クラス内 BaseFixedWidthVector
ref
- name of the target vectorallocator
- allocator for the target vectorTransferPair
public TransferPair makeTransferPair(ValueVector to)
to
- target vectorTransferPair
Copyright © 2018 The Apache Software Foundation. All rights reserved.