Enum Class DataType

java.lang.Object
java.lang.Enum<DataType>
org.zvec.binding.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>, Constable

public enum DataType extends Enum<DataType>
Field data types. Maps to the ZVEC_DATA_TYPE_* constants in c_api.h.
  • Enum Constant Details

    • UNDEFINED

      public static final DataType UNDEFINED
    • BINARY

      public static final DataType BINARY
    • STRING

      public static final DataType STRING
    • BOOL

      public static final DataType BOOL
    • INT32

      public static final DataType INT32
    • INT64

      public static final DataType INT64
    • UINT32

      public static final DataType UINT32
    • UINT64

      public static final DataType UINT64
    • FLOAT

      public static final DataType FLOAT
    • DOUBLE

      public static final DataType DOUBLE
    • VECTOR_BINARY32

      public static final DataType VECTOR_BINARY32
    • VECTOR_BINARY64

      public static final DataType VECTOR_BINARY64
    • VECTOR_FP16

      public static final DataType VECTOR_FP16
    • VECTOR_FP32

      public static final DataType VECTOR_FP32
    • VECTOR_FP64

      public static final DataType VECTOR_FP64
    • VECTOR_INT4

      public static final DataType VECTOR_INT4
    • VECTOR_INT8

      public static final DataType VECTOR_INT8
    • VECTOR_INT16

      public static final DataType VECTOR_INT16
    • SPARSE_VECTOR_FP16

      public static final DataType SPARSE_VECTOR_FP16
    • SPARSE_VECTOR_FP32

      public static final DataType SPARSE_VECTOR_FP32
    • ARRAY_BINARY

      public static final DataType ARRAY_BINARY
    • ARRAY_STRING

      public static final DataType ARRAY_STRING
    • ARRAY_BOOL

      public static final DataType ARRAY_BOOL
    • ARRAY_INT32

      public static final DataType ARRAY_INT32
    • ARRAY_INT64

      public static final DataType ARRAY_INT64
    • ARRAY_UINT32

      public static final DataType ARRAY_UINT32
    • ARRAY_UINT64

      public static final DataType ARRAY_UINT64
    • ARRAY_FLOAT

      public static final DataType ARRAY_FLOAT
    • ARRAY_DOUBLE

      public static final DataType ARRAY_DOUBLE
  • Method Details

    • values

      public static DataType[] 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 DataType 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
    • getCode

      public int getCode()
    • fromCode

      public static DataType fromCode(int code)
    • toStringName

      public String toStringName()
      Return the C API string representation via the native library.