@Experimental(value=SOURCE_SINK) public abstract static class SpannerIO.CreateTransaction extends PTransform<PBegin,PCollectionView<Transaction>>
PTransform that create a transaction.SpannerIO,
Serialized Form| Modifier 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) |
SpannerIO.CreateTransaction |
withDatabaseId(String databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.CreateTransaction |
withDatabaseId(ValueProvider<String> databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.CreateTransaction |
withInstanceId(String instanceId)
Specifies the Cloud Spanner instance.
|
SpannerIO.CreateTransaction |
withInstanceId(ValueProvider<String> instanceId)
Specifies the Cloud Spanner instance.
|
SpannerIO.CreateTransaction |
withProjectId(String projectId)
Specifies the Cloud Spanner project.
|
SpannerIO.CreateTransaction |
withProjectId(ValueProvider<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) |
getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validatepublic PCollectionView<Transaction> expand(PBegin input)
expand in class PTransform<PBegin,PCollectionView<Transaction>>public SpannerIO.CreateTransaction withSpannerConfig(SpannerConfig spannerConfig)
public SpannerIO.CreateTransaction withProjectId(String projectId)
public SpannerIO.CreateTransaction withProjectId(ValueProvider<String> projectId)
public SpannerIO.CreateTransaction withInstanceId(String instanceId)
public SpannerIO.CreateTransaction withInstanceId(ValueProvider<String> instanceId)
public SpannerIO.CreateTransaction withDatabaseId(String databaseId)
public SpannerIO.CreateTransaction withDatabaseId(ValueProvider<String> databaseId)
public SpannerIO.CreateTransaction withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.