G2Engine Redo Processing

Version 3.x Version 2.x

Redo Processing

Redo records are automatically created when certain conditions occur during entity resolution where additional processing is required. The most common reasons are:

  • A feature value becomes generic and previous decisions need to be revisited
  • Clean up after some record deletes
  • Detected related entities were being changed at the same time
  • A table inconsistency exists, potentially after a non-graceful shutdown

countRedoRecords

countRedoRecords() returns the integer count of the remaining internally queued redo records in the Senzing repository.

g2_engine.countRedoRecords()
Click to expand `countRedoRecords()` example

getRedoRecord

getRedoRecord() retrieves the next internally queued redo record into the Senzing repository.

Unlike processRedoRecord(), getRedoRecord() does not actually process the record. To process the record, use process()

g2_engine.getRedoRecord(response_bytearray)
Parameters
  • response_bytearray: (bytearray) Object to store the output of the method.
Click to expand `getRedoRecord()` example

process

process() processes the redo record retrieved using getRedoRecord().

g2_engine.process(response_bytearray)
Parameters
  • response_bytearray: (bytearray) the redo record obtained by getRedoRecord() to process.
Click to expand `process()` example

processWithInfo

processWithInfo() processes the redo record retrieved using getRedoRecord(), and returns a JSON document containing the ENTITY_ID values of the affected entities.

g2_engine.processWithInfo(response_bytearray, process_response_bytearray)
Parameters
  • response_bytearray: (bytearray) the redo record obtained by getRedoRecord() to process.
  • process_response_bytearray: (bytearray) Object to store the output of the method.
Click to expand `processWithInfo()` example

processRedoRecord

processRedoRecordWithInfo() processes the next redo record in the redo queue. If processRedoRecord() returns a blank response_bytearray, then the redo queue is empty at the point of execution. Additional redo records can be created after reevaluation.

g2_engine.processRedoRecord(response_bytearray)
Parameters
  • response_bytearray: (bytearray) Object to store the output of the method.
Click to expand `processRedoRecord()` example

processRedoRecordWithInfo

processRedoRecordWithInfo() processes the next redo record in the redo queue, and returns a JSON document containing the ENTITY_ID values of the affected entities.

g2_engine.processRedoRecordWithInfo(response_bytearray, with_info_bytearray)
Parameters
  • response_bytearray: (bytearray) Object to store the output of the method.
  • info_bytearray: (bytearray) Returns the “withInfo” section
Click to expand `processRedoRecordWithInfo()` example