DataChange

com.google.bigtable.v2.bigtable.ReadChangeStreamResponse$.DataChange
See theDataChange companion object
final case class DataChange(`type`: Type, sourceClusterId: String, rowKey: ByteString, commitTimestamp: Option[Timestamp], tiebreaker: Int, chunks: Seq[MutationChunk], done: Boolean, token: String, estimatedLowWatermark: Option[Timestamp], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[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.

Value parameters

chunks

The mutations associated with this change to the partition. May contain complete mutations or chunks of a multi-message chunked DataChange record.

commitTimestamp

The timestamp at which the mutation was applied on the Bigtable server.

done

When true, indicates that the entire DataChange has been read and the client can safely process the message.

estimatedLowWatermark

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

rowKey

The row key for all mutations that are part of this DataChange. If the DataChange is chunked across multiple messages, then this field will only be set for the first message.

sourceClusterId

The cluster where the mutation was applied. Not set when type is GARBAGE_COLLECTION.

tiebreaker

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 larger tiebreaker will be the one chosen for the eventually consistent state of the system.

token

An encoded position for this stream's partition to restart reading from. This token is for the StreamPartition from the request.

type

The type of the mutation.

Attributes

Companion
object
Source
ReadChangeStreamResponse.scala
Graph
Supertypes
trait Updatable[DataChange]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllChunks(`__vs`: Iterable[MutationChunk]): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
ReadChangeStreamResponse.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
ReadChangeStreamResponse.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
ReadChangeStreamResponse.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
ReadChangeStreamResponse.scala
def withDone(`__v`: Boolean): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def withRowKey(`__v`: ByteString): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def withSourceClusterId(`__v`: String): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def withTiebreaker(`__v`: Int): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def withToken(`__v`: String): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def withType(`__v`: Type): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def withUnknownFields(`__v`: UnknownFieldSet): DataChange

Attributes

Source
ReadChangeStreamResponse.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
ReadChangeStreamResponse.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[DataChange, DataChange] => () => DataChange*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala