Class MNodeUtils
- java.lang.Object
-
- org.apache.iotdb.db.metadata.mnode.MNodeUtils
-
public class MNodeUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MNodeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IEntityMNodesetToEntity(IMNode node)When a measurement, represented by template or MeasurementMNode, is going to be added to a node, the node should be set to entity.static IMNodesetToInternal(IEntityMNode entityMNode)When there's no measurement, represented by template or MeasurementMNode, is under this entityMNode, it should not act as entity anymore.
-
-
-
Method Detail
-
setToEntity
public static IEntityMNode setToEntity(IMNode node)
When a measurement, represented by template or MeasurementMNode, is going to be added to a node, the node should be set to entity. Before invoking this method, lock the related MTree part first.- Parameters:
node- node to be transformed- Returns:
- generated entityMNode
-
setToInternal
public static IMNode setToInternal(IEntityMNode entityMNode)
When there's no measurement, represented by template or MeasurementMNode, is under this entityMNode, it should not act as entity anymore. Before invoking this method, lock related MTree structure first.- Parameters:
entityMNode- node to be transformed- Returns:
- generated NoEntity node
-
-