From f834cb5a4e7fcfa2d45d892df312cc4cc2c96f01 Mon Sep 17 00:00:00 2001 From: Caideyipi <87789683+Caideyipi@users.noreply.github.com> Date: Sat, 25 Jan 2025 15:13:03 +0800 Subject: [PATCH] Update ConfigPhysicalPlanVisitor.java --- .../request/ConfigPhysicalPlanVisitor.java | 75 ++++++++++++++----- 1 file changed, 56 insertions(+), 19 deletions(-) diff --git a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanVisitor.java b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanVisitor.java index 48759e275d8b..01c730ea79dd 100644 --- a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanVisitor.java +++ b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanVisitor.java @@ -38,7 +38,6 @@ import org.apache.iotdb.confignode.consensus.request.write.template.CreateSchemaTemplatePlan; import org.apache.iotdb.confignode.consensus.request.write.template.DropSchemaTemplatePlan; import org.apache.iotdb.confignode.consensus.request.write.template.ExtendSchemaTemplatePlan; -import sun.awt.IconInfo; public abstract class ConfigPhysicalPlanVisitor { public R process(final ConfigPhysicalPlan plan, final C context) { @@ -116,19 +115,33 @@ public R process(final ConfigPhysicalPlan plan, final C context) { case RGrantUserTBPriv: return visitRGrantUserTB((AuthorPlan) plan, context); case RGrantRoleDBPriv: + return visitRGrantRoleDB((AuthorPlan) plan, context); case RGrantRoleTBPriv: + return visitRGrantRoleTB((AuthorPlan) plan, context); case RRevokeUserAny: + return visitRRevokeUserAny((AuthorPlan) plan, context); case RRevokeRoleAny: + return visitRRevokeRoleAny((AuthorPlan) plan, context); case RRevokeUserAll: + return visitRRevokeUserAll((AuthorPlan) plan, context); case RRevokeRoleAll: + return visitRRevokeRoleAll((AuthorPlan) plan, context); case RRevokeUserDBPriv: + return visitRRevokeUserDBPrivilegePlan((AuthorPlan) plan, context); case RRevokeUserTBPriv: + return visitRRevokeUserTBPrivilege((AuthorPlan) plan, context); case RRevokeRoleDBPriv: + return visitRRevokeRoleDBPrivilege((AuthorPlan) plan, context); case RRevokeRoleTBPriv: + return visitRRevokeRoleTBPrivilege((AuthorPlan) plan, context); case RGrantUserSysPri: + return visitRGrantUserSysPrivilege((AuthorPlan) plan, context); case RGrantRoleSysPri: + return visitRGrantRoleSysPrivilege((AuthorPlan) plan, context); case RRevokeUserSysPri: + return visitRRevokeUserSysPrivilege((AuthorPlan) plan, context); case RRevokeRoleSysPri: + return visitRRevokeRoleSysPrivilege((AuthorPlan) plan, context); case SetTTL: return visitTTL((SetTTLPlan) plan, context); case PipeCreateTable: @@ -305,40 +318,64 @@ public R visitRGrantRoleDB(final AuthorPlan rGrantRoleDBPlan, final C context) { return visitPlan(rGrantRoleDBPlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRGrantRoleTB(final AuthorPlan rGrantRoleTBPlan, final C context) { + return visitPlan(rGrantRoleTBPlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeUserAny(final AuthorPlan rRevokeUserAnyPlan, final C context) { + return visitPlan(rRevokeUserAnyPlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeRoleAny(final AuthorPlan rRevokeRoleAnyPlan, final C context) { + return visitPlan(rRevokeRoleAnyPlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeUserAll(final AuthorPlan rRevokeUserAllPlan, final C context) { + return visitPlan(rRevokeUserAllPlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeRoleAll(final AuthorPlan rRevokeRoleAllPlan, final C context) { + return visitPlan(rRevokeRoleAllPlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeUserDBPrivilegePlan( + final AuthorPlan rRevokeUserDBPrivilegePlan, final C context) { + return visitPlan(rRevokeUserDBPrivilegePlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeUserTBPrivilege( + final AuthorPlan rRevokeUserTBPrivilegePlan, final C context) { + return visitPlan(rRevokeUserTBPrivilegePlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeRoleDBPrivilege( + final AuthorPlan rRevokeRoleTBPrivilegePlan, final C context) { + return visitPlan(rRevokeRoleTBPrivilegePlan, context); } - public R visitRevokeRoleFromUser(final AuthorPlan revokeRoleFromUserPlan, final C context) { - return visitPlan(revokeRoleFromUserPlan, context); + public R visitRRevokeRoleTBPrivilege( + final AuthorPlan rRevokeRoleTBPrivilegePlan, final C context) { + return visitPlan(rRevokeRoleTBPrivilegePlan, context); + } + + public R visitRGrantUserSysPrivilege( + final AuthorPlan rGrantUserSysPrivilegePlan, final C context) { + return visitPlan(rGrantUserSysPrivilegePlan, context); + } + + public R visitRGrantRoleSysPrivilege( + final AuthorPlan rGrantRoleSysPrivilegePlan, final C context) { + return visitPlan(rGrantRoleSysPrivilegePlan, context); + } + + public R visitRRevokeUserSysPrivilege( + final AuthorPlan rRevokeUserSysPrivilegePlan, final C context) { + return visitPlan(rRevokeUserSysPrivilegePlan, context); + } + + public R visitRRevokeRoleSysPrivilege( + final AuthorPlan rRevokeRoleSysPrivilegePlan, final C context) { + return visitPlan(rRevokeRoleSysPrivilegePlan, context); } public R visitTTL(final SetTTLPlan setTTLPlan, final C context) {