Class IcebergArrowVectors.DecimalArrowVector
- java.lang.Object
-
- org.apache.arrow.vector.BaseValueVector
-
- org.apache.arrow.vector.BaseFixedWidthVector
-
- org.apache.arrow.vector.DecimalVector
-
- org.apache.iceberg.arrow.vectorized.IcebergArrowVectors.DecimalArrowVector
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Iterable<org.apache.arrow.vector.ValueVector>,org.apache.arrow.vector.FieldVector,org.apache.arrow.vector.FixedWidthVector,org.apache.arrow.vector.ValueVector,org.apache.arrow.vector.VectorDefinitionSetter
- Enclosing class:
- IcebergArrowVectors
public static class IcebergArrowVectors.DecimalArrowVector extends org.apache.arrow.vector.DecimalVectorExtension of Arrow's @DecimalVector. The whole reason of having this implementation is to override the expensiveBaseFixedWidthVector.isSet(int)method used byDecimalVector.getObject(int).
-
-
Constructor Summary
Constructors Constructor Description DecimalArrowVector(java.lang.String name, org.apache.arrow.memory.BufferAllocator allocator, int precision, int scale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intisSet(int index)Same asBaseFixedWidthVector.isNull(int).voidsetNullabilityHolder(NullabilityHolder nullabilityHolder)-
Methods inherited from class org.apache.arrow.vector.DecimalVector
copyFrom, copyFromSafe, get, get, getMinorType, getObject, getReader, getScale, getTransferPair, makeTransferPair, set, set, set, set, set, set, set, setBigEndian, setBigEndianSafe, setBigEndianSafe, setNull, setSafe, setSafe, setSafe, setSafe, setSafe, setSafe, setSafe, setSafe
-
Methods inherited from class org.apache.arrow.vector.BaseFixedWidthVector
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, loadFieldBuffers, reAlloc, reset, set, set, setIndexDefined, setInitialCapacity, setSafe, setSafe, setValueCount, splitAndTransferTo, transferTo, zeroVector
-
Methods inherited from class org.apache.arrow.vector.BaseValueVector
checkBufRefs, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBuffer
-
-
-
-
Method Detail
-
isSet
public int isSet(int index)
Same asBaseFixedWidthVector.isNull(int).- Overrides:
isSetin classorg.apache.arrow.vector.BaseFixedWidthVector- Parameters:
index- position of element- Returns:
- 1 if element at given index is not null, 0 otherwise
-
setNullabilityHolder
public void setNullabilityHolder(NullabilityHolder nullabilityHolder)
-
-