test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/test/java/org/apache/shardingsphere/sharding/rule/ShardingRuleTest.java
test_class.identifier: ShardingRuleTest
test_case.body: @Test
      public void assertGetTableRuleWithShardingTable() {
          TableRule actual = createMaximumShardingRule().getTableRule("Logic_Table");
          assertThat(actual.getLogicTable(), is("logic_table"));
      }
test_case.class_method_signature: ShardingRuleTest.assertGetTableRuleWithShardingTable()
test_case.full_signature: @Test public void assertGetTableRuleWithShardingTable()
test_case.identifier: assertGetTableRuleWithShardingTable
test_case.invocations: getTableRule createMaximumShardingRule assertThat getLogicTable is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetTableRuleWithShardingTable()
focal_class.declarator: dataSourceNames
focal_class.modifier: private final
focal_class.original_string: private final Collection<String> dataSourceNames;
focal_class.type: Collection<String>
focal_class.var_name: dataSourceNames
focal_class.declarator: shardingAlgorithms = new LinkedHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, ShardingAlgorithm> shardingAlgorithms = new LinkedHashMap<>();
focal_class.type: Map<String, ShardingAlgorithm>
focal_class.var_name: shardingAlgorithms
focal_class.declarator: keyGenerators = new LinkedHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, KeyGenerateAlgorithm> keyGenerators = new LinkedHashMap<>();
focal_class.type: Map<String, KeyGenerateAlgorithm>
focal_class.var_name: keyGenerators
focal_class.declarator: tableRules
focal_class.modifier: private final
focal_class.original_string: private final Collection<TableRule> tableRules;
focal_class.type: Collection<TableRule>
focal_class.var_name: tableRules
focal_class.declarator: bindingTableRules
focal_class.modifier: private final
focal_class.original_string: private final Collection<BindingTableRule> bindingTableRules;
focal_class.type: Collection<BindingTableRule>
focal_class.var_name: bindingTableRules
focal_class.declarator: broadcastTables
focal_class.modifier: private final
focal_class.original_string: private final Collection<String> broadcastTables;
focal_class.type: Collection<String>
focal_class.var_name: broadcastTables
focal_class.declarator: defaultDatabaseShardingStrategy
focal_class.modifier: private final
focal_class.original_string: private final ShardingStrategy defaultDatabaseShardingStrategy;
focal_class.type: ShardingStrategy
focal_class.var_name: defaultDatabaseShardingStrategy
focal_class.declarator: defaultTableShardingStrategy
focal_class.modifier: private final
focal_class.original_string: private final ShardingStrategy defaultTableShardingStrategy;
focal_class.type: ShardingStrategy
focal_class.var_name: defaultTableShardingStrategy
focal_class.declarator: defaultKeyGenerateAlgorithm
focal_class.modifier: private final
focal_class.original_string: private final KeyGenerateAlgorithm defaultKeyGenerateAlgorithm;
focal_class.type: KeyGenerateAlgorithm
focal_class.var_name: defaultKeyGenerateAlgorithm
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
focal_class.identifier: ShardingRule
focal_class.interfaces: implements DataNodeRoutedRule
focal_class.class_method_signature: ShardingRule.ShardingRule(final ShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.full_signature: public  ShardingRule(final ShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.identifier: ShardingRule
focal_class.modifiers: public
focal_class.parameters: (final ShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.signature:  ShardingRule(final ShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.class_method_signature: ShardingRule.ShardingRule(final AlgorithmProvidedShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.full_signature: public  ShardingRule(final AlgorithmProvidedShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.identifier: ShardingRule
focal_class.modifiers: public
focal_class.parameters: (final AlgorithmProvidedShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.signature:  ShardingRule(final AlgorithmProvidedShardingRuleConfiguration config, final Collection<String> dataSourceNames)
focal_class.class_method_signature: ShardingRule.getDataSourceNames(final Collection<ShardingTableRuleConfiguration> tableRuleConfigs, final Collection<String> dataSourceNames)
focal_class.full_signature: private Collection<String> getDataSourceNames(final Collection<ShardingTableRuleConfiguration> tableRuleConfigs, final Collection<String> dataSourceNames)
focal_class.identifier: getDataSourceNames
focal_class.modifiers: private
focal_class.parameters: (final Collection<ShardingTableRuleConfiguration> tableRuleConfigs, final Collection<String> dataSourceNames)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getDataSourceNames(final Collection<ShardingTableRuleConfiguration> tableRuleConfigs, final Collection<String> dataSourceNames)
focal_class.class_method_signature: ShardingRule.getDataSourceNames(final ShardingTableRuleConfiguration shardingTableRuleConfig)
focal_class.full_signature: private Collection<String> getDataSourceNames(final ShardingTableRuleConfiguration shardingTableRuleConfig)
focal_class.identifier: getDataSourceNames
focal_class.modifiers: private
focal_class.parameters: (final ShardingTableRuleConfiguration shardingTableRuleConfig)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getDataSourceNames(final ShardingTableRuleConfiguration shardingTableRuleConfig)
focal_class.class_method_signature: ShardingRule.createTableRules(
              final Collection<ShardingTableRuleConfiguration> tableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.full_signature: private Collection<TableRule> createTableRules(
              final Collection<ShardingTableRuleConfiguration> tableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.identifier: createTableRules
focal_class.modifiers: private
focal_class.parameters: (
              final Collection<ShardingTableRuleConfiguration> tableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.return: Collection<TableRule>
focal_class.signature: Collection<TableRule> createTableRules(
              final Collection<ShardingTableRuleConfiguration> tableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.class_method_signature: ShardingRule.createAutoTableRules(
              final Collection<ShardingAutoTableRuleConfiguration> autoTableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.full_signature: private Collection<TableRule> createAutoTableRules(
              final Collection<ShardingAutoTableRuleConfiguration> autoTableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.identifier: createAutoTableRules
focal_class.modifiers: private
focal_class.parameters: (
              final Collection<ShardingAutoTableRuleConfiguration> autoTableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.return: Collection<TableRule>
focal_class.signature: Collection<TableRule> createAutoTableRules(
              final Collection<ShardingAutoTableRuleConfiguration> autoTableRuleConfigurations, final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.class_method_signature: ShardingRule.getDefaultGenerateKeyColumn(final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.full_signature: private String getDefaultGenerateKeyColumn(final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.identifier: getDefaultGenerateKeyColumn
focal_class.modifiers: private
focal_class.parameters: (final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.return: String
focal_class.signature: String getDefaultGenerateKeyColumn(final KeyGenerateStrategyConfiguration defaultKeyGenerateStrategyConfig)
focal_class.class_method_signature: ShardingRule.createBindingTableRules(final Collection<String> bindingTableGroups)
focal_class.full_signature: private Collection<BindingTableRule> createBindingTableRules(final Collection<String> bindingTableGroups)
focal_class.identifier: createBindingTableRules
focal_class.modifiers: private
focal_class.parameters: (final Collection<String> bindingTableGroups)
focal_class.return: Collection<BindingTableRule>
focal_class.signature: Collection<BindingTableRule> createBindingTableRules(final Collection<String> bindingTableGroups)
focal_class.class_method_signature: ShardingRule.createBindingTableRule(final String bindingTableGroup)
focal_class.full_signature: private BindingTableRule createBindingTableRule(final String bindingTableGroup)
focal_class.identifier: createBindingTableRule
focal_class.modifiers: private
focal_class.parameters: (final String bindingTableGroup)
focal_class.return: BindingTableRule
focal_class.signature: BindingTableRule createBindingTableRule(final String bindingTableGroup)
focal_class.class_method_signature: ShardingRule.createDefaultShardingStrategy(final ShardingStrategyConfiguration shardingStrategyConfig)
focal_class.full_signature: private ShardingStrategy createDefaultShardingStrategy(final ShardingStrategyConfiguration shardingStrategyConfig)
focal_class.identifier: createDefaultShardingStrategy
focal_class.modifiers: private
focal_class.parameters: (final ShardingStrategyConfiguration shardingStrategyConfig)
focal_class.return: ShardingStrategy
focal_class.signature: ShardingStrategy createDefaultShardingStrategy(final ShardingStrategyConfiguration shardingStrategyConfig)
focal_class.class_method_signature: ShardingRule.findTableRule(final String logicTableName)
focal_class.full_signature: public Optional<TableRule> findTableRule(final String logicTableName)
focal_class.identifier: findTableRule
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: Optional<TableRule>
focal_class.signature: Optional<TableRule> findTableRule(final String logicTableName)
focal_class.class_method_signature: ShardingRule.findTableRuleByActualTable(final String actualTableName)
focal_class.full_signature: public Optional<TableRule> findTableRuleByActualTable(final String actualTableName)
focal_class.identifier: findTableRuleByActualTable
focal_class.modifiers: public
focal_class.parameters: (final String actualTableName)
focal_class.return: Optional<TableRule>
focal_class.signature: Optional<TableRule> findTableRuleByActualTable(final String actualTableName)
focal_class.class_method_signature: ShardingRule.getTableRule(final String logicTableName)
focal_class.full_signature: public TableRule getTableRule(final String logicTableName)
focal_class.identifier: getTableRule
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: TableRule
focal_class.signature: TableRule getTableRule(final String logicTableName)
focal_class.class_method_signature: ShardingRule.getDatabaseShardingStrategy(final TableRule tableRule)
focal_class.full_signature: public ShardingStrategy getDatabaseShardingStrategy(final TableRule tableRule)
focal_class.identifier: getDatabaseShardingStrategy
focal_class.modifiers: public
focal_class.parameters: (final TableRule tableRule)
focal_class.return: ShardingStrategy
focal_class.signature: ShardingStrategy getDatabaseShardingStrategy(final TableRule tableRule)
focal_class.class_method_signature: ShardingRule.getTableShardingStrategy(final TableRule tableRule)
focal_class.full_signature: public ShardingStrategy getTableShardingStrategy(final TableRule tableRule)
focal_class.identifier: getTableShardingStrategy
focal_class.modifiers: public
focal_class.parameters: (final TableRule tableRule)
focal_class.return: ShardingStrategy
focal_class.signature: ShardingStrategy getTableShardingStrategy(final TableRule tableRule)
focal_class.class_method_signature: ShardingRule.isAllBindingTables(final Collection<String> logicTableNames)
focal_class.full_signature: public boolean isAllBindingTables(final Collection<String> logicTableNames)
focal_class.identifier: isAllBindingTables
focal_class.modifiers: public
focal_class.parameters: (final Collection<String> logicTableNames)
focal_class.return: boolean
focal_class.signature: boolean isAllBindingTables(final Collection<String> logicTableNames)
focal_class.class_method_signature: ShardingRule.findBindingTableRule(final Collection<String> logicTableNames)
focal_class.full_signature: private Optional<BindingTableRule> findBindingTableRule(final Collection<String> logicTableNames)
focal_class.identifier: findBindingTableRule
focal_class.modifiers: private
focal_class.parameters: (final Collection<String> logicTableNames)
focal_class.return: Optional<BindingTableRule>
focal_class.signature: Optional<BindingTableRule> findBindingTableRule(final Collection<String> logicTableNames)
focal_class.class_method_signature: ShardingRule.findBindingTableRule(final String logicTableName)
focal_class.full_signature: public Optional<BindingTableRule> findBindingTableRule(final String logicTableName)
focal_class.identifier: findBindingTableRule
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: Optional<BindingTableRule>
focal_class.signature: Optional<BindingTableRule> findBindingTableRule(final String logicTableName)
focal_class.class_method_signature: ShardingRule.isAllBroadcastTables(final Collection<String> logicTableNames)
focal_class.full_signature: public boolean isAllBroadcastTables(final Collection<String> logicTableNames)
focal_class.identifier: isAllBroadcastTables
focal_class.modifiers: public
focal_class.parameters: (final Collection<String> logicTableNames)
focal_class.return: boolean
focal_class.signature: boolean isAllBroadcastTables(final Collection<String> logicTableNames)
focal_class.class_method_signature: ShardingRule.isBroadcastTable(final String logicTableName)
focal_class.full_signature: public boolean isBroadcastTable(final String logicTableName)
focal_class.identifier: isBroadcastTable
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: boolean
focal_class.signature: boolean isBroadcastTable(final String logicTableName)
focal_class.class_method_signature: ShardingRule.tableRuleExists(final Collection<String> logicTableNames)
focal_class.full_signature: public boolean tableRuleExists(final Collection<String> logicTableNames)
focal_class.identifier: tableRuleExists
focal_class.modifiers: public
focal_class.parameters: (final Collection<String> logicTableNames)
focal_class.return: boolean
focal_class.signature: boolean tableRuleExists(final Collection<String> logicTableNames)
focal_class.class_method_signature: ShardingRule.isShardingColumn(final String columnName, final String tableName)
focal_class.full_signature: public boolean isShardingColumn(final String columnName, final String tableName)
focal_class.identifier: isShardingColumn
focal_class.modifiers: public
focal_class.parameters: (final String columnName, final String tableName)
focal_class.return: boolean
focal_class.signature: boolean isShardingColumn(final String columnName, final String tableName)
focal_class.class_method_signature: ShardingRule.isShardingColumn(final TableRule tableRule, final String columnName)
focal_class.full_signature: private boolean isShardingColumn(final TableRule tableRule, final String columnName)
focal_class.identifier: isShardingColumn
focal_class.modifiers: private
focal_class.parameters: (final TableRule tableRule, final String columnName)
focal_class.return: boolean
focal_class.signature: boolean isShardingColumn(final TableRule tableRule, final String columnName)
focal_class.class_method_signature: ShardingRule.isGenerateKeyColumn(final String columnName, final String tableName)
focal_class.full_signature: public boolean isGenerateKeyColumn(final String columnName, final String tableName)
focal_class.identifier: isGenerateKeyColumn
focal_class.modifiers: public
focal_class.parameters: (final String columnName, final String tableName)
focal_class.return: boolean
focal_class.signature: boolean isGenerateKeyColumn(final String columnName, final String tableName)
focal_class.class_method_signature: ShardingRule.isGenerateKeyColumn(final TableRule tableRule, final String columnName)
focal_class.full_signature: private boolean isGenerateKeyColumn(final TableRule tableRule, final String columnName)
focal_class.identifier: isGenerateKeyColumn
focal_class.modifiers: private
focal_class.parameters: (final TableRule tableRule, final String columnName)
focal_class.return: boolean
focal_class.signature: boolean isGenerateKeyColumn(final TableRule tableRule, final String columnName)
focal_class.class_method_signature: ShardingRule.findGenerateKeyColumnName(final String logicTableName)
focal_class.full_signature: public Optional<String> findGenerateKeyColumnName(final String logicTableName)
focal_class.identifier: findGenerateKeyColumnName
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> findGenerateKeyColumnName(final String logicTableName)
focal_class.class_method_signature: ShardingRule.generateKey(final String logicTableName)
focal_class.full_signature: public Comparable<?> generateKey(final String logicTableName)
focal_class.identifier: generateKey
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: Comparable<?>
focal_class.signature: Comparable<?> generateKey(final String logicTableName)
focal_class.class_method_signature: ShardingRule.getDataNode(final String logicTableName)
focal_class.full_signature: public DataNode getDataNode(final String logicTableName)
focal_class.identifier: getDataNode
focal_class.modifiers: public
focal_class.parameters: (final String logicTableName)
focal_class.return: DataNode
focal_class.signature: DataNode getDataNode(final String logicTableName)
focal_class.class_method_signature: ShardingRule.getDataNode(final String dataSourceName, final String logicTableName)
focal_class.full_signature: public DataNode getDataNode(final String dataSourceName, final String logicTableName)
focal_class.identifier: getDataNode
focal_class.modifiers: public
focal_class.parameters: (final String dataSourceName, final String logicTableName)
focal_class.return: DataNode
focal_class.signature: DataNode getDataNode(final String dataSourceName, final String logicTableName)
focal_class.class_method_signature: ShardingRule.getShardingLogicTableNames(final Collection<String> logicTableNames)
focal_class.full_signature: public Collection<String> getShardingLogicTableNames(final Collection<String> logicTableNames)
focal_class.identifier: getShardingLogicTableNames
focal_class.modifiers: public
focal_class.parameters: (final Collection<String> logicTableNames)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getShardingLogicTableNames(final Collection<String> logicTableNames)
focal_class.class_method_signature: ShardingRule.getLogicAndActualTablesFromBindingTable(final String dataSourceName,
                                                                         final String logicTable, final String actualTable, final Collection<String> availableLogicBindingTables)
focal_class.full_signature: public Map<String, String> getLogicAndActualTablesFromBindingTable(final String dataSourceName,
                                                                         final String logicTable, final String actualTable, final Collection<String> availableLogicBindingTables)
focal_class.identifier: getLogicAndActualTablesFromBindingTable
focal_class.modifiers: public
focal_class.parameters: (final String dataSourceName,
                                                                         final String logicTable, final String actualTable, final Collection<String> availableLogicBindingTables)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getLogicAndActualTablesFromBindingTable(final String dataSourceName,
                                                                         final String logicTable, final String actualTable, final Collection<String> availableLogicBindingTables)
focal_class.class_method_signature: ShardingRule.getAllDataNodes()
focal_class.full_signature: @Override public Map<String, Collection<DataNode>> getAllDataNodes()
focal_class.identifier: getAllDataNodes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, Collection<DataNode>>
focal_class.signature: Map<String, Collection<DataNode>> getAllDataNodes()
focal_class.class_method_signature: ShardingRule.getAllActualTables()
focal_class.full_signature: @Override public Collection<String> getAllActualTables()
focal_class.identifier: getAllActualTables
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getAllActualTables()
focal_class.class_method_signature: ShardingRule.findFirstActualTable(final String logicTable)
focal_class.full_signature: @Override public Optional<String> findFirstActualTable(final String logicTable)
focal_class.identifier: findFirstActualTable
focal_class.modifiers: @Override public
focal_class.parameters: (final String logicTable)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> findFirstActualTable(final String logicTable)
focal_class.class_method_signature: ShardingRule.isNeedAccumulate(final Collection<String> tables)
focal_class.full_signature: @Override public boolean isNeedAccumulate(final Collection<String> tables)
focal_class.identifier: isNeedAccumulate
focal_class.modifiers: @Override public
focal_class.parameters: (final Collection<String> tables)
focal_class.return: boolean
focal_class.signature: boolean isNeedAccumulate(final Collection<String> tables)
focal_class.class_method_signature: ShardingRule.findLogicTableByActualTable(final String actualTable)
focal_class.full_signature: @Override public Optional<String> findLogicTableByActualTable(final String actualTable)
focal_class.identifier: findLogicTableByActualTable
focal_class.modifiers: @Override public
focal_class.parameters: (final String actualTable)
focal_class.return: Optional<String>
focal_class.signature: Optional<String> findLogicTableByActualTable(final String actualTable)
focal_method.body: public TableRule getTableRule(final String logicTableName) {
          Optional<TableRule> tableRule = findTableRule(logicTableName);
          if (tableRule.isPresent()) {
              return tableRule.get();
          }
          if (isBroadcastTable(logicTableName)) {
              return new TableRule(dataSourceNames, logicTableName);
          }
          throw new ShardingSphereConfigurationException("Cannot find table rule with logic table: '%s'", logicTableName);
      }
focal_method.class_method_signature: ShardingRule.getTableRule(final String logicTableName)
focal_method.full_signature: public TableRule getTableRule(final String logicTableName)
focal_method.identifier: getTableRule
focal_method.invocations: findTableRule isPresent get isBroadcastTable
focal_method.modifiers: public
focal_method.parameters: (final String logicTableName)
focal_method.return: TableRule
focal_method.signature: TableRule getTableRule(final String logicTableName)