Class SpannerIO.ReadChangeStream
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<DataChangeRecord>>
org.apache.beam.sdk.io.gcp.spanner.SpannerIO.ReadChangeStream
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
SpannerIO
public abstract static class SpannerIO.ReadChangeStream
extends PTransform<PBegin,PCollection<DataChangeRecord>>
- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransform
should be expanded on the givenInputT
.withChangeStreamName
(String changeStreamName) Specifies the change stream name.withDatabaseId
(String databaseId) Specifies the Cloud Spanner database.withDatabaseId
(ValueProvider<String> databaseId) Specifies the Cloud Spanner database.withInclusiveEndAt
(com.google.cloud.Timestamp timestamp) Specifies the end time of the change stream.withInclusiveStartAt
(com.google.cloud.Timestamp timestamp) Specifies the time that the change stream should be read from.withInstanceId
(String instanceId) Specifies the Cloud Spanner instance.withInstanceId
(ValueProvider<String> instanceId) Specifies the Cloud Spanner instance.withMetadataDatabase
(String metadataDatabase) Specifies the metadata database.withMetadataInstance
(String metadataInstance) Specifies the metadata database.withMetadataTable
(String metadataTable) Specifies the metadata table name.withProjectId
(String projectId) Specifies the Cloud Spanner project.withProjectId
(ValueProvider<String> projectId) Specifies the Cloud Spanner project.withRpcPriority
(Options.RpcPriority rpcPriority) Specifies the priority of the change stream queries.withSpannerConfig
(SpannerConfig spannerConfig) Specifies the Cloud Spanner configuration.withTraceSampleProbability
(Double probability) Deprecated.This configuration has no effect, as tracing is not available.withWatermarkRefreshRate
(Duration refreshRate) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
ReadChangeStream
public ReadChangeStream()
-
-
Method Details
-
withSpannerConfig
Specifies the Cloud Spanner configuration. -
withProjectId
Specifies the Cloud Spanner project. -
withProjectId
Specifies the Cloud Spanner project. -
withInstanceId
Specifies the Cloud Spanner instance. -
withInstanceId
Specifies the Cloud Spanner instance. -
withDatabaseId
Specifies the Cloud Spanner database. -
withDatabaseId
Specifies the Cloud Spanner database. -
withChangeStreamName
Specifies the change stream name. -
withMetadataInstance
Specifies the metadata database. -
withMetadataDatabase
Specifies the metadata database. -
withMetadataTable
Specifies the metadata table name. -
withInclusiveStartAt
Specifies the time that the change stream should be read from. -
withInclusiveEndAt
Specifies the end time of the change stream. -
withRpcPriority
Specifies the priority of the change stream queries. -
withTraceSampleProbability
Deprecated.This configuration has no effect, as tracing is not available.Specifies the sample probability of tracing requests. -
withWatermarkRefreshRate
-
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
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).
- Specified by:
expand
in classPTransform<PBegin,
PCollection<DataChangeRecord>>
-