Class SpannerIO.CreateTransaction
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PInput,org.apache.beam.sdk.values.PCollectionView<Transaction>>
-
- org.apache.beam.sdk.io.gcp.spanner.SpannerIO.CreateTransaction
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- SpannerIO
public abstract static class SpannerIO.CreateTransaction extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PInput,org.apache.beam.sdk.values.PCollectionView<Transaction>>
APTransform
that create a transaction. If applied to aPCollection
, it will create a transaction after thePCollection
is closed.- See Also:
SpannerIO
,Wait
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpannerIO.CreateTransaction.Builder
A builder forSpannerIO.CreateTransaction
.
-
Constructor Summary
Constructors Constructor Description CreateTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollectionView<Transaction>
expand(org.apache.beam.sdk.values.PInput input)
SpannerIO.CreateTransaction
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.SpannerIO.CreateTransaction
withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.SpannerIO.CreateTransaction
withEmulatorHost(java.lang.String emulatorHost)
SpannerIO.CreateTransaction
withEmulatorHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.SpannerIO.CreateTransaction
withHost(java.lang.String host)
SpannerIO.CreateTransaction
withHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.SpannerIO.CreateTransaction
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.SpannerIO.CreateTransaction
withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.SpannerIO.CreateTransaction
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.SpannerIO.CreateTransaction
withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.SpannerIO.CreateTransaction
withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.SpannerIO.CreateTransaction
withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
-
-
-
Method Detail
-
expand
public org.apache.beam.sdk.values.PCollectionView<Transaction> expand(org.apache.beam.sdk.values.PInput input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PInput,org.apache.beam.sdk.values.PCollectionView<Transaction>>
-
withSpannerConfig
public SpannerIO.CreateTransaction withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.
-
withProjectId
public SpannerIO.CreateTransaction withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.
-
withProjectId
public SpannerIO.CreateTransaction withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
-
withInstanceId
public SpannerIO.CreateTransaction withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.
-
withInstanceId
public SpannerIO.CreateTransaction withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.
-
withDatabaseId
public SpannerIO.CreateTransaction withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
-
withDatabaseId
public SpannerIO.CreateTransaction withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
-
withHost
public SpannerIO.CreateTransaction withHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
-
withHost
public SpannerIO.CreateTransaction withHost(java.lang.String host)
-
withEmulatorHost
public SpannerIO.CreateTransaction withEmulatorHost(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.
-
withEmulatorHost
public SpannerIO.CreateTransaction withEmulatorHost(java.lang.String emulatorHost)
-
withTimestampBound
public SpannerIO.CreateTransaction withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
-
-