Class AbstractHeapVector

java.lang.Object
org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
All Implemented Interfaces:
Serializable, ColumnVector, WritableColumnVector
Direct Known Subclasses:
HeapArrayVector, HeapBooleanVector, HeapBytesVector, HeapByteVector, HeapDoubleVector, HeapFloatVector, HeapIntVector, HeapLongVector, HeapMapVector, HeapRowVector, HeapShortVector, HeapTimestampVector

@Internal public abstract class AbstractHeapVector extends AbstractWritableVector
Heap vector that nullable shared structure.
See Also:
  • Field Details

    • LITTLE_ENDIAN

      public static final boolean LITTLE_ENDIAN
    • UNSAFE

      public static final sun.misc.Unsafe UNSAFE
    • BYTE_ARRAY_OFFSET

      public static final int BYTE_ARRAY_OFFSET
    • INT_ARRAY_OFFSET

      public static final int INT_ARRAY_OFFSET
    • LONG_ARRAY_OFFSET

      public static final int LONG_ARRAY_OFFSET
    • FLOAT_ARRAY_OFFSET

      public static final int FLOAT_ARRAY_OFFSET
    • DOUBLE_ARRAY_OFFSET

      public static final int DOUBLE_ARRAY_OFFSET
    • isNull

      protected boolean[] isNull
    • dictionaryIds

      protected HeapIntVector dictionaryIds
      Reusable column for ids of dictionary.
  • Constructor Details

    • AbstractHeapVector

      public AbstractHeapVector(int len)
  • Method Details

    • reset

      public void reset()
      Resets the column to default state. - fills the isNull array with false. - sets noNulls to true.
    • setNullAt

      public void setNullAt(int i)
      Description copied from interface: WritableColumnVector
      Set null at rowId.
    • setNulls

      public void setNulls(int i, int count)
      Description copied from interface: WritableColumnVector
      Set nulls from rowId to rowId + count (exclude).
    • fillWithNulls

      public void fillWithNulls()
      Description copied from interface: WritableColumnVector
      Fill the column vector with nulls.
    • isNullAt

      public boolean isNullAt(int i)
    • reserveDictionaryIds

      public HeapIntVector reserveDictionaryIds(int capacity)
      Description copied from interface: WritableColumnVector
      Reserve a integer column for ids of dictionary. The size of return WritableIntVector should be equal to or bigger than capacity. DictionaryIds must inconsistent with WritableColumnVector.setDictionary(org.apache.flink.table.data.columnar.vector.Dictionary). We don't support a mix of dictionary.
    • getDictionaryIds

      public HeapIntVector getDictionaryIds()
      Returns the underlying integer column for ids of dictionary.
    • getLen

      public int getLen()