Enum Class VectorElementType

java.lang.Object
java.lang.Enum<VectorElementType>
dev.frostlake.types.VectorElementType
All Implemented Interfaces:
Serializable, Comparable<VectorElementType>, Constable

public enum VectorElementType extends Enum<VectorElementType>
The element type of a VectorType — the two spellings Snowflake allows in VECTOR(FLOAT, n) / VECTOR(INT, n).

Both are NARROWER than the engine's ordinary numeric values, live-verified: FLOAT elements are 32-bit (VECTOR_NORMALIZE([1,2,3]::VECTOR(FLOAT,3)) is [0.26726124,0.5345225,0.80178374], not the float64 0.2672612419124244), and INT elements are 32-bit with silent wraparound ([2147483648,0,0]::VECTOR(INT,3) is [-2147483648,0,0] and [9007199254740993,0,0] is [1,0,0]).

  • Enum Constant Details

  • Method Details

    • values

      public static VectorElementType[] 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 VectorElementType 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