java.lang.Object
org.apache.iotdb.confignode.procedure.impl.schema.SchemaUtils

public class SchemaUtils extends Object
  • Constructor Details

    • SchemaUtils

      public SchemaUtils()
  • Method Details

    • checkDataNodeTemplateActivation

      public static boolean checkDataNodeTemplateActivation(ConfigManager configManager, PathPatternTree patternTree, Template template) throws MetadataException
      Check whether the specific template is activated on the given pattern tree.
      Returns:
      true if the template is activated on the given pattern tree, false otherwise.
      Throws:
      MetadataException - if any error occurs when checking the activation.
    • checkSchemaRegionUsingTemplate

      public static void checkSchemaRegionUsingTemplate(ConfigManager configManager, List<PartialPath> deleteDatabasePatternPaths) throws MetadataException
      Check whether any template is activated on the given schema regions.
      Throws:
      MetadataException - if any error occurs when checking the activation, or there are templates under the databases.