Class MissingFieldsProcessor

java.lang.Object
gov.nasa.pds.registry.common.es.service.MissingFieldsProcessor

public class MissingFieldsProcessor extends Object
Process fields present in PDS4 label, but missing from Elasticsearch "registry" index.
Author:
karpenko
  • Constructor Details

    • MissingFieldsProcessor

      public MissingFieldsProcessor(SchemaUpdater su, FieldNameCache fnc) throws Exception
      Constructor. NOTE: Init registry manager before calling this constructor
      Parameters:
      su - schema updater
      fnc - field name cache
      Throws:
      Exception - an exception
  • Method Details

    • processDoc

      public void processDoc(FieldMap fmap, XmlNamespaces xmlns) throws Exception
      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 label
      xmlns - namespaces and schema locations from PDS4 label.
      Throws:
      Exception - an exception
    • updateMissingXsds

      protected void updateMissingXsds(String name, XmlNamespaces xmlns)