Package com.google.spanner.executor.v1
Interface DataChangeRecordOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DataChangeRecord,DataChangeRecord.Builder
public interface DataChangeRecordOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnTypes(int index) Column types defined in the schema.intColumn types defined in the schema.Column types defined in the schema.getColumnTypesOrBuilder(int index) Column types defined in the schema.List<? extends DataChangeRecord.ColumnTypeOrBuilder>Column types defined in the schema.com.google.protobuf.TimestampThe timestamp in which the change was committed.com.google.protobuf.TimestampOrBuilderThe timestamp in which the change was committed.booleanIndicates whether this is the last record for a transaction in the current partition.booleanWhether the transaction is a system transactionn.getMods(int index) Changes made in the transaction.intChanges made in the transaction.Changes made in the transaction.getModsOrBuilder(int index) Changes made in the transaction.List<? extends DataChangeRecord.ModOrBuilder>Changes made in the transaction.Describes the type of change.com.google.protobuf.ByteStringDescribes the type of change.longNumber of partitions in transactions.longNumber of records in transactions.The sequence number for the record within the transaction.com.google.protobuf.ByteStringThe sequence number for the record within the transaction.getTable()Name of the table affected by the change.com.google.protobuf.ByteStringName of the table affected by the change.A globally unique string that represents the transaction in which the change was committed.com.google.protobuf.ByteStringA globally unique string that represents the transaction in which the change was committed.Transaction tag info.com.google.protobuf.ByteStringTransaction tag info.One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.com.google.protobuf.ByteStringOne of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.booleanThe timestamp in which the change was committed.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasCommitTime
boolean hasCommitTime()The timestamp in which the change was committed.
.google.protobuf.Timestamp commit_time = 1;- Returns:
- Whether the commitTime field is set.
-
getCommitTime
com.google.protobuf.Timestamp getCommitTime()The timestamp in which the change was committed.
.google.protobuf.Timestamp commit_time = 1;- Returns:
- The commitTime.
-
getCommitTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()The timestamp in which the change was committed.
.google.protobuf.Timestamp commit_time = 1; -
getRecordSequence
String getRecordSequence()The sequence number for the record within the transaction.
string record_sequence = 2;- Returns:
- The recordSequence.
-
getRecordSequenceBytes
com.google.protobuf.ByteString getRecordSequenceBytes()The sequence number for the record within the transaction.
string record_sequence = 2;- Returns:
- The bytes for recordSequence.
-
getTransactionId
String getTransactionId()A globally unique string that represents the transaction in which the change was committed.
string transaction_id = 3;- Returns:
- The transactionId.
-
getTransactionIdBytes
com.google.protobuf.ByteString getTransactionIdBytes()A globally unique string that represents the transaction in which the change was committed.
string transaction_id = 3;- Returns:
- The bytes for transactionId.
-
getIsLastRecord
boolean getIsLastRecord()Indicates whether this is the last record for a transaction in the current partition.
bool is_last_record = 4;- Returns:
- The isLastRecord.
-
getTable
String getTable()Name of the table affected by the change.
string table = 5;- Returns:
- The table.
-
getTableBytes
com.google.protobuf.ByteString getTableBytes()Name of the table affected by the change.
string table = 5;- Returns:
- The bytes for table.
-
getColumnTypesList
List<DataChangeRecord.ColumnType> getColumnTypesList()Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; -
getColumnTypes
Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; -
getColumnTypesCount
int getColumnTypesCount()Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; -
getColumnTypesOrBuilderList
List<? extends DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesOrBuilderList()Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; -
getColumnTypesOrBuilder
Column types defined in the schema.
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6; -
getModsList
List<DataChangeRecord.Mod> getModsList()Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7; -
getMods
Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7; -
getModsCount
int getModsCount()Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7; -
getModsOrBuilderList
List<? extends DataChangeRecord.ModOrBuilder> getModsOrBuilderList()Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7; -
getModsOrBuilder
Changes made in the transaction.
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7; -
getModType
String getModType()Describes the type of change. One of INSERT, UPDATE or DELETE.
string mod_type = 8;- Returns:
- The modType.
-
getModTypeBytes
com.google.protobuf.ByteString getModTypeBytes()Describes the type of change. One of INSERT, UPDATE or DELETE.
string mod_type = 8;- Returns:
- The bytes for modType.
-
getValueCaptureType
String getValueCaptureType()One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
string value_capture_type = 9;- Returns:
- The valueCaptureType.
-
getValueCaptureTypeBytes
com.google.protobuf.ByteString getValueCaptureTypeBytes()One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
string value_capture_type = 9;- Returns:
- The bytes for valueCaptureType.
-
getRecordCount
long getRecordCount()Number of records in transactions.
int64 record_count = 10;- Returns:
- The recordCount.
-
getPartitionCount
long getPartitionCount()Number of partitions in transactions.
int64 partition_count = 11;- Returns:
- The partitionCount.
-
getTransactionTag
String getTransactionTag()Transaction tag info.
string transaction_tag = 12;- Returns:
- The transactionTag.
-
getTransactionTagBytes
com.google.protobuf.ByteString getTransactionTagBytes()Transaction tag info.
string transaction_tag = 12;- Returns:
- The bytes for transactionTag.
-
getIsSystemTransaction
boolean getIsSystemTransaction()Whether the transaction is a system transactionn.
bool is_system_transaction = 13;- Returns:
- The isSystemTransaction.
-