@DefaultCoder(value=AvroCoder.class) public class Mod extends java.lang.Object implements java.io.Serializable
DataChangeRecord
. Each mod contains
keys, new values and old values returned as JSON strings.Constructor and Description |
---|
Mod(java.lang.String keysJson,
java.lang.String oldValuesJson,
java.lang.String newValuesJson)
Constructs a mod from the primary key values, the old state of the row and the new state of the
row.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getKeysJson()
The primary keys of this specific modification.
|
java.lang.String |
getNewValuesJson()
The new column values after the modification was applied.
|
java.lang.String |
getOldValuesJson()
The old column values before the modification was applied.
|
int |
hashCode() |
java.lang.String |
toString() |
public Mod(java.lang.String keysJson, @Nullable java.lang.String oldValuesJson, @Nullable java.lang.String newValuesJson)
keysJson
- JSON object as String, where the keys are the primary key column names and the
values are the primary key column valuesoldValuesJson
- JSON object as String, displaying the old state of the columns modified.
This JSON object can be null in the case of an INSERTnewValuesJson
- JSON object as String, displaying the new state of the columns modified.
This JSON object can be null in the case of a DELETE@Nullable public java.lang.String getOldValuesJson()
@Nullable public java.lang.String getNewValuesJson()
public java.lang.String getKeysJson()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object