Class 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>>
    A PTransform that create a transaction. If applied to a PCollection, it will create a transaction after the PCollection is closed.
    See Also:
    SpannerIO, Wait, Serialized Form
    • Constructor Detail

      • CreateTransaction

        public CreateTransaction()
    • Method Detail

      • expand

        public org.apache.beam.sdk.values.PCollectionView<Transaction> expand​(org.apache.beam.sdk.values.PInput input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PInput,​org.apache.beam.sdk.values.PCollectionView<Transaction>>
      • 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.
      • withEmulatorHost

        public SpannerIO.CreateTransaction withEmulatorHost​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> emulatorHost)
        Specifies the Cloud Spanner emulator host.
      • withTimestampBound

        public SpannerIO.CreateTransaction withTimestampBound​(com.google.cloud.spanner.TimestampBound timestampBound)