public sealed class ChangeStreamRecord : IMessage<ChangeStreamRecord>, IEquatable<ChangeStreamRecord>, IDeepCloneable<ChangeStreamRecord>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class ChangeStreamRecord.
Spanner Change Streams enable customers to capture and stream out changes to their Spanner databases in real-time. A change stream can be created with option partition_mode='IMMUTABLE_KEY_RANGE' or partition_mode='MUTABLE_KEY_RANGE'.
This message is only used in Change Streams created with the option partition_mode='MUTABLE_KEY_RANGE'. Spanner automatically creates a special Table-Valued Function (TVF) along with each Change Streams. The function provides access to the change stream's records. The function is named READ_<change_stream_name> (where <change_stream_name> is the name of the change stream), and it returns a table with only one column called ChangeRecord.
Implements
IMessageChangeStreamRecord, IEquatableChangeStreamRecord, IDeepCloneableChangeStreamRecord, IBufferMessage, IMessageNamespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Constructors
ChangeStreamRecord()
public ChangeStreamRecord()
ChangeStreamRecord(ChangeStreamRecord)
public ChangeStreamRecord(ChangeStreamRecord other)
Parameter | |
---|---|
Name | Description |
other |
ChangeStreamRecord |
Properties
DataChangeRecord
public ChangeStreamRecord.Types.DataChangeRecord DataChangeRecord { get; set; }
Data change record describing a data change for a change stream partition.
Property Value | |
---|---|
Type | Description |
ChangeStreamRecordTypesDataChangeRecord |
HeartbeatRecord
public ChangeStreamRecord.Types.HeartbeatRecord HeartbeatRecord { get; set; }
Heartbeat record describing a heartbeat for a change stream partition.
Property Value | |
---|---|
Type | Description |
ChangeStreamRecordTypesHeartbeatRecord |
PartitionEndRecord
public ChangeStreamRecord.Types.PartitionEndRecord PartitionEndRecord { get; set; }
Partition end record describing a terminated change stream partition.
Property Value | |
---|---|
Type | Description |
ChangeStreamRecordTypesPartitionEndRecord |
PartitionEventRecord
public ChangeStreamRecord.Types.PartitionEventRecord PartitionEventRecord { get; set; }
Partition event record describing key range changes for a change stream partition.
Property Value | |
---|---|
Type | Description |
ChangeStreamRecordTypesPartitionEventRecord |
PartitionStartRecord
public ChangeStreamRecord.Types.PartitionStartRecord PartitionStartRecord { get; set; }
Partition start record describing a new change stream partition.
Property Value | |
---|---|
Type | Description |
ChangeStreamRecordTypesPartitionStartRecord |
RecordCase
public ChangeStreamRecord.RecordOneofCase RecordCase { get; }
Property Value | |
---|---|
Type | Description |
ChangeStreamRecordRecordOneofCase |