Qianyi951015 commented on code in PR #23879:
URL: https://github.com/apache/shardingsphere/pull/23879#discussion_r1092199736
##########
proxy/backend/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/queryable/ShowComputeNodeModeExecutor.java:
##########
@@ -18,37 +18,28 @@
package org.apache.shardingsphere.proxy.backend.handler.distsql.ral.queryable;
import com.google.gson.Gson;
+import
org.apache.shardingsphere.distsql.handler.ral.query.InstanceContextRequiredQueryableRALExecutor;
import
org.apache.shardingsphere.distsql.parser.statement.ral.queryable.ShowComputeNodeModeStatement;
import
org.apache.shardingsphere.infra.config.mode.PersistRepositoryConfiguration;
import org.apache.shardingsphere.infra.instance.InstanceContext;
import
org.apache.shardingsphere.infra.merge.result.impl.local.LocalDataQueryResultRow;
-import org.apache.shardingsphere.mode.manager.ContextManager;
-import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
-import
org.apache.shardingsphere.proxy.backend.handler.distsql.ral.AbstractQueryableRALBackendHandler;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
/**
- * Show compute node mode handler.
+ * Show compute node mode executor.
*/
-public final class ShowComputeNodeModeHandler extends
AbstractQueryableRALBackendHandler<ShowComputeNodeModeStatement> {
-
- private static final String TYPE = "type";
-
- private static final String REPOSITORY = "repository";
-
- private static final String PROPS = "props";
+public final class ShowComputeNodeModeExecutor implements
InstanceContextRequiredQueryableRALExecutor<ShowComputeNodeModeStatement> {
Review Comment:
got it
--
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]