Class SpannerIO.ReadChangeStream
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<DataChangeRecord>>
-
- org.apache.beam.sdk.io.gcp.spanner.SpannerIO.ReadChangeStream
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- SpannerIO
public abstract static class SpannerIO.ReadChangeStream extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<DataChangeRecord>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadChangeStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<DataChangeRecord>
expand(org.apache.beam.sdk.values.PBegin input)
SpannerIO.ReadChangeStream
withChangeStreamName(java.lang.String changeStreamName)
Specifies the change stream name.SpannerIO.ReadChangeStream
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.SpannerIO.ReadChangeStream
withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.SpannerIO.ReadChangeStream
withInclusiveEndAt(com.google.cloud.Timestamp timestamp)
Specifies the end time of the change stream.SpannerIO.ReadChangeStream
withInclusiveStartAt(com.google.cloud.Timestamp timestamp)
Specifies the time that the change stream should be read from.SpannerIO.ReadChangeStream
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.SpannerIO.ReadChangeStream
withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.SpannerIO.ReadChangeStream
withMetadataDatabase(java.lang.String metadataDatabase)
Specifies the metadata database.SpannerIO.ReadChangeStream
withMetadataInstance(java.lang.String metadataInstance)
Specifies the metadata database.SpannerIO.ReadChangeStream
withMetadataTable(java.lang.String metadataTable)
Specifies the metadata table name.SpannerIO.ReadChangeStream
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.SpannerIO.ReadChangeStream
withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.SpannerIO.ReadChangeStream
withRpcPriority(com.google.cloud.spanner.Options.RpcPriority rpcPriority)
Specifies the priority of the change stream queries.SpannerIO.ReadChangeStream
withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.SpannerIO.ReadChangeStream
withTraceSampleProbability(java.lang.Double probability)
Deprecated.This configuration has no effect, as tracing is not available.
-
-
-
Method Detail
-
withSpannerConfig
public SpannerIO.ReadChangeStream withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.
-
withProjectId
public SpannerIO.ReadChangeStream withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.
-
withProjectId
public SpannerIO.ReadChangeStream withProjectId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
-
withInstanceId
public SpannerIO.ReadChangeStream withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.
-
withInstanceId
public SpannerIO.ReadChangeStream withInstanceId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.
-
withDatabaseId
public SpannerIO.ReadChangeStream withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
-
withDatabaseId
public SpannerIO.ReadChangeStream withDatabaseId(org.apache.beam.sdk.options.ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
-
withChangeStreamName
public SpannerIO.ReadChangeStream withChangeStreamName(java.lang.String changeStreamName)
Specifies the change stream name.
-
withMetadataInstance
public SpannerIO.ReadChangeStream withMetadataInstance(java.lang.String metadataInstance)
Specifies the metadata database.
-
withMetadataDatabase
public SpannerIO.ReadChangeStream withMetadataDatabase(java.lang.String metadataDatabase)
Specifies the metadata database.
-
withMetadataTable
public SpannerIO.ReadChangeStream withMetadataTable(java.lang.String metadataTable)
Specifies the metadata table name.
-
withInclusiveStartAt
public SpannerIO.ReadChangeStream withInclusiveStartAt(com.google.cloud.Timestamp timestamp)
Specifies the time that the change stream should be read from.
-
withInclusiveEndAt
public SpannerIO.ReadChangeStream withInclusiveEndAt(com.google.cloud.Timestamp timestamp)
Specifies the end time of the change stream.
-
withRpcPriority
public SpannerIO.ReadChangeStream withRpcPriority(com.google.cloud.spanner.Options.RpcPriority rpcPriority)
Specifies the priority of the change stream queries.
-
withTraceSampleProbability
@Deprecated public SpannerIO.ReadChangeStream withTraceSampleProbability(java.lang.Double probability)
Deprecated.This configuration has no effect, as tracing is not available.Specifies the sample probability of tracing requests.
-
expand
public org.apache.beam.sdk.values.PCollection<DataChangeRecord> expand(org.apache.beam.sdk.values.PBegin input)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<DataChangeRecord>>
-
-