Class SchemaUtils
java.lang.Object
org.apache.iotdb.confignode.procedure.impl.schema.SchemaUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckDataNodeTemplateActivation(ConfigManager configManager, PathPatternTree patternTree, Template template) Check whether the specific template is activated on the given pattern tree.static voidcheckSchemaRegionUsingTemplate(ConfigManager configManager, List<PartialPath> deleteDatabasePatternPaths) Check whether any template is activated on the given schema regions.
-
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:
trueif the template is activated on the given pattern tree,falseotherwise.- 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.
-