public class UnionVector extends Object implements FieldVector
| Modifier and Type | Class and Description |
|---|---|
class |
UnionVector.Accessor |
class |
UnionVector.Mutator |
| Constructor and Description |
|---|
UnionVector(String name,
BufferAllocator allocator,
CallBack callBack) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic UnionVector(String name, BufferAllocator allocator, CallBack callBack)
public BufferAllocator getAllocator()
getAllocator in interface ValueVectorpublic Types.MinorType getMinorType()
getMinorType in interface ValueVectorpublic void initializeChildrenFromFields(List<Field> children)
FieldVectorinitializeChildrenFromFields in interface FieldVectorchildren - the schemapublic List<FieldVector> getChildrenFromFields()
FieldVectorgetChildrenFromFields in interface FieldVectorpublic void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
FieldVectorloadFieldBuffers in interface FieldVectorfieldNode - the fieldNodeownBuffers - the buffers for this Field (own buffers only, children not included)public List<ArrowBuf> getFieldBuffers()
FieldVectorgetFieldBuffers in interface FieldVectorpublic List<BufferBacked> getFieldInnerVectors()
getFieldInnerVectors in interface FieldVectorpublic long getValidityBufferAddress()
FieldVectorgetValidityBufferAddress in interface FieldVectorpublic long getDataBufferAddress()
FieldVectorgetDataBufferAddress in interface FieldVectorpublic long getOffsetBufferAddress()
FieldVectorgetOffsetBufferAddress in interface FieldVectorpublic ArrowBuf getValidityBuffer()
ValueVectorgetValidityBuffer in interface ValueVectorpublic ArrowBuf getDataBuffer()
ValueVectorgetDataBuffer in interface ValueVectorpublic ArrowBuf getOffsetBuffer()
ValueVectorgetOffsetBuffer in interface ValueVectorpublic NullableMapVector getMap()
public NullableTinyIntVector getTinyIntVector()
public NullableUInt1Vector getUInt1Vector()
public NullableUInt2Vector getUInt2Vector()
public NullableSmallIntVector getSmallIntVector()
public NullableIntVector getIntVector()
public NullableUInt4Vector getUInt4Vector()
public NullableFloat4Vector getFloat4Vector()
public NullableDateDayVector getDateDayVector()
public NullableIntervalYearVector getIntervalYearVector()
public NullableTimeSecVector getTimeSecVector()
public NullableTimeMilliVector getTimeMilliVector()
public NullableBigIntVector getBigIntVector()
public NullableUInt8Vector getUInt8Vector()
public NullableFloat8Vector getFloat8Vector()
public NullableDateMilliVector getDateMilliVector()
public NullableTimeStampSecVector getTimeStampSecVector()
public NullableTimeStampMilliVector getTimeStampMilliVector()
public NullableTimeStampMicroVector getTimeStampMicroVector()
public NullableTimeStampNanoVector getTimeStampNanoVector()
public NullableTimeMicroVector getTimeMicroVector()
public NullableTimeNanoVector getTimeNanoVector()
public NullableIntervalDayVector getIntervalDayVector()
public NullableVarBinaryVector getVarBinaryVector()
public NullableVarCharVector getVarCharVector()
public NullableBitVector getBitVector()
public ListVector getList()
public int getTypeValue(int index)
public UInt1Vector getTypeVector()
public void allocateNew()
throws OutOfMemoryException
ValueVectorallocateNew in interface ValueVectorOutOfMemoryException - Thrown if no memory can be allocated.public boolean allocateNewSafe()
ValueVectorallocateNewSafe in interface ValueVectorpublic void reAlloc()
ValueVectorreAlloc in interface ValueVectorpublic void setInitialCapacity(int numRecords)
ValueVectorsetInitialCapacity in interface ValueVectornumRecords - the initial record capacity.public int getValueCapacity()
ValueVectorgetValueCapacity in interface ValueVectorpublic void close()
ValueVectorclose in interface Closeableclose in interface AutoCloseableclose in interface ValueVectorpublic void clear()
ValueVectorclear in interface ValueVectorpublic Field getField()
ValueVectorgetField in interface ValueVectorpublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair in interface ValueVectorpublic TransferPair makeTransferPair(ValueVector target)
ValueVectormakeTransferPair in interface 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 UnionVector.Accessor getAccessor()
getAccessor in interface ValueVectoraccessor that is used to read from this vector
instance.public UnionVector.Mutator getMutator()
getMutator in interface ValueVectormutator that is used to write to this vector
instance.public FieldReader getReader()
getReader in interface ValueVectorfield reader that supports reading values
from this vector.public FieldWriter getWriter()
public int getBufferSize()
getBufferSize in interface ValueVectorpublic int getBufferSizeFor(int valueCount)
ValueVectorgetBufferSizeFor in interface ValueVectorvalueCount - the number of values to assume this vector containspublic ArrowBuf[] getBuffers(boolean clear)
ValueVectorgetBuffers in interface 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 in interface Iterable<ValueVector>Copyright © 2017 The Apache Software Foundation. All rights reserved.