Class SchemaUpdater

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

public class SchemaUpdater extends Object
Update Elasticsearch schema and LDDs
Author:
karpenko
  • Constructor Details

  • Method Details

    • setForceLoad

      public void setForceLoad(boolean forceLoad)
    • updateSchema

      public void updateSchema(Set<String> fields, Map<String,String> xsds) throws Exception
      Update Elasticsearch schema
      Parameters:
      fields - fields to add
      xsds - XSDs of fields to add
      Throws:
      Exception - an exception
    • createLddTempFile

      public static File createLddTempFile(String prefix) throws LddException
      Creates a temp file for LDD download. Tries POSIX permissions first (rw-------); falls back to a plain temp file on non-POSIX filesystems (e.g. Windows NTFS) that throw UnsupportedOperationException or IOException when POSIX attributes are applied.
      Throws:
      LddException