public abstract static class BigtableIO.ReadChangeStream extends PTransform<PBegin,PCollection<KV<com.google.protobuf.ByteString,com.google.cloud.bigtable.data.v2.models.ChangeStreamMutation>>>
name, resourceHints
Constructor and Description |
---|
ReadChangeStream() |
Modifier and Type | Method and Description |
---|---|
PCollection<KV<com.google.protobuf.ByteString,com.google.cloud.bigtable.data.v2.models.ChangeStreamMutation>> |
expand(PBegin input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
BigtableIO.ReadChangeStream |
withAppProfileId(java.lang.String appProfileId)
Returns a new
BigtableIO.ReadChangeStream that will stream from the cluster specified
by app profile id. |
BigtableIO.ReadChangeStream |
withChangeStreamName(java.lang.String changeStreamName)
Returns a new
BigtableIO.ReadChangeStream that uses changeStreamName as prefix for
the metadata table. |
BigtableIO.ReadChangeStream |
withExistingPipelineOptions(BigtableIO.ExistingPipelineOptions existingPipelineOptions)
Returns a new
BigtableIO.ReadChangeStream that decides what to do if an existing
pipeline exists with the same change stream name. |
BigtableIO.ReadChangeStream |
withHeartbeatDuration(Duration interval)
Returns a new
BigtableIO.ReadChangeStream that will send heartbeat messages at
specified interval. |
BigtableIO.ReadChangeStream |
withInstanceId(java.lang.String instanceId)
Returns a new
BigtableIO.ReadChangeStream that will stream from the Cloud Bigtable
instance indicated by given parameter, requires withProjectId(java.lang.String) to be called to
determine the project. |
BigtableIO.ReadChangeStream |
withMetadataTableAppProfileId(java.lang.String appProfileId)
Returns a new
BigtableIO.ReadChangeStream that will use the cluster specified by app
profile id to store the metadata of the stream. |
BigtableIO.ReadChangeStream |
withMetadataTableInstanceId(java.lang.String instanceId)
Returns a new
BigtableIO.ReadChangeStream that will use the Cloud Bigtable instance
indicated by given parameter to manage the metadata of the stream. |
BigtableIO.ReadChangeStream |
withMetadataTableProjectId(java.lang.String projectId)
Returns a new
BigtableIO.ReadChangeStream that will use the Cloud Bigtable project
indicated by given parameter to manage the metadata of the stream. |
BigtableIO.ReadChangeStream |
withMetadataTableTableId(java.lang.String tableId)
Returns a new
BigtableIO.ReadChangeStream that will use specified table to store the
metadata of the stream. |
BigtableIO.ReadChangeStream |
withProjectId(java.lang.String projectId)
Returns a new
BigtableIO.ReadChangeStream that will stream from the Cloud Bigtable
project indicated by given parameter, requires withInstanceId(java.lang.String) to be called to
determine the instance. |
BigtableIO.ReadChangeStream |
withStartTime(Instant startTime)
Returns a new
BigtableIO.ReadChangeStream that will start streaming at the specified
start time. |
BigtableIO.ReadChangeStream |
withTableId(java.lang.String tableId)
Returns a new
BigtableIO.ReadChangeStream that will stream from the specified table. |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
public BigtableIO.ReadChangeStream withProjectId(java.lang.String projectId)
BigtableIO.ReadChangeStream
that will stream from the Cloud Bigtable
project indicated by given parameter, requires withInstanceId(java.lang.String)
to be called to
determine the instance.
Does not modify this object.
public BigtableIO.ReadChangeStream withInstanceId(java.lang.String instanceId)
BigtableIO.ReadChangeStream
that will stream from the Cloud Bigtable
instance indicated by given parameter, requires withProjectId(java.lang.String)
to be called to
determine the project.
Does not modify this object.
public BigtableIO.ReadChangeStream withTableId(java.lang.String tableId)
BigtableIO.ReadChangeStream
that will stream from the specified table.
Does not modify this object.
public BigtableIO.ReadChangeStream withAppProfileId(java.lang.String appProfileId)
BigtableIO.ReadChangeStream
that will stream from the cluster specified
by app profile id.
This must use single-cluster routing policy. If not setting a separate app profile for the
metadata table with withMetadataTableAppProfileId(java.lang.String)
, this
app profile also needs to enable allow single-row transactions.
Does not modify this object.
public BigtableIO.ReadChangeStream withStartTime(Instant startTime)
BigtableIO.ReadChangeStream
that will start streaming at the specified
start time.
Does not modify this object.
public BigtableIO.ReadChangeStream withHeartbeatDuration(Duration interval)
BigtableIO.ReadChangeStream
that will send heartbeat messages at
specified interval.
Does not modify this object.
public BigtableIO.ReadChangeStream withChangeStreamName(java.lang.String changeStreamName)
BigtableIO.ReadChangeStream
that uses changeStreamName as prefix for
the metadata table.
Does not modify this object.
public BigtableIO.ReadChangeStream withExistingPipelineOptions(BigtableIO.ExistingPipelineOptions existingPipelineOptions)
BigtableIO.ReadChangeStream
that decides what to do if an existing
pipeline exists with the same change stream name.
Does not modify this object.
public BigtableIO.ReadChangeStream withMetadataTableProjectId(java.lang.String projectId)
BigtableIO.ReadChangeStream
that will use the Cloud Bigtable project
indicated by given parameter to manage the metadata of the stream.
Optional: defaults to value from withProjectId
Does not modify this object.
public BigtableIO.ReadChangeStream withMetadataTableInstanceId(java.lang.String instanceId)
BigtableIO.ReadChangeStream
that will use the Cloud Bigtable instance
indicated by given parameter to manage the metadata of the stream.
Optional: defaults to value from withInstanceId
Does not modify this object.
public BigtableIO.ReadChangeStream withMetadataTableTableId(java.lang.String tableId)
BigtableIO.ReadChangeStream
that will use specified table to store the
metadata of the stream.
Optional: defaults to value from withTableId
Does not modify this object.
public BigtableIO.ReadChangeStream withMetadataTableAppProfileId(java.lang.String appProfileId)
BigtableIO.ReadChangeStream
that will use the cluster specified by app
profile id to store the metadata of the stream.
Optional: defaults to value from withAppProfileId
This must use single-cluster routing policy with allow single-row transactions enabled.
Does not modify this object.
public PCollection<KV<com.google.protobuf.ByteString,com.google.cloud.bigtable.data.v2.models.ChangeStreamMutation>> 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<KV<com.google.protobuf.ByteString,com.google.cloud.bigtable.data.v2.models.ChangeStreamMutation>>>