public abstract class ReadOperation
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ReadOperation() |
Modifier and Type | Method and Description |
---|---|
static ReadOperation |
create() |
abstract java.util.List<java.lang.String> |
getColumns() |
abstract java.lang.String |
getIndex() |
abstract com.google.cloud.spanner.KeySet |
getKeySet() |
abstract com.google.cloud.spanner.Statement |
getQuery() |
abstract java.lang.String |
getTable() |
ReadOperation |
withColumns(java.util.List<java.lang.String> columns) |
ReadOperation |
withColumns(java.lang.String... columns) |
ReadOperation |
withIndex(java.lang.String index) |
ReadOperation |
withKeySet(com.google.cloud.spanner.KeySet keySet) |
ReadOperation |
withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions) |
ReadOperation |
withQuery(com.google.cloud.spanner.Statement statement) |
ReadOperation |
withQuery(java.lang.String sql) |
ReadOperation |
withTable(java.lang.String table) |
public static ReadOperation create()
@Nullable public abstract com.google.cloud.spanner.Statement getQuery()
@Nullable public abstract java.lang.String getTable()
@Nullable public abstract java.lang.String getIndex()
@Nullable public abstract java.util.List<java.lang.String> getColumns()
@Nullable public abstract com.google.cloud.spanner.KeySet getKeySet()
public ReadOperation withTable(java.lang.String table)
public ReadOperation withColumns(java.lang.String... columns)
public ReadOperation withColumns(java.util.List<java.lang.String> columns)
public ReadOperation withQuery(com.google.cloud.spanner.Statement statement)
public ReadOperation withQuery(java.lang.String sql)
public ReadOperation withKeySet(com.google.cloud.spanner.KeySet keySet)
public ReadOperation withIndex(java.lang.String index)
public ReadOperation withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions)