MarcosZyk commented on code in PR #9243:
URL: https://github.com/apache/iotdb/pull/9243#discussion_r1136445481


##########
node-commons/src/main/java/org/apache/iotdb/commons/schema/node/role/IMeasurementMNode.java:
##########
@@ -16,23 +16,21 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.iotdb.db.metadata.mnode;
+package org.apache.iotdb.commons.schema.node.role;
 
 import org.apache.iotdb.commons.path.MeasurementPath;
+import org.apache.iotdb.commons.schema.node.IMNode;
 import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
 import org.apache.iotdb.tsfile.write.schema.IMeasurementSchema;
 
 /** This interface defines a MeasurementMNode's operation interfaces. */
-public interface IMeasurementMNode extends IMNode {
-
-  @Override
-  IEntityMNode getParent();
-
-  MeasurementPath getMeasurementPath();
+public interface IMeasurementMNode<N extends IMNode<N>> extends IMNode<N> {
 
   IMeasurementSchema getSchema();
 
-  TSDataType getDataType(String measurementId);
+  void setSchema(IMeasurementSchema schema);

Review Comment:
   There seems only device node replacement. There won't be any measurement 
node replacement. Maybe we can push down the moveDataToNewMNode() to only 
InternalMNode and its subclass.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to