Class JsonLddLoader
java.lang.Object
gov.nasa.pds.registry.common.es.service.JsonLddLoader
Loads PDS LDD JSON file into Elasticsearch data dictionary index
- Author:
- karpenko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLoad PDS LDD JSON file into Elasticsearch data dictionary indexvoidLoad PDS LDD JSON file into Elasticsearch data dictionary indexvoidloadPds2EsDataTypeMap(File file) Load PDS to Elasticsearch data type map
-
Constructor Details
-
JsonLddLoader
Constructor- Parameters:
dao- Data dictionary data access objectconFact- instance of class gov.nasa.pds.registry.common.ConnectionFactory- Throws:
Exception- an exception
-
-
Method Details
-
loadPds2EsDataTypeMap
Load PDS to Elasticsearch data type map- Parameters:
file- configuration file- Throws:
Exception- an exception
-
load
Load PDS LDD JSON file into Elasticsearch data dictionary index- Parameters:
lddFile- PDS LDD JSON filenamespace- Namespace filter. Only load classes having this namespace.- Throws:
Exception- an exception
-
load
Load PDS LDD JSON file into Elasticsearch data dictionary index- Parameters:
lddFile- PDS LDD JSON filelddFileName- file name to store in Elasticsearch (could be different from lddFile). lddFile could point to a temporary file loaded from the Internet.namespace- Namespace filter. Only load classes having this namespace.- Throws:
Exception- an exception
-