public class UnionVector extends Object implements FieldVector
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected ArrowBuf |
typeBuffer |
| コンストラクタと説明 |
|---|
UnionVector(String name,
BufferAllocator allocator,
CallBack callBack) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
FieldVector |
addVector(FieldVector v) |
void |
allocateNew()
Allocate new buffers.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
clear()
Release any owned ArrowBuf and reset the ValueVector to the initial state.
|
void |
close()
Alternative to clear().
|
void |
copyFrom(int inIndex,
int outIndex,
UnionVector from) |
void |
copyFromSafe(int inIndex,
int outIndex,
UnionVector from) |
byte[] |
get(int index) |
void |
get(int index,
ComplexHolder holder) |
void |
get(int index,
UnionHolder holder) |
BufferAllocator |
getAllocator() |
BigIntVector |
getBigIntVector() |
BitVector |
getBitVector() |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize() |
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
List<FieldVector> |
getChildrenFromFields()
the returned list is the same size as the list passed to initializeChildrenFromFields
|
ArrowBuf |
getDataBuffer()
Gets the underlying buffer associated with data vector
|
long |
getDataBufferAddress()
Gets the starting address of the underlying buffer associated with data vector
|
DateDayVector |
getDateDayVector() |
DateMilliVector |
getDateMilliVector() |
Field |
getField()
Get information about how this field is materialized.
|
List<ArrowBuf> |
getFieldBuffers()
(same size as getFieldVectors() since it is their content)
|
List<BufferBacked> |
getFieldInnerVectors()
非推奨です。
|
Float4Vector |
getFloat4Vector() |
Float8Vector |
getFloat8Vector() |
IntervalDayVector |
getIntervalDayVector() |
IntervalYearVector |
getIntervalYearVector() |
IntVector |
getIntVector() |
ListVector |
getList() |
Types.MinorType |
getMinorType() |
int |
getNullCount()
Returns number of null elements in the vector
|
Object |
getObject(int index)
Get friendly type object from the vector
|
ArrowBuf |
getOffsetBuffer()
Gets the underlying buffer associated with offset vector
|
long |
getOffsetBufferAddress()
Gets the starting address of the underlying buffer associated with offset vector
|
FieldReader |
getReader() |
SmallIntVector |
getSmallIntVector() |
StructVector |
getStruct() |
TimeMicroVector |
getTimeMicroVector() |
TimeMilliVector |
getTimeMilliVector() |
TimeNanoVector |
getTimeNanoVector() |
TimeSecVector |
getTimeSecVector() |
TimeStampMicroVector |
getTimeStampMicroVector() |
TimeStampMilliVector |
getTimeStampMilliVector() |
TimeStampNanoVector |
getTimeStampNanoVector() |
TimeStampSecVector |
getTimeStampSecVector() |
TinyIntVector |
getTinyIntVector() |
TransferPair |
getTransferPair(BufferAllocator allocator)
to transfer quota responsibility
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
int |
getTypeValue(int index) |
UInt1Vector |
getUInt1Vector() |
UInt2Vector |
getUInt2Vector() |
UInt4Vector |
getUInt4Vector() |
UInt8Vector |
getUInt8Vector() |
ArrowBuf |
getValidityBuffer()
Gets the underlying buffer associated with validity vector
|
long |
getValidityBufferAddress()
Gets the starting address of the underlying buffer associated with validity vector
|
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
int |
getValueCount()
Gets the number of values
|
VarBinaryVector |
getVarBinaryVector() |
VarCharVector |
getVarCharVector() |
FieldWriter |
getWriter() |
void |
initializeChildrenFromFields(List<Field> children)
Initializes the child vectors
to be later loaded with loadBuffers
|
boolean |
isNull(int index)
Check whether an element in the vector is null
|
int |
isSet(int index) |
Iterator<ValueVector> |
iterator() |
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector target)
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()
Reset the ValueVector to the initial state without releasing any owned ArrowBuf.
|
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
void |
setSafe(int index,
NullableBigIntHolder holder) |
void |
setSafe(int index,
NullableBitHolder holder) |
void |
setSafe(int index,
NullableDateDayHolder holder) |
void |
setSafe(int index,
NullableDateMilliHolder holder) |
void |
setSafe(int index,
NullableFloat4Holder holder) |
void |
setSafe(int index,
NullableFloat8Holder holder) |
void |
setSafe(int index,
NullableIntervalDayHolder holder) |
void |
setSafe(int index,
NullableIntervalYearHolder holder) |
void |
setSafe(int index,
NullableIntHolder holder) |
void |
setSafe(int index,
NullableSmallIntHolder holder) |
void |
setSafe(int index,
NullableTimeMicroHolder holder) |
void |
setSafe(int index,
NullableTimeMilliHolder holder) |
void |
setSafe(int index,
NullableTimeNanoHolder holder) |
void |
setSafe(int index,
NullableTimeSecHolder holder) |
void |
setSafe(int index,
NullableTimeStampMicroHolder holder) |
void |
setSafe(int index,
NullableTimeStampMilliHolder holder) |
void |
setSafe(int index,
NullableTimeStampNanoHolder holder) |
void |
setSafe(int index,
NullableTimeStampSecHolder holder) |
void |
setSafe(int index,
NullableTinyIntHolder holder) |
void |
setSafe(int index,
NullableUInt1Holder holder) |
void |
setSafe(int index,
NullableUInt2Holder holder) |
void |
setSafe(int index,
NullableUInt4Holder holder) |
void |
setSafe(int index,
NullableUInt8Holder holder) |
void |
setSafe(int index,
NullableVarBinaryHolder holder) |
void |
setSafe(int index,
NullableVarCharHolder holder) |
void |
setSafe(int index,
UnionHolder holder) |
void |
setType(int index,
Types.MinorType type) |
void |
setValueCount(int valueCount)
Set number of values in the vector
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected ArrowBuf typeBuffer
public UnionVector(String name, BufferAllocator allocator, CallBack callBack)
public BufferAllocator getAllocator()
getAllocator インタフェース内 ValueVectorpublic Types.MinorType getMinorType()
getMinorType インタフェース内 ValueVectorpublic void initializeChildrenFromFields(List<Field> children)
FieldVectorinitializeChildrenFromFields インタフェース内 FieldVectorchildren - the schemapublic List<FieldVector> getChildrenFromFields()
FieldVectorgetChildrenFromFields インタフェース内 FieldVectorpublic void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
FieldVectorloadFieldBuffers インタフェース内 FieldVectorfieldNode - the fieldNodeownBuffers - the buffers for this Field (own buffers only, children not included)public List<ArrowBuf> getFieldBuffers()
FieldVectorgetFieldBuffers インタフェース内 FieldVector@Deprecated public List<BufferBacked> getFieldInnerVectors()
getFieldInnerVectors インタフェース内 FieldVectorpublic long getValidityBufferAddress()
FieldVectorgetValidityBufferAddress インタフェース内 FieldVectorpublic long getDataBufferAddress()
FieldVectorgetDataBufferAddress インタフェース内 FieldVectorpublic long getOffsetBufferAddress()
FieldVectorgetOffsetBufferAddress インタフェース内 FieldVectorpublic ArrowBuf getValidityBuffer()
ValueVectorgetValidityBuffer インタフェース内 ValueVectorpublic ArrowBuf getDataBuffer()
ValueVectorgetDataBuffer インタフェース内 ValueVectorpublic ArrowBuf getOffsetBuffer()
ValueVectorgetOffsetBuffer インタフェース内 ValueVectorpublic StructVector getStruct()
public TinyIntVector getTinyIntVector()
public UInt1Vector getUInt1Vector()
public UInt2Vector getUInt2Vector()
public SmallIntVector getSmallIntVector()
public IntVector getIntVector()
public UInt4Vector getUInt4Vector()
public Float4Vector getFloat4Vector()
public DateDayVector getDateDayVector()
public IntervalYearVector getIntervalYearVector()
public TimeSecVector getTimeSecVector()
public TimeMilliVector getTimeMilliVector()
public BigIntVector getBigIntVector()
public UInt8Vector getUInt8Vector()
public Float8Vector getFloat8Vector()
public DateMilliVector getDateMilliVector()
public TimeStampSecVector getTimeStampSecVector()
public TimeStampMilliVector getTimeStampMilliVector()
public TimeStampMicroVector getTimeStampMicroVector()
public TimeStampNanoVector getTimeStampNanoVector()
public TimeMicroVector getTimeMicroVector()
public TimeNanoVector getTimeNanoVector()
public IntervalDayVector getIntervalDayVector()
public VarBinaryVector getVarBinaryVector()
public VarCharVector getVarCharVector()
public BitVector getBitVector()
public ListVector getList()
public int getTypeValue(int index)
public void allocateNew()
throws OutOfMemoryException
ValueVectorallocateNew インタフェース内 ValueVectorOutOfMemoryException - Thrown if no memory can be allocated.public boolean allocateNewSafe()
ValueVectorallocateNewSafe インタフェース内 ValueVectorpublic void reAlloc()
ValueVectorreAlloc インタフェース内 ValueVectorpublic void setInitialCapacity(int numRecords)
ValueVectorsetInitialCapacity インタフェース内 ValueVectornumRecords - the initial record capacity.public int getValueCapacity()
ValueVectorgetValueCapacity インタフェース内 ValueVectorpublic void close()
ValueVectorclose インタフェース内 Closeableclose インタフェース内 AutoCloseableclose インタフェース内 ValueVectorpublic void clear()
ValueVectorclear インタフェース内 ValueVectorpublic void reset()
ValueVectorreset インタフェース内 ValueVectorpublic Field getField()
ValueVectorgetField インタフェース内 ValueVectorpublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectorgetTransferPair インタフェース内 ValueVectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair インタフェース内 ValueVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair インタフェース内 ValueVectorpublic TransferPair makeTransferPair(ValueVector target)
ValueVectormakeTransferPair インタフェース内 ValueVectortarget - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.public void copyFrom(int inIndex,
int outIndex,
UnionVector from)
public void copyFromSafe(int inIndex,
int outIndex,
UnionVector from)
public FieldVector addVector(FieldVector v)
public FieldReader getReader()
getReader インタフェース内 ValueVectorfield reader that supports reading values
from this vector.public FieldWriter getWriter()
public int getBufferSize()
getBufferSize インタフェース内 ValueVectorpublic int getBufferSizeFor(int valueCount)
ValueVectorgetBufferSizeFor インタフェース内 ValueVectorvalueCount - the number of values to assume this vector containspublic ArrowBuf[] getBuffers(boolean clear)
ValueVectorgetBuffers インタフェース内 ValueVectorclear - Whether to clear vector before returning; the buffers will still be refcounted;
but the returned array will be the only reference to thembuffers that is used by this vector instance.public Iterator<ValueVector> iterator()
iterator インタフェース内 Iterable<ValueVector>public Object getObject(int index)
ValueVectorgetObject インタフェース内 ValueVectorpublic byte[] get(int index)
public void get(int index,
ComplexHolder holder)
public void get(int index,
UnionHolder holder)
public int getValueCount()
ValueVectorgetValueCount インタフェース内 ValueVectorpublic boolean isNull(int index)
ValueVectorisNull インタフェース内 ValueVectorpublic int getNullCount()
ValueVectorgetNullCount インタフェース内 ValueVectorpublic int isSet(int index)
public void setValueCount(int valueCount)
ValueVectorsetValueCount インタフェース内 ValueVectorpublic void setSafe(int index,
UnionHolder holder)
public void setSafe(int index,
NullableTinyIntHolder holder)
public void setSafe(int index,
NullableUInt1Holder holder)
public void setSafe(int index,
NullableUInt2Holder holder)
public void setSafe(int index,
NullableSmallIntHolder holder)
public void setSafe(int index,
NullableIntHolder holder)
public void setSafe(int index,
NullableUInt4Holder holder)
public void setSafe(int index,
NullableFloat4Holder holder)
public void setSafe(int index,
NullableDateDayHolder holder)
public void setSafe(int index,
NullableIntervalYearHolder holder)
public void setSafe(int index,
NullableTimeSecHolder holder)
public void setSafe(int index,
NullableTimeMilliHolder holder)
public void setSafe(int index,
NullableBigIntHolder holder)
public void setSafe(int index,
NullableUInt8Holder holder)
public void setSafe(int index,
NullableFloat8Holder holder)
public void setSafe(int index,
NullableDateMilliHolder holder)
public void setSafe(int index,
NullableTimeStampSecHolder holder)
public void setSafe(int index,
NullableTimeStampMilliHolder holder)
public void setSafe(int index,
NullableTimeStampMicroHolder holder)
public void setSafe(int index,
NullableTimeStampNanoHolder holder)
public void setSafe(int index,
NullableTimeMicroHolder holder)
public void setSafe(int index,
NullableTimeNanoHolder holder)
public void setSafe(int index,
NullableIntervalDayHolder holder)
public void setSafe(int index,
NullableVarBinaryHolder holder)
public void setSafe(int index,
NullableVarCharHolder holder)
public void setSafe(int index,
NullableBitHolder holder)
public void setType(int index,
Types.MinorType type)
Copyright © 2018 The Apache Software Foundation. All rights reserved.