Class SchemaUtils


  • public class SchemaUtils
    extends java.lang.Object
    • Method Detail

      • validate

        public static boolean validate​(StatusListener log,
                                       Schema schema)
        Schema validation.

        Returns true if schema is valid. Otherwise, returns false and writes all errors to log.

      • validate

        public static boolean validate​(StatusListener log,
                                       Schema schema,
                                       SchemaField field)
        Schema Field validation.

        Returns true if field is valid. Otherwise, returns false and writes all errors to log.

      • deploy

        public static boolean deploy​(SchemaApi src,
                                     SchemaApi dest)
                              throws AttivioException
        Deploy schemas from src to dest.

        Returns true if any changes were deployed.

        NOTE: any schemas in dest not in src will be removed.

        Throws:
        AttivioException