Class SpannerIO.Read
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
-
- org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Read
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- SpannerIO
public abstract static class SpannerIO.Read extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
Implementation ofSpannerIO.read()
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Read()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>
expand(org.apache.beam.sdk.values.PBegin input)
SpannerIO.Read
withBatching(boolean batching)
If true the uses Cloud Spanner batch API.SpannerIO.Read
withColumns(java.lang.String... columns)
SpannerIO.Read
withColumns(java.util.List<java.lang.String> columns)
SpannerIO.Read
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.SpannerIO.Read
withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.SpannerIO.Read
withEmulatorHost(java.lang.String emulatorHost)
SpannerIO.Read
withEmulatorHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.SpannerIO.Read
withHighPriority()
SpannerIO.Read
withHost(java.lang.String host)
SpannerIO.Read
withHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.SpannerIO.Read
withIndex(java.lang.String index)
SpannerIO.Read
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.SpannerIO.Read
withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.SpannerIO.Read
withKeySet(com.google.cloud.spanner.KeySet keySet)
SpannerIO.Read
withLowPriority()
SpannerIO.Read
withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions)
SpannerIO.Read
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.SpannerIO.Read
withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.SpannerIO.Read
withQuery(com.google.cloud.spanner.Statement statement)
SpannerIO.Read
withQuery(java.lang.String sql)
SpannerIO.Read
withQueryName(java.lang.String queryName)
SpannerIO.Read
withReadOperation(ReadOperation operation)
SpannerIO.Read
withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.SpannerIO.Read
withTable(java.lang.String table)
SpannerIO.Read
withTimestamp(com.google.cloud.Timestamp timestamp)
SpannerIO.Read
withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
SpannerIO.Read
withTransaction(org.apache.beam.sdk.values.PCollectionView<Transaction> transaction)
-
-
-
Method Detail
-
withSpannerConfig
public SpannerIO.Read withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.
-
withProjectId
public SpannerIO.Read withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.
-
withProjectId
public SpannerIO.Read withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
-
withInstanceId
public SpannerIO.Read withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.
-
withInstanceId
public SpannerIO.Read withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.
-
withDatabaseId
public SpannerIO.Read withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
-
withDatabaseId
public SpannerIO.Read withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
-
withHost
public SpannerIO.Read withHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
-
withHost
public SpannerIO.Read withHost(java.lang.String host)
-
withEmulatorHost
public SpannerIO.Read withEmulatorHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.
-
withEmulatorHost
public SpannerIO.Read withEmulatorHost(java.lang.String emulatorHost)
-
withBatching
public SpannerIO.Read withBatching(boolean batching)
If true the uses Cloud Spanner batch API.
-
withTransaction
public SpannerIO.Read withTransaction(org.apache.beam.sdk.values.PCollectionView<Transaction> transaction)
-
withTimestamp
public SpannerIO.Read withTimestamp(com.google.cloud.Timestamp timestamp)
-
withTimestampBound
public SpannerIO.Read withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
-
withTable
public SpannerIO.Read withTable(java.lang.String table)
-
withReadOperation
public SpannerIO.Read withReadOperation(ReadOperation operation)
-
withColumns
public SpannerIO.Read withColumns(java.lang.String... columns)
-
withColumns
public SpannerIO.Read withColumns(java.util.List<java.lang.String> columns)
-
withQuery
public SpannerIO.Read withQuery(com.google.cloud.spanner.Statement statement)
-
withQuery
public SpannerIO.Read withQuery(java.lang.String sql)
-
withQueryName
public SpannerIO.Read withQueryName(java.lang.String queryName)
-
withKeySet
public SpannerIO.Read withKeySet(com.google.cloud.spanner.KeySet keySet)
-
withIndex
public SpannerIO.Read withIndex(java.lang.String index)
-
withPartitionOptions
public SpannerIO.Read withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions)
-
withLowPriority
public SpannerIO.Read withLowPriority()
-
withHighPriority
public SpannerIO.Read withHighPriority()
-
expand
public org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct> expand(org.apache.beam.sdk.values.PBegin input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
-
-