Class EntityMNode
- java.lang.Object
-
- org.apache.iotdb.db.metadata.mnode.MNode
-
- org.apache.iotdb.db.metadata.mnode.InternalMNode
-
- org.apache.iotdb.db.metadata.mnode.EntityMNode
-
- All Implemented Interfaces:
java.io.Serializable,IEntityMNode,IMNode
- Direct Known Subclasses:
StorageGroupEntityMNode
public class EntityMNode extends InternalMNode implements IEntityMNode
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.metadata.mnode.InternalMNode
children, schemaTemplate, schemaTemplateId
-
Fields inherited from class org.apache.iotdb.db.metadata.mnode.MNode
cacheEntry, fullPath, name, parent, triggerExecutor
-
-
Constructor Summary
Constructors Constructor Description EntityMNode(IMNode parent, java.lang.String name)Constructor of MNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(MNodeVisitor<R,C> visitor, C context)booleanaddAlias(java.lang.String alias, IMeasurementMNode child)add an aliasvoiddeleteAliasChild(java.lang.String alias)delete the alias of a childjava.util.Map<java.lang.String,IMeasurementMNode>getAliasChildren()IMNodegetChild(java.lang.String name)get the child with the namejava.lang.StringgetFullPath()get full pathILastCacheContainergetLastCacheContainer(java.lang.String measurementId)MNodeTypegetMNodeType(java.lang.Boolean isConfig)java.util.Map<java.lang.String,ILastCacheContainer>getTemplateLastCaches()booleanhasChild(java.lang.String name)check whether the MNode has a child with the namebooleanisAligned()booleanisEntity()voidmoveDataToNewMNode(IMNode newMNode)voidsetAliasChildren(java.util.Map<java.lang.String,IMeasurementMNode> aliasChildren)voidsetAligned(boolean isAligned)-
Methods inherited from class org.apache.iotdb.db.metadata.mnode.InternalMNode
addChild, addChild, deleteChild, deserializeFrom, getChildren, getSchemaTemplate, getSchemaTemplateId, getUpperTemplate, isUseTemplate, replaceChild, serializeTo, setChildren, setSchemaTemplate, setSchemaTemplateId, setUseTemplate
-
Methods inherited from class org.apache.iotdb.db.metadata.mnode.MNode
equals, getAsEntityMNode, getAsMeasurementMNode, getAsStorageGroupMNode, getCacheEntry, getName, getParent, getPartialPath, getTriggerExecutor, getUpperTriggerExecutorList, hashCode, isMeasurement, isStorageGroup, setCacheEntry, setFullPath, setName, setParent, setTriggerExecutor, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.db.metadata.mnode.IEntityMNode
isUseTemplate, setUseTemplate
-
Methods inherited from interface org.apache.iotdb.db.metadata.mnode.IMNode
addChild, addChild, deleteChild, getAsEntityMNode, getAsMeasurementMNode, getAsStorageGroupMNode, getCacheEntry, getChildren, getName, getParent, getPartialPath, getSchemaTemplate, getSchemaTemplateId, getTriggerExecutor, getUpperTemplate, getUpperTriggerExecutorList, isMeasurement, isStorageGroup, replaceChild, serializeTo, setCacheEntry, setChildren, setFullPath, setName, setParent, setSchemaTemplate, setSchemaTemplateId, setTriggerExecutor
-
-
-
-
Constructor Detail
-
EntityMNode
public EntityMNode(IMNode parent, java.lang.String name)
Constructor of MNode.- Parameters:
parent-name-
-
-
Method Detail
-
getFullPath
public java.lang.String getFullPath()
Description copied from class:MNodeget full path- Specified by:
getFullPathin interfaceIMNode- Overrides:
getFullPathin classMNode
-
hasChild
public boolean hasChild(java.lang.String name)
check whether the MNode has a child with the name- Specified by:
hasChildin interfaceIMNode- Overrides:
hasChildin classInternalMNode
-
getChild
public IMNode getChild(java.lang.String name)
get the child with the name- Specified by:
getChildin interfaceIMNode- Overrides:
getChildin classInternalMNode
-
addAlias
public boolean addAlias(java.lang.String alias, IMeasurementMNode child)add an alias- Specified by:
addAliasin interfaceIEntityMNode
-
deleteAliasChild
public void deleteAliasChild(java.lang.String alias)
delete the alias of a child- Specified by:
deleteAliasChildin interfaceIEntityMNode
-
getAliasChildren
public java.util.Map<java.lang.String,IMeasurementMNode> getAliasChildren()
- Specified by:
getAliasChildrenin interfaceIEntityMNode
-
setAliasChildren
public void setAliasChildren(java.util.Map<java.lang.String,IMeasurementMNode> aliasChildren)
- Specified by:
setAliasChildrenin interfaceIEntityMNode
-
isAligned
public boolean isAligned()
- Specified by:
isAlignedin interfaceIEntityMNode
-
setAligned
public void setAligned(boolean isAligned)
- Specified by:
setAlignedin interfaceIEntityMNode
-
getLastCacheContainer
public ILastCacheContainer getLastCacheContainer(java.lang.String measurementId)
- Specified by:
getLastCacheContainerin interfaceIEntityMNode
-
getTemplateLastCaches
public java.util.Map<java.lang.String,ILastCacheContainer> getTemplateLastCaches()
- Specified by:
getTemplateLastCachesin interfaceIEntityMNode
-
moveDataToNewMNode
public void moveDataToNewMNode(IMNode newMNode)
- Specified by:
moveDataToNewMNodein interfaceIMNode- Overrides:
moveDataToNewMNodein classInternalMNode
-
isEntity
public boolean isEntity()
-
getMNodeType
public MNodeType getMNodeType(java.lang.Boolean isConfig)
- Specified by:
getMNodeTypein interfaceIMNode- Overrides:
getMNodeTypein classInternalMNode
-
accept
public <R,C> R accept(MNodeVisitor<R,C> visitor, C context)
- Specified by:
acceptin interfaceIMNode- Overrides:
acceptin classInternalMNode
-
-