Class Selectable.WithSet

    • Constructor Detail

      • WithSet

        public WithSet​(java.util.List<Selectable> selectables)
    • Method Detail

      • testAssignment

        public AssignmentTestable.TestResult testAssignment​(java.lang.String keyspace,
                                                            ColumnSpecification receiver)
        Specified by:
        testAssignment in interface AssignmentTestable
        Specified by:
        testAssignment in interface Selectable
        Returns:
        whether this object can be assigned to the provided receiver. We distinguish between 3 values: - EXACT_MATCH if this object is exactly of the type expected by the receiver - WEAKLY_ASSIGNABLE if this object is not exactly the expected type but is assignable nonetheless - NOT_ASSIGNABLE if it's not assignable Most caller should just call the isAssignable() method on the result, though functions have a use for testing "strong" equality to decide the most precise overload to pick when multiple could match.
      • getExactTypeIfKnown

        public AbstractType<?> getExactTypeIfKnown​(java.lang.String keyspace)
        Description copied from interface: Selectable
        The type of the Selectable if it can be infered.
        Specified by:
        getExactTypeIfKnown in interface Selectable
        Parameters:
        keyspace - the keyspace on which the statement for which this is a Selectable is on.
        Returns:
        the type of this Selectable if inferrable, or null otherwise (for instance, the type isn't inferable for a bind marker. Even for literals, the exact type is not inferrable since they are valid for many different types and so this will return null too).
      • selectColumns

        public boolean selectColumns​(java.util.function.Predicate<ColumnMetadata> predicate)
        Description copied from interface: Selectable
        Checks if this Selectable select columns matching the specified predicate.
        Specified by:
        selectColumns in interface Selectable
        Returns:
        true if this Selectable select columns matching the specified predicate, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object