Interface AssignmentTestable

    • Method Detail

      • testAssignment

        AssignmentTestable.TestResult testAssignment​(java.lang.String keyspace,
                                                     ColumnSpecification receiver)
        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.
      • getCompatibleTypeIfKnown

        @Nullable
        AbstractType<?> getCompatibleTypeIfKnown​(java.lang.String keyspace)
        Returns:
        A data type that can represent this, or null if we can't determine that type. The returned type won't necessarely be the exact type, but one that is compatible with it.
      • getCompatibleTypeIfKnown

        @Nullable
        static AbstractType<?> getCompatibleTypeIfKnown​(java.util.Collection<AbstractType<?>> types)
        Returns:
        A data type that can represent all the specified types, or null if there isn't one.