Skip to content

Commit

Permalink
Remove RepositoryTupleSwapper.getRuleTypeName() (#31114)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored May 4, 2024
1 parent 3723c35 commit 4b065da
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class BroadcastRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlBroadcastRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "broadcast";
}

@Override
public int getOrder() {
return BroadcastOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class EncryptRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlEncryptRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "encrypt";
}

@Override
public int getOrder() {
return EncryptOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class MaskRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlMaskRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "mask";
}

@Override
public int getOrder() {
return MaskOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class ReadwriteSplittingRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlReadwriteSplittingRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "readwrite_splitting";
}

@Override
public int getOrder() {
return ReadwriteSplittingOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class ShadowRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlShadowRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "shadow";
}

@Override
public int getOrder() {
return ShadowOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class ShardingRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlShardingRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "sharding";
}

@Override
public int getOrder() {
return ShardingOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class AuthorityRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlAuthorityRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "authority";
}

@Override
public int getOrder() {
return AuthorityOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class GlobalClockRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlGlobalClockRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "global_clock";
}

@Override
public int getOrder() {
return GlobalClockOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class LoggingRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlLoggingRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "logging";
}

@Override
public int getOrder() {
return LoggingOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class SingleRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlSingleRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "single";
}

@Override
public int getOrder() {
return SingleOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class SQLFederationRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlSQLFederationRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "sql_federation";
}

@Override
public int getOrder() {
return SQLFederationOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class SQLParserRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlSQLParserRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "sql_parser";
}

@Override
public int getOrder() {
return SQLParserOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class SQLTranslatorRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlSQLTranslatorRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "sql_translator";
}

@Override
public int getOrder() {
return SQLTranslatorOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class TrafficRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlTrafficRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "traffic";
}

@Override
public int getOrder() {
return TrafficOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
*/
public final class TransactionRuleConfigurationRepositoryTupleSwapper implements RepositoryTupleSwapper<YamlTransactionRuleConfiguration> {

@Override
public String getRuleTypeName() {
return "transaction";
}

@Override
public int getOrder() {
return TransactionOrder.ORDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,4 @@
*/
@SingletonSPI
public interface RepositoryTupleSwapper<T extends YamlRuleConfiguration> extends OrderedSPI<T> {

/**
* Get rule type name.
*
* @return rule type name
*/
String getRuleTypeName();
}

0 comments on commit 4b065da

Please sign in to comment.