Package org.apache.arrow.vector.complex
Class UnionVector
java.lang.Object
org.apache.arrow.vector.complex.AbstractContainerVector
org.apache.arrow.vector.complex.UnionVector
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<ValueVector>,DensityAwareVector,FieldVector,ValueVector
-
Field Summary
FieldsFields inherited from class org.apache.arrow.vector.complex.AbstractContainerVector
allocator, callBack, name -
Constructor Summary
ConstructorsConstructorDescriptionUnionVector(String name, BufferAllocator allocator, FieldType fieldType, CallBack callBack) -
Method Summary
Modifier and TypeMethodDescription<OUT,IN> OUT accept(VectorVisitor<OUT, IN> visitor, IN value) Accept a genericVectorVisitorand return the result.<T extends FieldVector>
TvoidAllocate new buffers.booleanAllocates new buffers.voidclear()Release any owned ArrowBuf and reset the ValueVector to the initial state.voidclose()Clears out all underlying child vectors.voidcopyFrom(int inIndex, int outIndex, ValueVector from) Copy a cell value from a particular index in source vector to a particular position in this vector.voidcopyFromSafe(int inIndex, int outIndex, ValueVector from) Same asValueVector.copyFrom(int, int, ValueVector)except that it handles the case when the capacity of the vector needs to be expanded before copy.voidDirectly put a vector to internalStruct without creating a new one with same type.static UnionVectorempty(String name, BufferAllocator allocator) byte[]get(int index) voidget(int index, ComplexHolder holder) voidget(int index, UnionHolder holder) getBigIntVector(String name) getBitVector(String name) ArrowBuf[]getBuffers(boolean clear) Return the underlying buffers associated with this vector.intGet the number of bytes used by this vector.intgetBufferSizeFor(int valueCount) Returns the number of bytes that is used by this vector if it holds the given number of values.<T extends FieldVector>
TThe returned list is the same size as the list passed to initializeChildrenFromFields.Gets the underlying buffer associated with data vector.longGets the starting address of the underlying buffer associated with data vector.getDateDayVector(String name) getDateMilliVector(String name) getDecimal256Vector(String name, ArrowType arrowType) getDecimal256Vector(ArrowType arrowType) getDecimalVector(String name, ArrowType arrowType) getDecimalVector(ArrowType arrowType) getDurationVector(String name, ArrowType arrowType) getDurationVector(ArrowType arrowType) getField()Get information about how this field is materialized.Get the buffers of the fields, (same size as getFieldVectors() since it is their content).Deprecated.This API will be removed as the current implementations no longer support inner vectors.getFixedSizeBinaryVector(String name, ArrowType arrowType) getFixedSizeBinaryVector(ArrowType arrowType) getFloat2Vector(String name) getFloat4Vector(String name) getFloat8Vector(String name) getIntervalDayVector(String name) getIntervalYearVector(String name) getIntVector(String name) getLargeVarCharVector(String name) getList()getMap()getName()Gets the name of the vector.intReturns number of null elements in the vector.getObject(int index) Get friendly type object from the vector.Gets the underlying buffer associated with offset vector.longGets the starting address of the underlying buffer associated with offset vector.Get a reader for this vector.getSmallIntVector(String name) getTimeMicroVector(String name) getTimeMilliVector(String name) getTimeNanoVector(String name) getTimeSecVector(String name) getTimeStampMicroTZVector(String name, ArrowType arrowType) getTimeStampMicroTZVector(ArrowType arrowType) getTimeStampMilliTZVector(String name, ArrowType arrowType) getTimeStampMilliTZVector(ArrowType arrowType) getTimeStampNanoTZVector(String name, ArrowType arrowType) getTimeStampNanoTZVector(ArrowType arrowType) getTimeStampNanoVector(String name) getTimeStampSecTZVector(String name, ArrowType arrowType) getTimeStampSecTZVector(ArrowType arrowType) getTimeStampSecVector(String name) getTinyIntVector(String name) getTransferPair(String ref, BufferAllocator allocator) To transfer quota responsibility.getTransferPair(String ref, BufferAllocator allocator, CallBack callBack) To transfer quota responsibility.getTransferPair(BufferAllocator allocator) To transfer quota responsibility.getTransferPair(Field field, BufferAllocator allocator) To transfer quota responsibility.getTransferPair(Field field, BufferAllocator allocator, CallBack callBack) To transfer quota responsibility.longintgetTypeValue(int index) getUInt1Vector(String name) getUInt2Vector(String name) getUInt4Vector(String name) getUInt8Vector(String name) Gets the underlying buffer associated with validity vector.longGets the starting address of the underlying buffer associated with validity vector.intReturns the maximum number of values that can be stored in this vector instance.intGets the number of values.getVarBinaryVector(String name) getVarCharVector(String name) getVector(int index) getVectorByType(int typeId) getVectorByType(int typeId, ArrowType arrowType) getViewVarBinaryVector(String name) getViewVarCharVector(String name) inthashCode(int index) Returns hashCode of element in index with the default hasher.inthashCode(int index, ArrowBufHasher hasher) Returns hashCode of element in index with the given hasher.voidinitializeChildrenFromFields(List<Field> children) Initializes the child vectors to be later loaded with loadBuffers.booleanisNull(int index) IMPORTANT: Union types always return non null as there is no validity buffer.intisSet(int index) iterator()voidloadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers) Loads data in the vectors.makeTransferPair(ValueVector target) Makes a new transfer pair used to transfer underlying buffers.voidreAlloc()Allocate new buffer with double capacity, and copy data into the new buffer.voidreset()Reset the ValueVector to the initial state without releasing any owned ArrowBuf.voidsetInitialCapacity(int numRecords) Set the initial record capacity.voidsetInitialCapacity(int valueCount, double density) Set value with density.voidsetNull(int index) Set the element at the given index to null.voidsetSafe(int index, NullableBigIntHolder holder) voidsetSafe(int index, NullableBitHolder holder) voidsetSafe(int index, NullableDateDayHolder holder) voidsetSafe(int index, NullableDateMilliHolder holder) voidsetSafe(int index, NullableDecimal256Holder holder, ArrowType arrowType) voidsetSafe(int index, NullableDecimalHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableDurationHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableFixedSizeBinaryHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableFloat2Holder holder) voidsetSafe(int index, NullableFloat4Holder holder) voidsetSafe(int index, NullableFloat8Holder holder) voidsetSafe(int index, NullableIntervalDayHolder holder) voidsetSafe(int index, NullableIntervalMonthDayNanoHolder holder) voidsetSafe(int index, NullableIntervalYearHolder holder) voidsetSafe(int index, NullableIntHolder holder) voidsetSafe(int index, NullableLargeVarBinaryHolder holder) voidsetSafe(int index, NullableLargeVarCharHolder holder) voidsetSafe(int index, NullableSmallIntHolder holder) voidsetSafe(int index, NullableTimeMicroHolder holder) voidsetSafe(int index, NullableTimeMilliHolder holder) voidsetSafe(int index, NullableTimeNanoHolder holder) voidsetSafe(int index, NullableTimeSecHolder holder) voidsetSafe(int index, NullableTimeStampMicroHolder holder) voidsetSafe(int index, NullableTimeStampMicroTZHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableTimeStampMilliHolder holder) voidsetSafe(int index, NullableTimeStampMilliTZHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableTimeStampNanoHolder holder) voidsetSafe(int index, NullableTimeStampNanoTZHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableTimeStampSecHolder holder) voidsetSafe(int index, NullableTimeStampSecTZHolder holder, ArrowType arrowType) voidsetSafe(int index, NullableTinyIntHolder holder) voidsetSafe(int index, NullableUInt1Holder holder) voidsetSafe(int index, NullableUInt2Holder holder) voidsetSafe(int index, NullableUInt4Holder holder) voidsetSafe(int index, NullableUInt8Holder holder) voidsetSafe(int index, NullableVarBinaryHolder holder) voidsetSafe(int index, NullableVarCharHolder holder) voidsetSafe(int index, NullableViewVarBinaryHolder holder) voidsetSafe(int index, NullableViewVarCharHolder holder) voidsetSafe(int index, UnionHolder holder) voidsetSafe(int index, UnionHolder holder, ArrowType arrowType) voidsetType(int index, Types.MinorType type) voidsetValueCount(int valueCount) Set number of values in the vector.intsize()toString()Representation of vector suitable for debugging.Methods inherited from class org.apache.arrow.vector.complex.AbstractContainerVector
addOrGetFixedSizeList, addOrGetList, addOrGetMap, addOrGetStruct, addOrGetUnion, getChild, supportsDirectRead, typeifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.arrow.vector.FieldVector
exportBuffer, exportCDataBuffers, getExportedCDataBufferCountMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.arrow.vector.ValueVector
validate, validateFull
-
Field Details
-
typeBuffer
-
TYPE_WIDTH
public static final byte TYPE_WIDTH- See Also:
-
-
Constructor Details
-
UnionVector
-
-
Method Details
-
empty
-
getAllocator
- Specified by:
getAllocatorin interfaceValueVector- Overrides:
getAllocatorin classAbstractContainerVector
-
getMinorType
- Specified by:
getMinorTypein interfaceValueVector
-
initializeChildrenFromFields
Description copied from interface:FieldVectorInitializes the child vectors to be later loaded with loadBuffers.- Specified by:
initializeChildrenFromFieldsin interfaceFieldVector- Parameters:
children- the schema
-
getChildrenFromFields
Description copied from interface:FieldVectorThe returned list is the same size as the list passed to initializeChildrenFromFields.- Specified by:
getChildrenFromFieldsin interfaceFieldVector- Returns:
- the children according to schema (empty for primitive types)
-
loadFieldBuffers
Description copied from interface:FieldVectorLoads data in the vectors. (ownBuffers must be the same size as getFieldVectors())- Specified by:
loadFieldBuffersin interfaceFieldVector- Parameters:
fieldNode- the fieldNodeownBuffers- the buffers for this Field (own buffers only, children not included)
-
getFieldBuffers
Description copied from interface:FieldVectorGet the buffers of the fields, (same size as getFieldVectors() since it is their content).- Specified by:
getFieldBuffersin interfaceFieldVector- Returns:
- the buffers containing the data for this vector (ready for reading)
-
getFieldInnerVectors
Deprecated.This API will be removed as the current implementations no longer support inner vectors.Get the inner vectors.- Specified by:
getFieldInnerVectorsin interfaceFieldVector- Returns:
- the inner vectors for this field as defined by the TypeLayout
-
getValidityBufferAddress
public long getValidityBufferAddress()Description copied from interface:FieldVectorGets the starting address of the underlying buffer associated with validity vector.- Specified by:
getValidityBufferAddressin interfaceFieldVector- Returns:
- buffer address
-
getTypeBufferAddress
public long getTypeBufferAddress() -
getDataBufferAddress
public long getDataBufferAddress()Description copied from interface:FieldVectorGets the starting address of the underlying buffer associated with data vector.- Specified by:
getDataBufferAddressin interfaceFieldVector- Returns:
- buffer address
-
getOffsetBufferAddress
public long getOffsetBufferAddress()Description copied from interface:FieldVectorGets the starting address of the underlying buffer associated with offset vector.- Specified by:
getOffsetBufferAddressin interfaceFieldVector- Returns:
- buffer address
-
getTypeBuffer
-
getValidityBuffer
Description copied from interface:ValueVectorGets the underlying buffer associated with validity vector.- Specified by:
getValidityBufferin interfaceValueVector- Returns:
- buffer
-
getDataBuffer
Description copied from interface:ValueVectorGets the underlying buffer associated with data vector.- Specified by:
getDataBufferin interfaceValueVector- Returns:
- buffer
-
getOffsetBuffer
Description copied from interface:ValueVectorGets the underlying buffer associated with offset vector.- Specified by:
getOffsetBufferin interfaceValueVector- Returns:
- buffer
-
getStruct
-
getTinyIntVector
-
getTinyIntVector
-
getUInt1Vector
-
getUInt1Vector
-
getUInt2Vector
-
getUInt2Vector
-
getSmallIntVector
-
getSmallIntVector
-
getFloat2Vector
-
getFloat2Vector
-
getIntVector
-
getIntVector
-
getUInt4Vector
-
getUInt4Vector
-
getFloat4Vector
-
getFloat4Vector
-
getDateDayVector
-
getDateDayVector
-
getIntervalYearVector
-
getIntervalYearVector
-
getTimeSecVector
-
getTimeSecVector
-
getTimeMilliVector
-
getTimeMilliVector
-
getBigIntVector
-
getBigIntVector
-
getUInt8Vector
-
getUInt8Vector
-
getFloat8Vector
-
getFloat8Vector
-
getDateMilliVector
-
getDateMilliVector
-
getDurationVector
-
getDurationVector
-
getDurationVector
-
getTimeStampSecVector
-
getTimeStampSecVector
-
getTimeStampMilliVector
-
getTimeStampMilliVector
-
getTimeStampMicroVector
-
getTimeStampMicroVector
-
getTimeStampNanoVector
-
getTimeStampNanoVector
-
getTimeStampSecTZVector
-
getTimeStampSecTZVector
-
getTimeStampSecTZVector
-
getTimeStampMilliTZVector
-
getTimeStampMilliTZVector
-
getTimeStampMilliTZVector
-
getTimeStampMicroTZVector
-
getTimeStampMicroTZVector
-
getTimeStampMicroTZVector
-
getTimeStampNanoTZVector
-
getTimeStampNanoTZVector
-
getTimeStampNanoTZVector
-
getTimeMicroVector
-
getTimeMicroVector
-
getTimeNanoVector
-
getTimeNanoVector
-
getIntervalDayVector
-
getIntervalDayVector
-
getIntervalMonthDayNanoVector
-
getIntervalMonthDayNanoVector
-
getDecimal256Vector
-
getDecimal256Vector
-
getDecimal256Vector
-
getDecimalVector
-
getDecimalVector
-
getDecimalVector
-
getFixedSizeBinaryVector
-
getFixedSizeBinaryVector
-
getFixedSizeBinaryVector
-
getVarBinaryVector
-
getVarBinaryVector
-
getVarCharVector
-
getVarCharVector
-
getViewVarBinaryVector
-
getViewVarBinaryVector
-
getViewVarCharVector
-
getViewVarCharVector
-
getLargeVarCharVector
-
getLargeVarCharVector
-
getLargeVarBinaryVector
-
getLargeVarBinaryVector
-
getBitVector
-
getBitVector
-
getList
-
getMap
-
getMap
-
getMap
-
getTypeValue
public int getTypeValue(int index) -
allocateNew
Description copied from interface:ValueVectorAllocate new buffers. ValueVector implements logic to determine how much to allocate.- Specified by:
allocateNewin interfaceValueVector- Overrides:
allocateNewin classAbstractContainerVector- Throws:
OutOfMemoryException- Thrown if no memory can be allocated.
-
allocateNewSafe
public boolean allocateNewSafe()Description copied from interface:ValueVectorAllocates new buffers. ValueVector implements logic to determine how much to allocate.- Specified by:
allocateNewSafein interfaceValueVector- Returns:
- Returns true if allocation was successful.
-
reAlloc
public void reAlloc()Description copied from interface:ValueVectorAllocate new buffer with double capacity, and copy data into the new buffer. Replace vector's buffer with new buffer, and release old one- Specified by:
reAllocin interfaceValueVector
-
setInitialCapacity
public void setInitialCapacity(int numRecords) Description copied from interface:ValueVectorSet the initial record capacity.- Specified by:
setInitialCapacityin interfaceValueVector- Parameters:
numRecords- the initial record capacity.
-
getValueCapacity
public int getValueCapacity()Description copied from interface:ValueVectorReturns the maximum number of values that can be stored in this vector instance.- Specified by:
getValueCapacityin interfaceValueVector- Returns:
- the maximum number of values that can be stored in this vector instance.
-
close
public void close()Description copied from class:AbstractContainerVectorClears out all underlying child vectors.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceValueVector- Overrides:
closein classAbstractContainerVector
-
clear
public void clear()Description copied from interface:ValueVectorRelease any owned ArrowBuf and reset the ValueVector to the initial state. If the vector has any child vectors, they will also be cleared.- Specified by:
clearin interfaceValueVector
-
reset
public void reset()Description copied from interface:ValueVectorReset the ValueVector to the initial state without releasing any owned ArrowBuf. Buffer capacities will remain unchanged and any previous data will be zeroed out. This includes buffers for data, validity, offset, etc. If the vector has any child vectors, they will also be reset.- Specified by:
resetin interfaceValueVector
-
getField
Description copied from interface:ValueVectorGet information about how this field is materialized.- Specified by:
getFieldin interfaceValueVector- Returns:
- the field corresponding to this vector
-
getTransferPair
Description copied from interface:ValueVectorTo transfer quota responsibility.- Specified by:
getTransferPairin interfaceValueVector- Parameters:
allocator- the target allocator- Returns:
- a
transfer pair, creating a new target vector of the same type.
-
getTransferPair
Description copied from interface:ValueVectorTo transfer quota responsibility.- Specified by:
getTransferPairin interfaceValueVector- Parameters:
ref- the name of the vectorallocator- the target allocator- Returns:
- a
transfer pair, creating a new target vector of the same type.
-
getTransferPair
Description copied from interface:ValueVectorTo transfer quota responsibility.- Specified by:
getTransferPairin interfaceValueVector- Parameters:
ref- the name of the vectorallocator- the target allocatorcallBack- A schema change callback.- Returns:
- a
transfer pair, creating a new target vector of the same type.
-
getTransferPair
Description copied from interface:ValueVectorTo transfer quota responsibility.- Specified by:
getTransferPairin interfaceValueVector- Parameters:
field- the Field object used by the target vectorallocator- the target allocator- Returns:
- a
transfer pair, creating a new target vector of the same type.
-
getTransferPair
Description copied from interface:ValueVectorTo transfer quota responsibility.- Specified by:
getTransferPairin interfaceValueVector- Parameters:
field- the Field object used by the target vectorallocator- the target allocatorcallBack- A schema change callback.- Returns:
- a
transfer pair, creating a new target vector of the same type.
-
makeTransferPair
Description copied from interface:ValueVectorMakes a new transfer pair used to transfer underlying buffers.- Specified by:
makeTransferPairin interfaceValueVector- Parameters:
target- the target for the transfer- Returns:
- a new
transfer pairthat is used to transfer underlying buffers into the target vector.
-
copyFrom
Description copied from interface:ValueVectorCopy a cell value from a particular index in source vector to a particular position in this vector.- Specified by:
copyFromin interfaceValueVector- Overrides:
copyFromin classAbstractContainerVector- Parameters:
inIndex- position to copy from in source vectoroutIndex- position to copy to in this vectorfrom- source vector
-
copyFromSafe
Description copied from interface:ValueVectorSame asValueVector.copyFrom(int, int, ValueVector)except that it handles the case when the capacity of the vector needs to be expanded before copy.- Specified by:
copyFromSafein interfaceValueVector- Overrides:
copyFromSafein classAbstractContainerVector- Parameters:
inIndex- position to copy from in source vectoroutIndex- position to copy to in this vectorfrom- source vector
-
addVector
-
directAddVector
Directly put a vector to internalStruct without creating a new one with same type. -
getReader
Description copied from interface:ValueVectorGet a reader for this vector.- Specified by:
getReaderin interfaceValueVector- Returns:
- a
field readerthat supports reading values from this vector.
-
getWriter
-
getBufferSize
public int getBufferSize()Description copied from interface:ValueVectorGet the number of bytes used by this vector.- Specified by:
getBufferSizein interfaceValueVector- Returns:
- the number of bytes that is used by this vector instance.
-
getBufferSizeFor
public int getBufferSizeFor(int valueCount) Description copied from interface:ValueVectorReturns the number of bytes that is used by this vector if it holds the given number of values. The result will be the same as if setValueCount() were called, followed by calling getBufferSize(), but without any of the closing side-effects that setValueCount() implies wrt finishing off the population of a vector. Some operations might wish to use this to determine how much memory has been used by a vector so far, even though it is not finished being populated.- Specified by:
getBufferSizeForin interfaceValueVector- Parameters:
valueCount- the number of values to assume this vector contains- Returns:
- the buffer size if this vector is holding valueCount values
-
getBuffers
Description copied from interface:ValueVectorReturn the underlying buffers associated with this vector. Note that this doesn't impact the reference counts for this buffer so it only should be used for in-context access. Also note that this buffer changes regularly thus external classes shouldn't hold a reference to it (unless they change it).- Specified by:
getBuffersin interfaceValueVector- Parameters:
clear- Whether to clear vector before returning; the buffers will still be refcounted; but the returned array will be the only reference to them- Returns:
- The underlying
buffersthat is used by this vector instance.
-
iterator
- Specified by:
iteratorin interfaceIterable<ValueVector>
-
getVector
-
getVector
-
getVectorByType
-
getVectorByType
-
getObject
Description copied from interface:ValueVectorGet friendly type object from the vector.- Specified by:
getObjectin interfaceValueVector- Parameters:
index- index of object to get- Returns:
- friendly type object
-
get
public byte[] get(int index) -
get
-
get
-
getValueCount
public int getValueCount()Description copied from interface:ValueVectorGets the number of values.- Specified by:
getValueCountin interfaceValueVector- Returns:
- number of values in the vector
-
isNull
public boolean isNull(int index) IMPORTANT: Union types always return non null as there is no validity buffer. To check validity correctly you must check the underlying vector.- Specified by:
isNullin interfaceValueVector- Parameters:
index- index to check for null- Returns:
- true if element is null
-
getNullCount
public int getNullCount()Description copied from interface:ValueVectorReturns number of null elements in the vector.- Specified by:
getNullCountin interfaceValueVector- Returns:
- number of null elements
-
isSet
public int isSet(int index) -
setValueCount
public void setValueCount(int valueCount) Description copied from interface:ValueVectorSet number of values in the vector.- Specified by:
setValueCountin interfaceValueVector
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setType
-
hashCode
public int hashCode(int index) Description copied from interface:ValueVectorReturns hashCode of element in index with the default hasher.- Specified by:
hashCodein interfaceValueVector
-
hashCode
Description copied from interface:ValueVectorReturns hashCode of element in index with the given hasher.- Specified by:
hashCodein interfaceValueVector
-
accept
Description copied from interface:ValueVectorAccept a genericVectorVisitorand return the result.- Specified by:
acceptin interfaceValueVector- Type Parameters:
OUT- the output result type.IN- the input data together with visitor.
-
getName
Description copied from interface:ValueVectorGets the name of the vector.- Specified by:
getNamein interfaceValueVector- Overrides:
getNamein classAbstractContainerVector- Returns:
- the name of the vector.
-
toString
Description copied from class:AbstractContainerVectorRepresentation of vector suitable for debugging.- Overrides:
toStringin classAbstractContainerVector
-
addOrGet
- Specified by:
addOrGetin classAbstractContainerVector
-
getChild
- Specified by:
getChildin classAbstractContainerVector
-
getChildVectorWithOrdinal
- Specified by:
getChildVectorWithOrdinalin classAbstractContainerVector
-
size
public int size()- Specified by:
sizein classAbstractContainerVector
-
setInitialCapacity
public void setInitialCapacity(int valueCount, double density) Description copied from interface:DensityAwareVectorSet value with density.- Specified by:
setInitialCapacityin interfaceDensityAwareVector- Parameters:
valueCount- the number of values in this vectordensity- the density of the vector
-
setNull
public void setNull(int index) Set the element at the given index to null. For UnionVector, it throws an UnsupportedOperationException as nulls are not supported at the top level and isNull() always returns false.- Specified by:
setNullin interfaceFieldVector- Parameters:
index- position of element- Throws:
UnsupportedOperationException- whenever invoked
-