|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.datastax.driver.core.querybuilder.Select.Builder com.datastax.driver.core.querybuilder.Select.Selection
public static class Select.Selection
An Selection clause for an in-construction SELECT statement.
Field Summary |
---|
Fields inherited from class com.datastax.driver.core.querybuilder.Select.Builder |
---|
columnNames |
Constructor Summary | |
---|---|
Select.Selection()
|
Method Summary | |
---|---|
Select.Builder |
all()
Selects all columns (i.e. |
Select.Selection |
column(String name)
Selects the provided column. |
Select.Builder |
countAll()
Selects the count of all returned rows (i.e. |
Select.Selection |
fcall(String name,
Object... parameters)
Creates a function call. |
Select.Selection |
ttl(String name)
Selects the ttl of provided column. |
Select.Selection |
writeTime(String name)
Selects the write time of provided column. |
Methods inherited from class com.datastax.driver.core.querybuilder.Select.Builder |
---|
from, from, from |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Select.Selection()
Method Detail |
---|
public Select.Builder all()
IllegalStateException
- if some columns had already been selected for this builder.public Select.Builder countAll()
IllegalStateException
- if some columns had already been selected for this builder.public Select.Selection column(String name)
name
- the new column name to add.
public Select.Selection writeTime(String name)
This is a shortcut for fcall("writetime", QueryBuilder.column(name))
.
name
- the name of the column to select the write time of.
public Select.Selection ttl(String name)
This is a shortcut for fcall("ttl", QueryBuilder.column(name))
.
name
- the name of the column to select the ttl of.
public Select.Selection fcall(String name, Object... parameters)
Please note that the parameters are interpreted as values, and so
fcall("textToBlob", "foo")
will generate the string
"textToBlob('foo')"
. If you want to generate
"textToBlob(foo)"
, i.e. if the argument must be interpreted
as a column name (in a select clause), you will need to use the
QueryBuilder.column(java.lang.String)
method, and so
fcall("textToBlob", QueryBuilder.column(foo)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |