Class ReadOperation
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.ReadOperation
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class ReadOperation extends java.lang.Object implements java.io.SerializableEncapsulates a spanner read operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadOperation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ReadOperationcreate()abstract @Nullable java.util.List<java.lang.String>getColumns()abstract @Nullable java.lang.StringgetIndex()abstract @Nullable com.google.cloud.spanner.KeySetgetKeySet()abstract @Nullable com.google.cloud.spanner.StatementgetQuery()abstract @Nullable java.lang.StringgetQueryName()abstract @Nullable java.lang.StringgetTable()ReadOperationwithColumns(java.lang.String... columns)ReadOperationwithColumns(java.util.List<java.lang.String> columns)ReadOperationwithIndex(java.lang.String index)ReadOperationwithKeySet(com.google.cloud.spanner.KeySet keySet)ReadOperationwithPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions)ReadOperationwithQuery(com.google.cloud.spanner.Statement statement)ReadOperationwithQuery(java.lang.String sql)ReadOperationwithQueryName(java.lang.String queryName)ReadOperationwithTable(java.lang.String table)
-
-
-
Method Detail
-
create
public static ReadOperation create()
-
getQuery
public abstract @Nullable com.google.cloud.spanner.Statement getQuery()
-
getQueryName
public abstract @Nullable java.lang.String getQueryName()
-
getTable
public abstract @Nullable java.lang.String getTable()
-
getIndex
public abstract @Nullable java.lang.String getIndex()
-
getColumns
public abstract @Nullable java.util.List<java.lang.String> getColumns()
-
getKeySet
public abstract @Nullable com.google.cloud.spanner.KeySet getKeySet()
-
withTable
public ReadOperation withTable(java.lang.String table)
-
withColumns
public ReadOperation withColumns(java.lang.String... columns)
-
withColumns
public ReadOperation withColumns(java.util.List<java.lang.String> columns)
-
withQuery
public ReadOperation withQuery(com.google.cloud.spanner.Statement statement)
-
withQuery
public ReadOperation withQuery(java.lang.String sql)
-
withQueryName
public ReadOperation withQueryName(java.lang.String queryName)
-
withKeySet
public ReadOperation withKeySet(com.google.cloud.spanner.KeySet keySet)
-
withIndex
public ReadOperation withIndex(java.lang.String index)
-
withPartitionOptions
public ReadOperation withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions)
-
-