Enum Class ElementType

java.lang.Object
java.lang.Enum<ElementType>
org.elasticsearch.compute.data.ElementType
All Implemented Interfaces:
Serializable, Comparable<ElementType>, Constable

public enum ElementType extends Enum<ElementType>
The type of elements in Block and Vector
  • Enum Constant Details

    • BOOLEAN

      public static final ElementType BOOLEAN
    • INT

      public static final ElementType INT
    • LONG

      public static final ElementType LONG
    • FLOAT

      public static final ElementType FLOAT
    • DOUBLE

      public static final ElementType DOUBLE
    • NULL

      public static final ElementType NULL
      Blocks containing only null values.
    • BYTES_REF

      public static final ElementType BYTES_REF
    • DOC

      public static final ElementType DOC
      Blocks that reference individual lucene documents.
    • COMPOSITE

      public static final ElementType COMPOSITE
      Composite blocks which contain array of sub-blocks.
    • UNKNOWN

      public static final ElementType UNKNOWN
      Intermediate blocks which don't support retrieving elements.
  • Method Details

    • values

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

      public static ElementType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • newBlockBuilder

      public Block.Builder newBlockBuilder(int estimatedSize, BlockFactory blockFactory)
      Create a new Block.Builder for blocks of this type.
    • fromJava

      public static ElementType fromJava(Class<?> type)
    • pascalCaseName

      public String pascalCaseName()