Class Vectors

java.lang.Object
org.apache.cassandra.cql3.Vectors

public class Vectors extends Object
  • Method Details

    • testVectorAssignment

      public static AssignmentTestable.TestResult testVectorAssignment(ColumnSpecification receiver, List<? extends AssignmentTestable> elements)
      Tests that the vector with the specified elements can be assigned to the specified column.
      Parameters:
      receiver - the receiving column
      elements - the vector elements
    • getExactVectorTypeIfKnown

      public static <T> VectorType<?> getExactVectorTypeIfKnown(List<T> items, Function<T,AbstractType<?>> mapper)
      Returns the exact VectorType from the items if it can be known.
      Parameters:
      items - the items mapped to the vector elements
      mapper - the mapper used to retrieve the element types from the items
      Returns:
      the exact VectorType from the items if it can be known or null
    • getPreferredCompatibleType

      public static <T> VectorType<?> getPreferredCompatibleType(List<T> items, Function<T,AbstractType<?>> mapper)