public abstract static class SpannerIO.CreateTransaction extends PTransform<PInput,PCollectionView<Transaction>>
PTransform
that create a transaction. If applied to a PCollection
, it will
create a transaction after the PCollection
is closed.SpannerIO
,
Wait
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
SpannerIO.CreateTransaction.Builder
A builder for
SpannerIO.CreateTransaction . |
annotations, displayData, name, resourceHints
Constructor and Description |
---|
CreateTransaction() |
Modifier and Type | Method and Description |
---|---|
PCollectionView<Transaction> |
expand(PInput input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
SpannerIO.CreateTransaction |
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.CreateTransaction |
withDatabaseId(ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.CreateTransaction |
withEmulatorHost(java.lang.String emulatorHost) |
SpannerIO.CreateTransaction |
withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.
|
SpannerIO.CreateTransaction |
withHost(java.lang.String host) |
SpannerIO.CreateTransaction |
withHost(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(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(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) |
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
public PCollectionView<Transaction> expand(PInput input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
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).
expand
in class PTransform<PInput,PCollectionView<Transaction>>
public SpannerIO.CreateTransaction withSpannerConfig(SpannerConfig spannerConfig)
public SpannerIO.CreateTransaction withProjectId(java.lang.String projectId)
public SpannerIO.CreateTransaction withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerIO.CreateTransaction withInstanceId(java.lang.String instanceId)
public SpannerIO.CreateTransaction withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerIO.CreateTransaction withDatabaseId(java.lang.String databaseId)
public SpannerIO.CreateTransaction withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerIO.CreateTransaction withHost(ValueProvider<java.lang.String> host)
public SpannerIO.CreateTransaction withHost(java.lang.String host)
public SpannerIO.CreateTransaction withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
public SpannerIO.CreateTransaction withEmulatorHost(java.lang.String emulatorHost)
public SpannerIO.CreateTransaction withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)