Class VectorType

java.lang.Object
org.apache.cassandra.cql3.functions.types.DataType
org.apache.cassandra.cql3.functions.types.VectorType

public class VectorType extends DataType
A vector type.
  • Method Details

    • getSubtype

      public DataType getSubtype()
    • getDimensions

      public int getDimensions()
    • getTypeArguments

      public List<DataType> getTypeArguments()
      Description copied from class: DataType
      Returns the type arguments of this type.

      Note that only the collection types (LIST, MAP, SET) have type arguments. For the other types, this will return an empty list.

      For the collection types:

      • For lists and sets, this method returns one argument, the type of the elements.
      • For maps, this method returns two arguments, the first one is the type of the map keys, the second one is the type of the map values.
      Overrides:
      getTypeArguments in class DataType
      Returns:
      an immutable list containing the type arguments of this type.
    • isFrozen

      public boolean isFrozen()
      Description copied from class: DataType
      Returns whether this data type is frozen.

      This applies to User Defined Types, tuples and nested collections. Frozen types are serialized as a single value in Cassandra's storage engine, whereas non-frozen types are stored in a form that allows updates to individual subfields.

      Specified by:
      isFrozen in class DataType
      Returns:
      whether this data type is frozen.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object