getChangedFieldsByPosition method

Map<int, String?> getChangedFieldsByPosition()

Returns an immutable Map containing the values for each field changed with the last server update.

The 1-based field position within the field schema or field list is used as key for the values in the map. Note that if the Subscription mode of the involved Subscription is COMMAND, then changed fields are meant as relative to the previous update for the same key. On such tables if a DELETE command is received, all the fields, excluding the key field, will be present as changed, with null value. All of this is also true on tables that have the two-level behavior enabled, but in case of DELETE commands second-level fields will not be iterated.

Returns An immutable Map containing the values for each field changed with the last server update.

Implementation

Map<int,String?> getChangedFieldsByPosition() {
  return {..._changedFieldsByPosition};
}