Class SpannerIO.Read

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Enclosing class:
    SpannerIO

    public abstract static class SpannerIO.Read
    extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,​org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>
    Implementation of SpannerIO.read().
    See Also:
    Serialized Form
    • Constructor Detail

      • Read

        public Read()
    • Method Detail

      • withSpannerConfig

        public SpannerIO.Read withSpannerConfig​(SpannerConfig spannerConfig)
        Specifies the Cloud Spanner configuration.
      • withProjectId

        public SpannerIO.Read withProjectId​(java.lang.String projectId)
        Specifies the Cloud Spanner project.
      • withProjectId

        public SpannerIO.Read withProjectId​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
        Specifies the Cloud Spanner project.
      • withInstanceId

        public SpannerIO.Read withInstanceId​(java.lang.String instanceId)
        Specifies the Cloud Spanner instance.
      • withInstanceId

        public SpannerIO.Read withInstanceId​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
        Specifies the Cloud Spanner instance.
      • withDatabaseId

        public SpannerIO.Read withDatabaseId​(java.lang.String databaseId)
        Specifies the Cloud Spanner database.
      • withDatabaseId

        public SpannerIO.Read withDatabaseId​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
        Specifies the Cloud Spanner database.
      • withHost

        public SpannerIO.Read withHost​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> host)
        Specifies the Cloud Spanner host.
      • withHost

        public SpannerIO.Read withHost​(java.lang.String host)
      • withEmulatorHost

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

        public SpannerIO.Read withEmulatorHost​(java.lang.String emulatorHost)
      • withBatching

        public SpannerIO.Read withBatching​(boolean batching)
        If true the uses Cloud Spanner batch API.
      • withTransaction

        public SpannerIO.Read withTransaction​(org.apache.beam.sdk.values.PCollectionView<Transaction> transaction)
      • withTimestamp

        public SpannerIO.Read withTimestamp​(com.google.cloud.Timestamp timestamp)
      • withTimestampBound

        public SpannerIO.Read withTimestampBound​(com.google.cloud.spanner.TimestampBound timestampBound)
      • withTable

        public SpannerIO.Read withTable​(java.lang.String table)
      • withColumns

        public SpannerIO.Read withColumns​(java.lang.String... columns)
      • withColumns

        public SpannerIO.Read withColumns​(java.util.List<java.lang.String> columns)
      • withQuery

        public SpannerIO.Read withQuery​(com.google.cloud.spanner.Statement statement)
      • withQuery

        public SpannerIO.Read withQuery​(java.lang.String sql)
      • withQueryName

        public SpannerIO.Read withQueryName​(java.lang.String queryName)
      • withKeySet

        public SpannerIO.Read withKeySet​(com.google.cloud.spanner.KeySet keySet)
      • withIndex

        public SpannerIO.Read withIndex​(java.lang.String index)
      • withPartitionOptions

        public SpannerIO.Read withPartitionOptions​(com.google.cloud.spanner.PartitionOptions partitionOptions)
      • expand

        public org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct> expand​(org.apache.beam.sdk.values.PBegin input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,​org.apache.beam.sdk.values.PCollection<com.google.cloud.spanner.Struct>>