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 indexvoidLoad PDS LDD JSON file into Elasticsearch data dictionary index.voidloadPds2EsDataTypeMap(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
-
loadOnly
public void loadOnly(File lddFile, String lddFileName, String namespace, Instant lastDate) throws Exception Load PDS LDD JSON file into Elasticsearch data dictionary index. Do not validate parameters. This is a low level method called by other classes / methods.- 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.lastDate- last date of an LDD for given namespace already loaded into registry- Throws:
Exception- an exception
-