Class MNode
- java.lang.Object
-
- org.apache.iotdb.db.metadata.mnode.MNode
-
- All Implemented Interfaces:
java.io.Serializable,IMNode
- Direct Known Subclasses:
InternalMNode,MeasurementMNode
public abstract class MNode extends java.lang.Object implements IMNode
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CacheEntrycacheEntryprotected java.lang.StringfullPathfrom root to this node, only be set when used once for InternalMNodeprotected java.lang.StringnameName of the MNodeprotected IMNodeparentprotected TriggerExecutortriggerExecutorregistered trigger
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)IEntityMNodegetAsEntityMNode()IMeasurementMNodegetAsMeasurementMNode()IStorageGroupMNodegetAsStorageGroupMNode()CacheEntrygetCacheEntry()java.lang.StringgetFullPath()get full pathjava.lang.StringgetName()IMNodegetParent()org.apache.iotdb.commons.path.PartialPathgetPartialPath()get partial path of this nodeTriggerExecutorgetTriggerExecutor()java.util.List<TriggerExecutor>getUpperTriggerExecutorList()inthashCode()booleanisEntity()booleanisMeasurement()booleanisStorageGroup()booleanisUseTemplate()voidmoveDataToNewMNode(IMNode newMNode)voidsetCacheEntry(CacheEntry cacheEntry)voidsetFullPath(java.lang.String fullPath)voidsetName(java.lang.String name)voidsetParent(IMNode parent)voidsetTriggerExecutor(TriggerExecutor triggerExecutor)java.lang.StringtoString()-
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.IMNode
accept, addChild, addChild, deleteChild, getChild, getChildren, getMNodeType, getSchemaTemplate, getSchemaTemplateId, getUpperTemplate, hasChild, replaceChild, serializeTo, setChildren, setSchemaTemplate, setSchemaTemplateId, setUseTemplate
-
-
-
-
Field Detail
-
name
protected java.lang.String name
Name of the MNode
-
parent
protected IMNode parent
-
fullPath
protected java.lang.String fullPath
from root to this node, only be set when used once for InternalMNode
-
triggerExecutor
protected TriggerExecutor triggerExecutor
registered trigger
-
cacheEntry
protected CacheEntry cacheEntry
-
-
Constructor Detail
-
MNode
public MNode(IMNode parent, java.lang.String name)
Constructor of MNode.
-
-
Method Detail
-
getPartialPath
public org.apache.iotdb.commons.path.PartialPath getPartialPath()
get partial path of this node- Specified by:
getPartialPathin interfaceIMNode- Returns:
- partial path
-
getFullPath
public java.lang.String getFullPath()
get full path- Specified by:
getFullPathin interfaceIMNode
-
setFullPath
public void setFullPath(java.lang.String fullPath)
- Specified by:
setFullPathin interfaceIMNode
-
moveDataToNewMNode
public void moveDataToNewMNode(IMNode newMNode)
- Specified by:
moveDataToNewMNodein interfaceIMNode
-
isUseTemplate
public boolean isUseTemplate()
- Specified by:
isUseTemplatein interfaceIMNode
-
isStorageGroup
public boolean isStorageGroup()
- Specified by:
isStorageGroupin interfaceIMNode
-
isMeasurement
public boolean isMeasurement()
- Specified by:
isMeasurementin interfaceIMNode
-
getAsStorageGroupMNode
public IStorageGroupMNode getAsStorageGroupMNode()
- Specified by:
getAsStorageGroupMNodein interfaceIMNode
-
getAsEntityMNode
public IEntityMNode getAsEntityMNode()
- Specified by:
getAsEntityMNodein interfaceIMNode
-
getAsMeasurementMNode
public IMeasurementMNode getAsMeasurementMNode()
- Specified by:
getAsMeasurementMNodein interfaceIMNode
-
getUpperTriggerExecutorList
public java.util.List<TriggerExecutor> getUpperTriggerExecutorList()
- Specified by:
getUpperTriggerExecutorListin interfaceIMNode
-
getTriggerExecutor
public TriggerExecutor getTriggerExecutor()
- Specified by:
getTriggerExecutorin interfaceIMNode
-
setTriggerExecutor
public void setTriggerExecutor(TriggerExecutor triggerExecutor)
- Specified by:
setTriggerExecutorin interfaceIMNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCacheEntry
public CacheEntry getCacheEntry()
- Specified by:
getCacheEntryin interfaceIMNode
-
setCacheEntry
public void setCacheEntry(CacheEntry cacheEntry)
- Specified by:
setCacheEntryin interfaceIMNode
-
-