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 @Nullable java.util.List<java.lang.String> |
getColumns() |
abstract @Nullable java.lang.String |
getIndex() |
abstract @Nullable com.google.cloud.spanner.KeySet |
getKeySet() |
abstract @Nullable com.google.cloud.spanner.Statement |
getQuery() |
abstract @Nullable java.lang.String |
getQueryName() |
abstract @Nullable 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 |
withQueryName(java.lang.String queryName) |
ReadOperation |
withTable(java.lang.String table) |
public static ReadOperation create()
public abstract @Nullable com.google.cloud.spanner.Statement getQuery()
public abstract @Nullable java.lang.String getQueryName()
public abstract @Nullable java.lang.String getTable()
public abstract @Nullable java.lang.String getIndex()
public abstract @Nullable java.util.List<java.lang.String> getColumns()
public abstract @Nullable 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 withQueryName(java.lang.String queryName)
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)