Enum UnionMode

java.lang.Object
java.lang.Enum<UnionMode>
org.apache.arrow.vector.types.UnionMode
All Implemented Interfaces:
Serializable, Comparable<UnionMode>, java.lang.constant.Constable

public enum UnionMode extends Enum<UnionMode>
Different memory layouts for Union Vectors.
  • Enum Constant Details

    • Sparse

      public static final UnionMode Sparse
      Each child vector is the same length as the overall vector, and there is one 8-bit integer buffer to indicate the index of a child vector to use at any given position.
    • Dense

      public static final UnionMode Dense
      Each child vector is of variable width. The parent vector contains both a child index vector (like in Sparse) and in addition a slot index buffer to determine the offset into the child vector indicated by the index vector.
  • Method Details

    • values

      public static UnionMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static UnionMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getFlatbufID

      public short getFlatbufID()
    • fromFlatbufID

      public static UnionMode fromFlatbufID(short id)