@Experimental(value=SOURCE_SINK) public abstract static class SpannerIO.CreateTransaction extends PTransform<PBegin,PCollectionView<Transaction>>
PTransform
that create a transaction.SpannerIO
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
SpannerIO.CreateTransaction.Builder
A builder for
SpannerIO.CreateTransaction . |
name
Constructor and Description |
---|
CreateTransaction() |
Modifier and Type | Method and Description |
---|---|
PCollectionView<Transaction> |
expand(PBegin 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 |
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(TimestampBound timestampBound) |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validate
public PCollectionView<Transaction> expand(PBegin 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<PBegin,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 withTimestampBound(TimestampBound timestampBound)