com.datastax.driver.core.querybuilder
Class Select.Builder

java.lang.Object
  extended by com.datastax.driver.core.querybuilder.Select.Builder
Direct Known Subclasses:
Select.Selection
Enclosing class:
Select

public static class Select.Builder
extends Object

An in-construction SELECT statement.


Method Summary
 Select from(String table)
          Adds the table to select from.
 Select from(String keyspace, String table)
          Adds the table to select from.
 Select from(TableMetadata table)
          Adds the table to select from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2013. All rights reserved.