Class Select.Builder

  • Direct Known Subclasses:
    Select.Selection
    Enclosing class:
    Select

    public static class Select.Builder
    extends Object
    An in-construction SELECT statement.
    • Method Detail

      • distinct

        public Select.Builder distinct()
        Uses DISTINCT selection.
        Returns:
        this in-build SELECT statement.
      • from

        public Select from​(String table)
        Adds the table to select from.
        Parameters:
        table - the name of the table to select from.
        Returns:
        a newly built SELECT statement that selects from table.
      • from

        public Select from​(String keyspace,
                           String table)
        Adds the table to select from.
        Parameters:
        keyspace - the name of the keyspace to select from.
        table - the name of the table to select from.
        Returns:
        a newly built SELECT statement that selects from keyspace.table.
      • from

        public Select from​(TableMetadata table)
        Adds the table to select from.
        Parameters:
        table - the table to select from.
        Returns:
        a newly built SELECT statement that selects from table.
      • from

        public Select from​(MaterializedViewMetadata view)
        Adds the materialized view to select from.
        Parameters:
        view - the materialized view to select from.
        Returns:
        a newly built SELECT statement that selects from view.