public abstract class ReadOperation extends Object implements Serializable
| Constructor and Description |
|---|
ReadOperation() |
| Modifier and Type | Method and Description |
|---|---|
static ReadOperation |
create() |
abstract List<String> |
getColumns() |
abstract String |
getIndex() |
abstract com.google.cloud.spanner.KeySet |
getKeySet() |
abstract com.google.cloud.spanner.Statement |
getQuery() |
abstract String |
getTable() |
ReadOperation |
withColumns(List<String> columns) |
ReadOperation |
withColumns(String... columns) |
ReadOperation |
withIndex(String index) |
ReadOperation |
withKeySet(com.google.cloud.spanner.KeySet keySet) |
ReadOperation |
withQuery(com.google.cloud.spanner.Statement statement) |
ReadOperation |
withQuery(String sql) |
ReadOperation |
withTable(String table) |
public static ReadOperation create()
@Nullable public abstract com.google.cloud.spanner.Statement getQuery()
@Nullable public abstract com.google.cloud.spanner.KeySet getKeySet()
public ReadOperation withTable(String table)
public ReadOperation withColumns(String... columns)
public ReadOperation withColumns(List<String> columns)
public ReadOperation withQuery(com.google.cloud.spanner.Statement statement)
public ReadOperation withQuery(String sql)
public ReadOperation withKeySet(com.google.cloud.spanner.KeySet keySet)
public ReadOperation withIndex(String index)
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.