Interface RecordV2Delta.Change
- Enclosing interface:
- RecordV2Delta
public static interface RecordV2Delta.Change
Represents a single change between one record value and another.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIndicates the type of change. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the affected field.Returns the name of the affected field.key()Returns the string key representation of the affected item in the form recordName(recordIndex).fieldName(fieldIndex) or just recordName(recordIndex) in the case ofRECORDS_ADDEDorRECORDS_REMOVED.intReturns the index of the affected record.Returns the name of the affected record.type()Returns the change type.
-
Method Details
-
type
RecordV2Delta.Change.Type type()Returns the change type.- Returns:
- change type.
-
recordName
String recordName()Returns the name of the affected record.- Returns:
- record name
-
recordIndex
int recordIndex()Returns the index of the affected record.The index of the first (or only) record occurrence with the given name will be 0.
- Returns:
- record index
-
fieldName
String fieldName()Returns the name of the affected field.If type is
RECORDS_ADDEDorRECORDS_REMOVEDthen a zero length string will be returned.- Returns:
- field name
-
fieldIndex
int fieldIndex()Returns the index of the affected field.If type is
RECORDS_ADDEDorRECORDS_REMOVEDthen zero will be returned.- Returns:
- field index
-
key
String key()Returns the string key representation of the affected item in the form recordName(recordIndex).fieldName(fieldIndex) or just recordName(recordIndex) in the case ofRECORDS_ADDEDorRECORDS_REMOVED.- Returns:
- the key of the affected item
-