Reference documentation and code samples for the Cloud Bigtable V2 API class Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange.
A message corresponding to one or more mutations to the partition
being streamed. A single logical DataChange
message may also be split
across a sequence of multiple individual messages. Messages other than
the first in a sequence will only have the type
and chunks
fields
populated, with the final message in the sequence also containing done
set to true.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chunks
def chunks() -> ::Array<::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::MutationChunk>
-
(::Array<::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::MutationChunk>) — The mutations associated with this change to the partition.
May contain complete mutations or chunks of a multi-message chunked
DataChange
record.
#chunks=
def chunks=(value) -> ::Array<::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::MutationChunk>
-
value (::Array<::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::MutationChunk>) — The mutations associated with this change to the partition.
May contain complete mutations or chunks of a multi-message chunked
DataChange
record.
-
(::Array<::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::MutationChunk>) — The mutations associated with this change to the partition.
May contain complete mutations or chunks of a multi-message chunked
DataChange
record.
#commit_timestamp
def commit_timestamp() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — The timestamp at which the mutation was applied on the Bigtable server.
#commit_timestamp=
def commit_timestamp=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — The timestamp at which the mutation was applied on the Bigtable server.
- (::Google::Protobuf::Timestamp) — The timestamp at which the mutation was applied on the Bigtable server.
#done
def done() -> ::Boolean
-
(::Boolean) — When true, indicates that the entire
DataChange
has been read and the client can safely process the message.
#done=
def done=(value) -> ::Boolean
-
value (::Boolean) — When true, indicates that the entire
DataChange
has been read and the client can safely process the message.
-
(::Boolean) — When true, indicates that the entire
DataChange
has been read and the client can safely process the message.
#estimated_low_watermark
def estimated_low_watermark() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — An estimate of the commit timestamp that is usually lower than or equal to any timestamp for a record that will be delivered in the future on the stream. It is possible that, under particular circumstances that a future record has a timestamp is is lower than a previously seen timestamp. For an example usage see https://beam.apache.org/documentation/basics/#watermarks
#estimated_low_watermark=
def estimated_low_watermark=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — An estimate of the commit timestamp that is usually lower than or equal to any timestamp for a record that will be delivered in the future on the stream. It is possible that, under particular circumstances that a future record has a timestamp is is lower than a previously seen timestamp. For an example usage see https://beam.apache.org/documentation/basics/#watermarks
- (::Google::Protobuf::Timestamp) — An estimate of the commit timestamp that is usually lower than or equal to any timestamp for a record that will be delivered in the future on the stream. It is possible that, under particular circumstances that a future record has a timestamp is is lower than a previously seen timestamp. For an example usage see https://beam.apache.org/documentation/basics/#watermarks
#row_key
def row_key() -> ::String
-
(::String) — The row key for all mutations that are part of this
DataChange
. If theDataChange
is chunked across multiple messages, then this field will only be set for the first message.
#row_key=
def row_key=(value) -> ::String
-
value (::String) — The row key for all mutations that are part of this
DataChange
. If theDataChange
is chunked across multiple messages, then this field will only be set for the first message.
-
(::String) — The row key for all mutations that are part of this
DataChange
. If theDataChange
is chunked across multiple messages, then this field will only be set for the first message.
#source_cluster_id
def source_cluster_id() -> ::String
-
(::String) — The cluster where the mutation was applied.
Not set when
type
isGARBAGE_COLLECTION
.
#source_cluster_id=
def source_cluster_id=(value) -> ::String
-
value (::String) — The cluster where the mutation was applied.
Not set when
type
isGARBAGE_COLLECTION
.
-
(::String) — The cluster where the mutation was applied.
Not set when
type
isGARBAGE_COLLECTION
.
#tiebreaker
def tiebreaker() -> ::Integer
-
(::Integer) — A value that lets stream consumers reconstruct Bigtable's
conflict resolution semantics.
https://cloud.google.com/bigtable/docs/writes#conflict-resolution
In the event that the same row key, column family, column qualifier,
timestamp are modified on different clusters at the same
commit_timestamp
, the mutation with the largertiebreaker
will be the one chosen for the eventually consistent state of the system.
#tiebreaker=
def tiebreaker=(value) -> ::Integer
-
value (::Integer) — A value that lets stream consumers reconstruct Bigtable's
conflict resolution semantics.
https://cloud.google.com/bigtable/docs/writes#conflict-resolution
In the event that the same row key, column family, column qualifier,
timestamp are modified on different clusters at the same
commit_timestamp
, the mutation with the largertiebreaker
will be the one chosen for the eventually consistent state of the system.
-
(::Integer) — A value that lets stream consumers reconstruct Bigtable's
conflict resolution semantics.
https://cloud.google.com/bigtable/docs/writes#conflict-resolution
In the event that the same row key, column family, column qualifier,
timestamp are modified on different clusters at the same
commit_timestamp
, the mutation with the largertiebreaker
will be the one chosen for the eventually consistent state of the system.
#token
def token() -> ::String
- (::String) — An encoded position for this stream's partition to restart reading from. This token is for the StreamPartition from the request.
#token=
def token=(value) -> ::String
- value (::String) — An encoded position for this stream's partition to restart reading from. This token is for the StreamPartition from the request.
- (::String) — An encoded position for this stream's partition to restart reading from. This token is for the StreamPartition from the request.
#type
def type() -> ::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange::Type
- (::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange::Type) — The type of the mutation.
#type=
def type=(value) -> ::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange::Type
- value (::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange::Type) — The type of the mutation.
- (::Google::Cloud::Bigtable::V2::ReadChangeStreamResponse::DataChange::Type) — The type of the mutation.