public abstract static class SpannerIO.ReadChangeStream extends PTransform<PBegin,PCollection<DataChangeRecord>>
name, resourceHints
Constructor and Description |
---|
ReadChangeStream() |
Modifier and Type | Method and Description |
---|---|
PCollection<DataChangeRecord> |
expand(PBegin input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
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(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(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(ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
|
SpannerIO.ReadChangeStream |
withRpcPriority(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.
|
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate
public SpannerIO.ReadChangeStream withSpannerConfig(SpannerConfig spannerConfig)
public SpannerIO.ReadChangeStream withProjectId(java.lang.String projectId)
public SpannerIO.ReadChangeStream withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerIO.ReadChangeStream withInstanceId(java.lang.String instanceId)
public SpannerIO.ReadChangeStream withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerIO.ReadChangeStream withDatabaseId(java.lang.String databaseId)
public SpannerIO.ReadChangeStream withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerIO.ReadChangeStream withChangeStreamName(java.lang.String changeStreamName)
public SpannerIO.ReadChangeStream withMetadataInstance(java.lang.String metadataInstance)
public SpannerIO.ReadChangeStream withMetadataDatabase(java.lang.String metadataDatabase)
public SpannerIO.ReadChangeStream withMetadataTable(java.lang.String metadataTable)
public SpannerIO.ReadChangeStream withInclusiveStartAt(com.google.cloud.Timestamp timestamp)
public SpannerIO.ReadChangeStream withInclusiveEndAt(com.google.cloud.Timestamp timestamp)
public SpannerIO.ReadChangeStream withRpcPriority(Options.RpcPriority rpcPriority)
@Deprecated public SpannerIO.ReadChangeStream withTraceSampleProbability(java.lang.Double probability)
public PCollection<DataChangeRecord> expand(PBegin input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
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).
expand
in class PTransform<PBegin,PCollection<DataChangeRecord>>