G2Engine Reporting
Reporting
The Senzing engine allows the exporting of entity data in either JSON or CSV format.
exportCSVEntityReport()
and exportCSVEntityReport()
are not recommended for large systems as it does not scale. It is recommended larger systems implement real-time replication to a data warehouse.
exportCSVEntityReport
exportCSVEntityReport()
exports the entire repository content in CSV format.
exportCSVEntityReport()
is not recommended for large systems as it does not scale. It is recommended larger systems implement real-time replication to a data warehouse.
g2_engine.exportCSVEntityReport(g2_engine_flags)
Parameters
- g2_engine_flags: (int [optional]) One or more flags used to determine response document content. Applicable flags are listed here exportCSVEntityReport flags)
exportJSONEntityReport
exportJSONEntityReport()
exports the entire repository content as a JSON document.
exportJSONEntityReport()
is not recommended for large systems as it does not scale. It is recommended larger systems implement real-time replication to a data warehouse.
g2_engine.exportJSONEntityReport(g2_engine_flags)
NOTE: This method is not recommended for large systems as it does not scale. It is recommended larger systems implement real-time replication to a data warehouse.
Parameters
- g2_engine_flags: (int [optional]) One or more flags used to determine response document content. Applicable flags are listed here exportJSONEntityReport flags)
fetchNext
fetchNext()
reads the exportHandle generated by exportCSVEntityReport()
or exportJSONEntityReport()
to export a row of output containing the entity data for a single entity.
Successive calls of fetchNext()
will export successive rows of entity data until there is no more.
Parameters
- export_handle: (int) A long integer from which resolved entity data is read from and exported.
- response_bytearray: (bytearray) Object to store the output of the method.
closeExport
Parameters
- export_handle: (int) A long integer from which resolved entity data is read from and exported.