CosmoTech_Acceleration_Library.Modelops.core.io.model_importer¶
ModelImporter
¶
Bases: GraphHandler
Model Exporter for cached data
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_importer.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
bulk_import(twin_file_paths=[], relationship_file_paths=[], enforce_schema=False)
¶
Import all csv data
:param twin_file_paths: the file paths of all twin csv files
:param relationship_file_paths: the file paths of all relationship csv files
:param enforce_schema: True if the schema is defined within headers (default False)
Enforce_schema documentation <https://github.com/RedisGraph/redisgraph-bulk-loader#input-schemas>
_
:return: Csv files containing all twin instances exported into {export_dir} folder named by twin type
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_importer.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|