Class SpannerIO.CreateTransaction
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PInput,PCollectionView<Transaction>>
org.apache.beam.sdk.io.gcp.spanner.SpannerIO.CreateTransaction
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
SpannerIO
public abstract static class SpannerIO.CreateTransaction
extends PTransform<PInput,PCollectionView<Transaction>>
A
PTransform
that create a transaction. If applied to a PCollection
, it will
create a transaction after the PCollection
is closed.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransform
should be expanded on the givenInputT
.withDatabaseId
(String databaseId) Specifies the Cloud Spanner database.withDatabaseId
(ValueProvider<String> databaseId) Specifies the Cloud Spanner database.withEmulatorHost
(String emulatorHost) withEmulatorHost
(ValueProvider<String> emulatorHost) Specifies the Cloud Spanner emulator host.withHost
(ValueProvider<String> host) Specifies the Cloud Spanner host.withInstanceId
(String instanceId) Specifies the Cloud Spanner instance.withInstanceId
(ValueProvider<String> instanceId) Specifies the Cloud Spanner instance.withProjectId
(String projectId) Specifies the Cloud Spanner project.withProjectId
(ValueProvider<String> projectId) Specifies the Cloud Spanner project.withSpannerConfig
(SpannerConfig spannerConfig) Specifies the Cloud Spanner configuration.withTimestampBound
(TimestampBound timestampBound) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
CreateTransaction
public CreateTransaction()
-
-
Method Details
-
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PInput,
PCollectionView<Transaction>>
-
withSpannerConfig
Specifies the Cloud Spanner configuration. -
withProjectId
Specifies the Cloud Spanner project. -
withProjectId
Specifies the Cloud Spanner project. -
withInstanceId
Specifies the Cloud Spanner instance. -
withInstanceId
Specifies the Cloud Spanner instance. -
withDatabaseId
Specifies the Cloud Spanner database. -
withDatabaseId
Specifies the Cloud Spanner database. -
withHost
Specifies the Cloud Spanner host. -
withHost
-
withEmulatorHost
Specifies the Cloud Spanner emulator host. -
withEmulatorHost
-
withTimestampBound
-