Class 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.DecimalVector
    Extension of Arrow's @DecimalVector. The whole reason of having this implementation is to override the expensive BaseFixedWidthVector.isSet(int) method used by DecimalVector.getObject(int).
    • Field Summary

      • Fields inherited from class org.apache.arrow.vector.DecimalVector

        TYPE_WIDTH
      • Fields inherited from class org.apache.arrow.vector.BaseFixedWidthVector

        field, lastValueCapacity, validityBuffer, valueBuffer, valueCount
      • Fields inherited from class org.apache.arrow.vector.BaseValueVector

        allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
    • 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
      int isSet​(int index)
      Same as BaseFixedWidthVector.isNull(int).
      void setNullabilityHolder​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from interface org.apache.arrow.vector.ValueVector

        getAllocator
    • Constructor Detail

      • DecimalArrowVector

        public DecimalArrowVector​(java.lang.String name,
                                  org.apache.arrow.memory.BufferAllocator allocator,
                                  int precision,
                                  int scale)
    • Method Detail

      • isSet

        public int isSet​(int index)
        Same as BaseFixedWidthVector.isNull(int).
        Overrides:
        isSet in class org.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)