Class ConfigMNodeInfo
java.lang.Object
org.apache.iotdb.db.schemaengine.schemaregion.mtree.impl.mem.mnode.info.BasicMNodeInfo
org.apache.iotdb.confignode.persistence.schema.mnode.info.ConfigMNodeInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThis field is mainly used in cluster schemaengine template features. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintIn InternalMNode, schemaTemplateId represents the template set on this node.intbooleanvoidvoidvoidsetSchemaTemplateId(int schemaTemplateId) voidMethods inherited from class org.apache.iotdb.db.schemaengine.schemaregion.mtree.impl.mem.mnode.info.BasicMNodeInfo
getName, setName
-
Field Details
-
schemaTemplateId
protected int schemaTemplateIdThis 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
-
-
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:
estimateSizein classBasicMNodeInfo
-