Skip to content

Commit

Permalink
Add ShowGlobalRulesStatement (#29840)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Jan 24, 2024
1 parent a71c968 commit 57cf619
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package org.apache.shardingsphere.authority.distsql.statement;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show authority rule statement.
*/
public final class ShowAuthorityRuleStatement extends RQLStatement {
public final class ShowAuthorityRuleStatement extends ShowGlobalRulesStatement {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package org.apache.shardingsphere.globalclock.distsql.statement.queryable;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show global clock rule statement.
*/
public final class ShowGlobalClockRuleStatement extends RQLStatement {
public final class ShowGlobalClockRuleStatement extends ShowGlobalRulesStatement {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package org.apache.shardingsphere.sqlfederation.distsql.statement.queryable;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show SQL federation rule statement.
*/
public final class ShowSQLFederationRuleStatement extends RQLStatement {
public final class ShowSQLFederationRuleStatement extends ShowGlobalRulesStatement {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package org.apache.shardingsphere.parser.distsql.statement.queryable;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show SQL parser rule statement.
*/
public final class ShowSQLParserRuleStatement extends RQLStatement {
public final class ShowSQLParserRuleStatement extends ShowGlobalRulesStatement {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package org.apache.shardingsphere.sqltranslator.distsql.statement.queryable;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show SQL translator rule statement.
*/
public final class ShowSQLTranslatorRuleStatement extends RQLStatement {
public final class ShowSQLTranslatorRuleStatement extends ShowGlobalRulesStatement {
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show traffic rules statement.
*/
@RequiredArgsConstructor
@Getter
public final class ShowTrafficRulesStatement extends RQLStatement {
public final class ShowTrafficRulesStatement extends ShowGlobalRulesStatement {

private final String ruleName;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package org.apache.shardingsphere.transaction.distsql.statement.queryable;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;
import org.apache.shardingsphere.distsql.statement.rql.show.ShowGlobalRulesStatement;

/**
* Show transaction rule statement.
*/
public final class ShowTransactionRuleStatement extends RQLStatement {
public final class ShowTransactionRuleStatement extends ShowGlobalRulesStatement {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.shardingsphere.distsql.statement.rql.show;

import org.apache.shardingsphere.distsql.statement.rql.RQLStatement;

/**
* Show global rules statement.
*/
public abstract class ShowGlobalRulesStatement extends RQLStatement {
}

0 comments on commit 57cf619

Please sign in to comment.