Class Selectable.WithElementSelection

  • All Implemented Interfaces:
    AssignmentTestable, Selectable
    Enclosing interface:
    Selectable

    public static class Selectable.WithElementSelection
    extends java.lang.Object
    implements Selectable
    Represents the selection of an element of a collection (eg. c[x]).
    • Method Detail

      • toString

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