Package org.apache.cassandra.cql3
Class Vectors
- java.lang.Object
-
- org.apache.cassandra.cql3.Vectors
-
public class Vectors extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Vectors.DelayedValue<T>
Basically similar to a Value, but with some non-pure function (that need to be evaluated at execution time) in it.static class
Vectors.Literal
static class
Vectors.Value<T>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> VectorType<?>
getExactVectorTypeIfKnown(java.util.List<T> items, java.util.function.Function<T,AbstractType<?>> mapper)
Returns the exact VectorType from the items if it can be known.static <T> VectorType<?>
getPreferredCompatibleType(java.util.List<T> items, java.util.function.Function<T,AbstractType<?>> mapper)
static AssignmentTestable.TestResult
testVectorAssignment(ColumnSpecification receiver, java.util.List<? extends AssignmentTestable> elements)
Tests that the vector with the specified elements can be assigned to the specified column.
-
-
-
Method Detail
-
testVectorAssignment
public static AssignmentTestable.TestResult testVectorAssignment(ColumnSpecification receiver, java.util.List<? extends AssignmentTestable> elements)
Tests that the vector with the specified elements can be assigned to the specified column.- Parameters:
receiver
- the receiving columnelements
- the vector elements
-
getExactVectorTypeIfKnown
public static <T> VectorType<?> getExactVectorTypeIfKnown(java.util.List<T> items, java.util.function.Function<T,AbstractType<?>> mapper)
Returns the exact VectorType from the items if it can be known.- Parameters:
items
- the items mapped to the vector elementsmapper
- 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(java.util.List<T> items, java.util.function.Function<T,AbstractType<?>> mapper)
-
-