public static class Select.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Select.Builder |
distinct()
Uses DISTINCT selection.
|
Select |
from(MaterializedViewMetadata view)
Adds the materialized view to select from.
|
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.
|
Select.Builder |
json()
Uses JSON selection.
|
public Select.Builder distinct()
public Select.Builder json()
Cassandra 2.2 introduced JSON support to SELECT statements: the JSON
keyword can
be used to return each row as a single JSON encoded map.
public Select from(String table)
table
- the name of the table to select from.table
.public Select from(String keyspace, String table)
keyspace
- the name of the keyspace to select from.table
- the name of the table to select from.keyspace.table
.public Select from(TableMetadata table)
table
- the table to select from.table
.public Select from(MaterializedViewMetadata view)
view
- the materialized view to select from.view
.Copyright © 2012–2024. All rights reserved.