Class IcebergArrowVectors.VarcharArrowVector

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<org.apache.arrow.vector.ValueVector>, org.apache.arrow.vector.DensityAwareVector, org.apache.arrow.vector.FieldVector, org.apache.arrow.vector.ValueVector, org.apache.arrow.vector.VariableWidthVector, org.apache.arrow.vector.VectorDefinitionSetter
    Enclosing class:
    IcebergArrowVectors

    public static class IcebergArrowVectors.VarcharArrowVector
    extends org.apache.arrow.vector.VarCharVector
    Extension of Arrow's @VarCharVector. The reason of having this implementation is to override the expensive BaseVariableWidthVector.isSet(int) method called by VarCharVector.get(int, NullableVarCharHolder)
    • Field Summary

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

        emptyByteArray, field, lastSet, OFFSET_WIDTH, offsetBuffer, 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
      VarcharArrowVector​(java.lang.String name, org.apache.arrow.memory.BufferAllocator allocator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int isSet​(int index)
      Same as BaseVariableWidthVector.isNull(int).
      void setNullabilityHolder​(NullabilityHolder nullabilityHolder)  
      • Methods inherited from class org.apache.arrow.vector.VarCharVector

        copyFrom, copyFromSafe, get, get, getMinorType, getObject, getReader, getTransferPair, makeTransferPair, set, set, set, setSafe, setSafe, setSafe
      • Methods inherited from class org.apache.arrow.vector.BaseVariableWidthVector

        allocateNew, allocateNew, allocateNewSafe, clear, close, fillEmpties, fillHoles, get, getBuffers, getBufferSize, getBufferSizeFor, getByteCapacity, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDensity, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getStartEnd, getstartOffset, getStartOffset, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, getValueLength, handleSafe, initializeChildrenFromFields, isNull, isSafe, loadFieldBuffers, reAlloc, reallocDataBuffer, reallocValidityAndOffsetBuffers, reset, set, set, set, set, set, set, setBytes, setIndexDefined, setInitialCapacity, setInitialCapacity, setLastSet, setNull, setSafe, setSafe, setSafe, setSafe, setSafe, setValueCount, setValueLengthSafe, sizeOfValueBuffer, 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

      • VarcharArrowVector

        public VarcharArrowVector​(java.lang.String name,
                                  org.apache.arrow.memory.BufferAllocator allocator)
    • Method Detail

      • isSet

        public int isSet​(int index)
        Same as BaseVariableWidthVector.isNull(int).
        Overrides:
        isSet in class org.apache.arrow.vector.BaseVariableWidthVector
        Parameters:
        index - position of element
        Returns:
        1 if element at given index is not null, 0 otherwise
      • setNullabilityHolder

        public void setNullabilityHolder​(NullabilityHolder nullabilityHolder)