public final class DataChangeRecord
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DataChangeRecord() |
Modifier and Type | Method and Description |
---|---|
DataChangeRecord |
clone() |
List<ColumnMetadata> |
getColumnMetadata()
Provides metadata describing the columns associated with the mods listed below.
|
String |
getCommitTimestamp()
Indicates the timestamp in which the change was committed.
|
Boolean |
getIsLastRecordInTransactionInPartition()
Indicates whether this is the last record for a transaction in the current partition.
|
Boolean |
getIsSystemTransaction()
Indicates whether the transaction is a system transaction.
|
List<Mod> |
getMods()
Describes the changes that were made.
|
String |
getModType()
Describes the type of change.
|
Integer |
getNumberOfPartitionsInTransaction()
Indicates the number of partitions that return data change records for this transaction.
|
Integer |
getNumberOfRecordsInTransaction()
Indicates the number of data change records that are part of this transaction across all change
stream partitions.
|
String |
getRecordSequence()
Record sequence numbers are unique and monotonically increasing (but not necessarily
contiguous) for a specific timestamp across record types in the same partition.
|
String |
getServerTransactionId()
Provides a globally unique string that represents the transaction in which the change was
committed.
|
String |
getTable()
Name of the table affected by the change.
|
String |
getTransactionTag()
Indicates the transaction tag associated with this transaction.
|
String |
getValueCaptureType()
Describes the value capture type that was specified in the change stream configuration when
this change was captured.
|
DataChangeRecord |
set(String fieldName,
Object value) |
DataChangeRecord |
setColumnMetadata(List<ColumnMetadata> columnMetadata)
Provides metadata describing the columns associated with the mods listed below.
|
DataChangeRecord |
setCommitTimestamp(String commitTimestamp)
Indicates the timestamp in which the change was committed.
|
DataChangeRecord |
setIsLastRecordInTransactionInPartition(Boolean isLastRecordInTransactionInPartition)
Indicates whether this is the last record for a transaction in the current partition.
|
DataChangeRecord |
setIsSystemTransaction(Boolean isSystemTransaction)
Indicates whether the transaction is a system transaction.
|
DataChangeRecord |
setMods(List<Mod> mods)
Describes the changes that were made.
|
DataChangeRecord |
setModType(String modType)
Describes the type of change.
|
DataChangeRecord |
setNumberOfPartitionsInTransaction(Integer numberOfPartitionsInTransaction)
Indicates the number of partitions that return data change records for this transaction.
|
DataChangeRecord |
setNumberOfRecordsInTransaction(Integer numberOfRecordsInTransaction)
Indicates the number of data change records that are part of this transaction across all change
stream partitions.
|
DataChangeRecord |
setRecordSequence(String recordSequence)
Record sequence numbers are unique and monotonically increasing (but not necessarily
contiguous) for a specific timestamp across record types in the same partition.
|
DataChangeRecord |
setServerTransactionId(String serverTransactionId)
Provides a globally unique string that represents the transaction in which the change was
committed.
|
DataChangeRecord |
setTable(String table)
Name of the table affected by the change.
|
DataChangeRecord |
setTransactionTag(String transactionTag)
Indicates the transaction tag associated with this transaction.
|
DataChangeRecord |
setValueCaptureType(String valueCaptureType)
Describes the value capture type that was specified in the change stream configuration when
this change was captured.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<ColumnMetadata> getColumnMetadata()
null
for nonepublic DataChangeRecord setColumnMetadata(List<ColumnMetadata> columnMetadata)
columnMetadata
- columnMetadata or null
for nonepublic String getCommitTimestamp()
null
for nonepublic DataChangeRecord setCommitTimestamp(String commitTimestamp)
commitTimestamp
- commitTimestamp or null
for nonepublic Boolean getIsLastRecordInTransactionInPartition()
null
for nonepublic DataChangeRecord setIsLastRecordInTransactionInPartition(Boolean isLastRecordInTransactionInPartition)
isLastRecordInTransactionInPartition
- isLastRecordInTransactionInPartition or null
for nonepublic Boolean getIsSystemTransaction()
null
for nonepublic DataChangeRecord setIsSystemTransaction(Boolean isSystemTransaction)
isSystemTransaction
- isSystemTransaction or null
for nonepublic String getModType()
null
for nonepublic DataChangeRecord setModType(String modType)
modType
- modType or null
for nonepublic List<Mod> getMods()
null
for nonepublic DataChangeRecord setMods(List<Mod> mods)
mods
- mods or null
for nonepublic Integer getNumberOfPartitionsInTransaction()
null
for nonepublic DataChangeRecord setNumberOfPartitionsInTransaction(Integer numberOfPartitionsInTransaction)
numberOfPartitionsInTransaction
- numberOfPartitionsInTransaction or null
for nonepublic Integer getNumberOfRecordsInTransaction()
null
for nonepublic DataChangeRecord setNumberOfRecordsInTransaction(Integer numberOfRecordsInTransaction)
numberOfRecordsInTransaction
- numberOfRecordsInTransaction or null
for nonepublic String getRecordSequence()
null
for nonepublic DataChangeRecord setRecordSequence(String recordSequence)
recordSequence
- recordSequence or null
for nonepublic String getServerTransactionId()
null
for nonepublic DataChangeRecord setServerTransactionId(String serverTransactionId)
serverTransactionId
- serverTransactionId or null
for nonepublic String getTable()
null
for nonepublic DataChangeRecord setTable(String table)
table
- table or null
for nonepublic String getTransactionTag()
null
for nonepublic DataChangeRecord setTransactionTag(String transactionTag)
transactionTag
- transactionTag or null
for nonepublic String getValueCaptureType()
null
for nonepublic DataChangeRecord setValueCaptureType(String valueCaptureType)
valueCaptureType
- valueCaptureType or null
for nonepublic DataChangeRecord set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public DataChangeRecord clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.