Class SpannerIO.ReadAll
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<ReadOperation>,org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
-
- org.apache.beam.sdk.io.gcp.spanner.SpannerIO.ReadAll
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- SpannerIO
public abstract static class SpannerIO.ReadAll extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<ReadOperation>,org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
Implementation ofSpannerIO.readAll()
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadAll()
-
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.PCollection<ReadOperation> input)
SpannerIO.ReadAll
withBatching(boolean batching)
By default Batch API is used to read data from Cloud Spanner.SpannerIO.ReadAll
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.SpannerIO.ReadAll
withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.SpannerIO.ReadAll
withEmulatorHost(java.lang.String emulatorHost)
SpannerIO.ReadAll
withEmulatorHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.SpannerIO.ReadAll
withHighPriority()
SpannerIO.ReadAll
withHost(java.lang.String host)
SpannerIO.ReadAll
withHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.SpannerIO.ReadAll
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.SpannerIO.ReadAll
withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.SpannerIO.ReadAll
withLowPriority()
SpannerIO.ReadAll
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.SpannerIO.ReadAll
withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.SpannerIO.ReadAll
withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.SpannerIO.ReadAll
withTimestamp(com.google.cloud.Timestamp timestamp)
SpannerIO.ReadAll
withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
SpannerIO.ReadAll
withTransaction(org.apache.beam.sdk.values.PCollectionView<Transaction> transaction)
-
-
-
Method Detail
-
withSpannerConfig
public SpannerIO.ReadAll withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.
-
withProjectId
public SpannerIO.ReadAll withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.
-
withProjectId
public SpannerIO.ReadAll withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
-
withInstanceId
public SpannerIO.ReadAll withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.
-
withInstanceId
public SpannerIO.ReadAll withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.
-
withDatabaseId
public SpannerIO.ReadAll withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
-
withHost
public SpannerIO.ReadAll withHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
-
withHost
public SpannerIO.ReadAll withHost(java.lang.String host)
-
withEmulatorHost
public SpannerIO.ReadAll withEmulatorHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.
-
withEmulatorHost
public SpannerIO.ReadAll withEmulatorHost(java.lang.String emulatorHost)
-
withDatabaseId
public SpannerIO.ReadAll withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
-
withTransaction
public SpannerIO.ReadAll withTransaction(org.apache.beam.sdk.values.PCollectionView<Transaction> transaction)
-
withTimestamp
public SpannerIO.ReadAll withTimestamp(com.google.cloud.Timestamp timestamp)
-
withTimestampBound
public SpannerIO.ReadAll withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
-
withBatching
public SpannerIO.ReadAll withBatching(boolean batching)
By default Batch API is used to read data from Cloud Spanner. It is useful to disable batching when the underlying query is not root-partitionable.
-
withLowPriority
public SpannerIO.ReadAll withLowPriority()
-
withHighPriority
public SpannerIO.ReadAll withHighPriority()
-
expand
public org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct> expand(org.apache.beam.sdk.values.PCollection<ReadOperation> input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<ReadOperation>,org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
-
-