Class ConfigBasicInternalMNode
java.lang.Object
org.apache.iotdb.confignode.persistence.schema.mnode.basic.ConfigBasicMNode
org.apache.iotdb.confignode.persistence.schema.mnode.impl.ConfigBasicInternalMNode
- All Implemented Interfaces:
Serializable,IMNode<IConfigMNode>,ITreeNode,IConfigMNode
This class is the implementation of Metadata Node. One MNode instance represents one node in the
Metadata Tree
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigBasicInternalMNode(IConfigMNode parent, String name) Constructor of MNode. -
Method Summary
Modifier and TypeMethodDescriptionaddChild(String name, IConfigMNode child) add a child to current mnodeaddChild(IConfigMNode child) Add a child to the current mnode.deleteChild(String name) delete a childintMNodeContainer reference and basic occupation, 8 + 80Bget the child with the namebooleancheck whether the MNode has a child with the namevoidsetChildren(IMNodeContainer<IConfigMNode> children) Methods inherited from class org.apache.iotdb.confignode.persistence.schema.mnode.basic.ConfigBasicMNode
accept, getAsDatabaseMNode, getFullPath, getName, getParent, getPartialPath, getSchemaTemplateId, isAboveDatabase, isDatabase, isSchemaTemplatePreUnset, preUnsetSchemaTemplate, rollbackUnsetSchemaTemplate, setFullPath, setName, setParent, setSchemaTemplateId, unsetSchemaTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iotdb.confignode.persistence.schema.mnode.IConfigMNode
getAsDeviceMNode, getAsInternalMNode, getAsMeasurementMNode, getDatabaseSchema, isDevice, isMeasurement, setDatabaseSchema
-
Constructor Details
-
ConfigBasicInternalMNode
Constructor of MNode.
-
-
Method Details
-
hasChild
check whether the MNode has a child with the name- Specified by:
hasChildin interfaceIMNode<IConfigMNode>- Overrides:
hasChildin classConfigBasicMNode
-
getChild
get the child with the name- Specified by:
getChildin interfaceIMNode<IConfigMNode>- Overrides:
getChildin classConfigBasicMNode
-
addChild
add a child to current mnode- Specified by:
addChildin interfaceIMNode<IConfigMNode>- Overrides:
addChildin classConfigBasicMNode- Parameters:
name- child's namechild- child's node- Returns:
- the child of this node after addChild
-
addChild
Add a child to the current mnode.This method will not take the child's name as one of the inputs and will also make this Mnode be child node's parent. All is to reduce the probability of mistaken by users and be more convenient for users to use. And the return of this method is used to conveniently construct a chain of time series for users.
- Specified by:
addChildin interfaceIMNode<IConfigMNode>- Overrides:
addChildin classConfigBasicMNode- Parameters:
child- child's node- Returns:
- return the MNode already added
-
deleteChild
delete a child- Specified by:
deleteChildin interfaceIMNode<IConfigMNode>- Overrides:
deleteChildin classConfigBasicMNode
-
getChildren
- Specified by:
getChildrenin interfaceIMNode<IConfigMNode>- Overrides:
getChildrenin classConfigBasicMNode
-
setChildren
- Specified by:
setChildrenin interfaceIMNode<IConfigMNode>- Overrides:
setChildrenin classConfigBasicMNode
-
estimateSize
public int estimateSize()MNodeContainer reference and basic occupation, 8 + 80B- Specified by:
estimateSizein interfaceIMNode<IConfigMNode>- Overrides:
estimateSizein classConfigBasicMNode
-
getMNodeType
-
getAsMNode
-