G2Engine Adding
Adding Records
addRecord
addRecord()
loads a record into the Senzing repository. Can be called as many times as desired and from multiple threads at the same time.
g2_engine.addRecord(datasource_code, record_id, data_as_json, load_id)
Parameters
- datasource_code: (str) The configured data source for the record.
- record_id: (str) The RECORD_ID for the record.
- data_as_json: (str) A JSON document with the attribute data for the record.
- load_id: (str [optional] ) the observation load ID for the record. The value can be null.
addRecordWithInfo
addRecordWithInfo
loads a record into the Senzing repository, and returns a JSON document containing the ENTITY_ID values of the affected entities.
g2_engine.addRecordWithInfo(datasource_code, record_id, data_as_json, response_bytearray, load_id)
Parameters
- datasource_code: (str) The configured data source for the record.
- record_id: (str) The RECORD_ID for the record.
- data_as_json: (str) A JSON document with the attribute data for the record.
- response_bytearray: (bytearray) Object to store the output of the method.
- load_id: (str [optional] ) the observation load ID for the record. The value can be null.
addRecordWithReturnedRecordID
addRecordWithReturnedRecordID()
loads a record into the Senzing repository without a record_id parameter, and returns the RECORD_ID of the loaded record.
While the record is not loaded using a record_id parameter, a RECORD_ID can be included in the JSON.
g2_engine.addRecordWithReturnedRecordID(datasource_code, record_id, data_as_json, response_bytearray, load_id)
Parameters
- datasource_code: (str) The configured data source for the record.
- record_id: (bytearray) Object to store the output of the method.
- data_as_json: (str) A JSON document with the attribute data for the record
- load_id: (str [optional] ) the observation load ID for the record. The value can be null.
addRecordWithInfoWithReturnedRecordID
addRecordWithInfoWithReturnedRecordID()
loads a record into the Senzing repository without a record_id parameter, and returns the RECORD_ID of the loaded record and a JSON document containing The RECORD_ID and the ENTITY_IDs of the affected entities.
While the record is not loaded using a record_id parameter, a RECORD_ID can be included in the JSON.
g2_engine.addRecordWithInfoWithReturnedRecordID(datasource_code, data_as_json, response_bytearray, record_id, load_id)
Parameters
- datasource_code: (str) The configured data source for the record.
- data_as_json: (str) A JSON document with the attribute data for the record
- response_bytearray: (bytearray) Object to store the output of the method.
- record_id: (bytearray) Object to store the output of the method.
- load_id: (str [optional] ) the observation load ID for the record. The value can be null.
Replacing Records
replaceRecord
Currently a placeholder. Identical to to addRecord()
replaceRecordWithInfo
Currently a placeholder. Identical to to addrecordwithinfo()