Class Vectors


  • public class Vectors
    extends java.lang.Object
    • 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 column
        elements - 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 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​(java.util.List<T> items,
                                                                   java.util.function.Function<T,​AbstractType<?>> mapper)