Class ConfigBasicMNode
java.lang.Object
org.apache.iotdb.confignode.persistence.schema.mnode.basic.ConfigBasicMNode
- All Implemented Interfaces:
Serializable,IMNode<IConfigMNode>,ITreeNode,IConfigMNode
- Direct Known Subclasses:
ConfigBasicInternalMNode
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,C> R accept(MNodeVisitor<R, C> visitor, C context) addChild(String name, IConfigMNode child) add a child to current mnodeaddChild(IConfigMNode child) Add a child to the current mnode.deleteChild(String name) delete a childintThe basic memory occupied by any ConfigBasicMNode object object header, 8B node attributes basicMNodeInfo reference, 8B parent reference, 8B fullPath reference, 8B MapEntry in parent key reference, 8B value reference, 8B entry size, see ConcurrentHashMap.Node, 28get the child with the namegetName()intbooleancheck whether the MNode has a child with the namebooleanbooleanbooleanvoidvoidvoidsetChildren(IMNodeContainer<IConfigMNode> children) voidsetFullPath(String fullPath) voidvoidsetParent(IConfigMNode parent) voidsetSchemaTemplateId(int id) voidMethods 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, setDatabaseSchemaMethods inherited from interface org.apache.iotdb.commons.schema.node.IMNode
getAsMNode, getMNodeType
-
Constructor Details
-
ConfigBasicMNode
Constructor of MNode.
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceIMNode<IConfigMNode>- Specified by:
getNamein interfaceITreeNode
-
setName
- Specified by:
setNamein interfaceIMNode<IConfigMNode>
-
getParent
- Specified by:
getParentin interfaceIMNode<IConfigMNode>
-
setParent
- Specified by:
setParentin interfaceIMNode<IConfigMNode>
-
getFullPath
- Specified by:
getFullPathin interfaceIMNode<IConfigMNode>
-
setFullPath
- Specified by:
setFullPathin interfaceIMNode<IConfigMNode>
-
getPartialPath
- Specified by:
getPartialPathin interfaceIMNode<IConfigMNode>
-
hasChild
check whether the MNode has a child with the name- Specified by:
hasChildin interfaceIMNode<IConfigMNode>
-
getChild
get the child with the name- Specified by:
getChildin interfaceIMNode<IConfigMNode>
-
addChild
add a child to current mnode- Specified by:
addChildin interfaceIMNode<IConfigMNode>- 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>- Parameters:
child- child's node- Returns:
- return the MNode already added
-
deleteChild
delete a child- Specified by:
deleteChildin interfaceIMNode<IConfigMNode>
-
getChildren
- Specified by:
getChildrenin interfaceIMNode<IConfigMNode>
-
setChildren
- Specified by:
setChildrenin interfaceIMNode<IConfigMNode>
-
isAboveDatabase
public boolean isAboveDatabase()- Specified by:
isAboveDatabasein interfaceIMNode<IConfigMNode>
-
isDatabase
public boolean isDatabase()- Specified by:
isDatabasein interfaceIMNode<IConfigMNode>
-
getAsDatabaseMNode
- Specified by:
getAsDatabaseMNodein interfaceIMNode<IConfigMNode>
-
accept
- Specified by:
acceptin interfaceIMNode<IConfigMNode>
-
setSchemaTemplateId
public void setSchemaTemplateId(int id) - Specified by:
setSchemaTemplateIdin interfaceIConfigMNode
-
getSchemaTemplateId
public int getSchemaTemplateId()- Specified by:
getSchemaTemplateIdin interfaceIConfigMNode
-
preUnsetSchemaTemplate
public void preUnsetSchemaTemplate()- Specified by:
preUnsetSchemaTemplatein interfaceIConfigMNode
-
rollbackUnsetSchemaTemplate
public void rollbackUnsetSchemaTemplate()- Specified by:
rollbackUnsetSchemaTemplatein interfaceIConfigMNode
-
isSchemaTemplatePreUnset
public boolean isSchemaTemplatePreUnset()- Specified by:
isSchemaTemplatePreUnsetin interfaceIConfigMNode
-
unsetSchemaTemplate
public void unsetSchemaTemplate()- Specified by:
unsetSchemaTemplatein interfaceIConfigMNode
-
estimateSize
public int estimateSize()The basic memory occupied by any ConfigBasicMNode object- object header, 8B
- node attributes
- basicMNodeInfo reference, 8B
- parent reference, 8B
- fullPath reference, 8B
- MapEntry in parent
- key reference, 8B
- value reference, 8B
- entry size, see ConcurrentHashMap.Node, 28
- Specified by:
estimateSizein interfaceIMNode<IConfigMNode>
-