java.lang.Object
org.apache.iotdb.db.schemaengine.schemaregion.mtree.impl.mem.mnode.info.BasicMNodeInfo
org.apache.iotdb.confignode.persistence.schema.mnode.info.ConfigMNodeInfo

public class ConfigMNodeInfo extends BasicMNodeInfo
  • Field Details

    • schemaTemplateId

      protected int schemaTemplateId
      This field is mainly used in cluster schemaengine template features. In InternalMNode of ConfigMTree, this field represents the template set on this node. The normal usage value range is [0, Int.MaxValue], since this is implemented as auto inc id. The default value -1 means NON_TEMPLATE. This value will be set negative to implement some pre-delete features.
  • Constructor Details

    • ConfigMNodeInfo

      public ConfigMNodeInfo(String name)
  • Method Details

    • setSchemaTemplateId

      public void setSchemaTemplateId(int schemaTemplateId)
    • getSchemaTemplateId

      public int getSchemaTemplateId()
      In InternalMNode, schemaTemplateId represents the template set on this node. The pre unset mechanism is implemented by making this value negative. Since value 0 and -1 are all occupied, the available negative value range is [Int.MIN_VALUE, -2]. The value of a pre unset case equals the negative normal value minus 2. For example, if the id of set template is 0, then - 0 - 2 = -2 represents the pre unset operation of this template on this node.
    • getSchemaTemplateIdWithState

      public int getSchemaTemplateIdWithState()
    • preUnsetSchemaTemplate

      public void preUnsetSchemaTemplate()
    • rollbackUnsetSchemaTemplate

      public void rollbackUnsetSchemaTemplate()
    • isSchemaTemplatePreUnset

      public boolean isSchemaTemplatePreUnset()
    • unsetSchemaTemplate

      public void unsetSchemaTemplate()
    • estimateSize

      public int estimateSize()
      Overrides:
      estimateSize in class BasicMNodeInfo