Class TemplateManager


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

      • init

        public void init()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • createSchemaTemplate

        public void createSchemaTemplate​(CreateTemplatePlan plan)
                                  throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • dropSchemaTemplate

        public void dropSchemaTemplate​(DropTemplatePlan plan)
                                throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • appendSchemaTemplate

        public void appendSchemaTemplate​(AppendTemplatePlan plan)
                                  throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • pruneSchemaTemplate

        public void pruneSchemaTemplate​(PruneTemplatePlan plan)
                                 throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • getTemplateFromHash

        public Template getTemplateFromHash​(int hashcode)
                                     throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • setTemplateMap

        public void setTemplateMap​(java.util.Map<java.lang.String,​Template> templateMap)
      • getTemplateMap

        public java.util.Map<java.lang.String,​Template> getTemplateMap()
      • getAllTemplateName

        public java.util.Set<java.lang.String> getAllTemplateName()
      • checkIsTemplateCompatible

        public void checkIsTemplateCompatible​(Template template,
                                              IMNode node)
                                       throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • markSchemaRegion

        public void markSchemaRegion​(Template template,
                                     java.lang.String storageGroup,
                                     org.apache.iotdb.commons.consensus.SchemaRegionId schemaRegionId)
      • unmarkSchemaRegion

        public void unmarkSchemaRegion​(Template template,
                                       java.lang.String storageGroup,
                                       org.apache.iotdb.commons.consensus.SchemaRegionId schemaRegionId)
      • unmarkStorageGroup

        public void unmarkStorageGroup​(Template template,
                                       java.lang.String storageGroup)
      • forceLog

        public void forceLog()
      • clear

        public void clear()
                   throws java.io.IOException
        Throws:
        java.io.IOException