Class Selectable.WithFunction

    • Field Detail

      • function

        public final Function function
      • args

        public final java.util.List<Selectable> args
    • Constructor Detail

      • WithFunction

        public WithFunction​(Function function,
                            java.util.List<Selectable> args)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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.
      • 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).