Interface Selector

  • All Superinterfaces:
    CqlSnippet
    All Known Subinterfaces:
    Literal, Raw

    public interface Selector
    extends CqlSnippet
    A selected element in a SELECT query.

    To build instances of this type, use the factory methods, such as column, function, etc.

    They are used as arguments to the selectors method, for example:

    
     selectFrom("foo").selectors(Selector.column("bar"), Selector.column("baz"))
     // SELECT bar,baz FROM foo
     

    There are also shortcuts in the fluent API when you build a statement, for example:

    
     selectFrom("foo").column("bar").column("baz")
     // SELECT bar,baz FROM foo