public static AbstractDeleteDataNode deserializeFromDAL(ByteBuffer buffer) {
    short nodeType = buffer.getShort();
    switch (nodeType) {
      case 1:
        return DeleteDataNode.deserializeFromDAL(buffer);
      case 2:
        return RelationalDeleteDataNode.deserializeFromDAL(buffer);
      default:
        throw new IllegalArgumentException("Invalid node type: " + nodeType);
    }
  }
Similar to <code>PlanNodeType</code>, this class is used to provide serialization and
deserialization methods for Delete Ahead Log(DAL) which used for IoTConsensusV2 and pipe.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/DeleteNodeType.java