Class MissingFieldsProcessor
java.lang.Object
gov.nasa.pds.registry.common.es.service.MissingFieldsProcessor
Process fields present in PDS4 label, but missing from Elasticsearch "registry" index.
- Author:
- karpenko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDoc(FieldMap fmap, XmlNamespaces xmlns) Loop through all fields in a PDS label and if any fields are missing from Elasticsearch "registry" schema, update the schema and data dictionary index.protected voidupdateMissingXsds(String name, XmlNamespaces xmlns)
-
Constructor Details
-
MissingFieldsProcessor
Constructor. NOTE: Init registry manager before calling this constructor- Parameters:
su- schema updaterfnc- field name cache- Throws:
Exception- an exception
-
-
Method Details
-
processDoc
Loop through all fields in a PDS label and if any fields are missing from Elasticsearch "registry" schema, update the schema and data dictionary index.- Parameters:
fmap- fields from PDS4 labelxmlns- namespaces and schema locations from PDS4 label.- Throws:
Exception- an exception
-
updateMissingXsds
-