You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/MTreeBelowSGMemoryImpl.java
+64-17Lines changed: 64 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,43 @@ private void applySubtreeMeasurementDelta(IMemMNode startNode, final long delta)
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/mnode/IMemMNode.java
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/mnode/basic/BasicMNode.java
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,9 @@ public class BasicMNode implements IMemMNode {
50
50
/** Cached count of measurements in this node's subtree, rebuilt on restart. */
51
51
privatelongsubtreeMeasurementCount = 0L;
52
52
53
+
/** Cached flag showing whether there is any device in the subtree below this node. */
54
+
privatebooleanhasDeviceDescendant = false;
55
+
53
56
/** from root to this node, only be set when used once for InternalMNode */
54
57
privateStringfullPath;
55
58
@@ -59,6 +62,11 @@ public BasicMNode(IMemMNode parent, String name) {
59
62
this.basicMNodeInfo = newBasicMNodeInfo(name);
60
63
}
61
64
65
+
@Override
66
+
publicBasicMNodegetBasicMNode() {
67
+
returnthis;
68
+
}
69
+
62
70
@Override
63
71
publicStringgetName() {
64
72
returnbasicMNodeInfo.getName();
@@ -113,6 +121,16 @@ public void setSubtreeMeasurementCount(final long subtreeMeasurementCount) {
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/mnode/impl/AboveDatabaseMNode.java
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,4 @@ public AboveDatabaseMNode(IMemMNode parent, String name) {
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/mnode/impl/DatabaseMNode.java
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -45,14 +45,4 @@ public IDeviceInfo<IMemMNode> getDeviceInfo() {
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/mnode/impl/MeasurementMNode.java
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,4 @@ public IMNodeContainer<IMemMNode> getChildren() {
0 commit comments