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 assertIsAllBindingTable() {
          assertTrue(createMaximumShardingRule().isAllBindingTables(Collections.singletonList("logic_Table")));
          assertTrue(createMaximumShardingRule().isAllBindingTables(Collections.singletonList("logic_table")));
          assertTrue(createMaximumShardingRule().isAllBindingTables(Collections.singletonList("sub_Logic_Table")));
          assertTrue(createMaximumShardingRule().isAllBindingTables(Collections.singletonList("sub_logic_table")));
          assertTrue(createMaximumShardingRule().isAllBindingTables(Arrays.asList("logic_Table", "sub_Logic_Table")));
          assertTrue(createMaximumShardingRule().isAllBindingTables(Arrays.asList("logic_table", "sub_logic_Table")));
          assertFalse(createMaximumShardingRule().isAllBindingTables(Arrays.asList("logic_table", "sub_logic_Table", "new_table")));
          assertFalse(createMaximumShardingRule().isAllBindingTables(Collections.emptyList()));
          assertFalse(createMaximumShardingRule().isAllBindingTables(Collections.singletonList("new_Table")));
      }
test_case.class_method_signature: ShardingRuleTest.assertIsAllBindingTable()
test_case.full_signature: @Test public void assertIsAllBindingTable()
test_case.identifier: assertIsAllBindingTable
test_case.invocations: assertTrue isAllBindingTables createMaximumShardingRule singletonList assertTrue isAllBindingTables createMaximumShardingRule singletonList assertTrue isAllBindingTables createMaximumShardingRule singletonList assertTrue isAllBindingTables createMaximumShardingRule singletonList assertTrue isAllBindingTables createMaximumShardingRule asList assertTrue isAllBindingTables createMaximumShardingRule asList assertFalse isAllBindingTables createMaximumShardingRule asList assertFalse isAllBindingTables createMaximumShardingRule emptyList assertFalse isAllBindingTables createMaximumShardingRule singletonList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertIsAllBindingTable()
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 boolean isAllBindingTables(final Collection<String> logicTableNames) {
          if (logicTableNames.isEmpty()) {
              return false;
          }
          Optional<BindingTableRule> bindingTableRule = findBindingTableRule(logicTableNames);
          if (!bindingTableRule.isPresent()) {
              return false;
          }
          Collection<String> result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
          result.addAll(bindingTableRule.get().getAllLogicTables());
          return !result.isEmpty() && result.containsAll(logicTableNames);
      }
focal_method.class_method_signature: ShardingRule.isAllBindingTables(final Collection<String> logicTableNames)
focal_method.full_signature: public boolean isAllBindingTables(final Collection<String> logicTableNames)
focal_method.identifier: isAllBindingTables
focal_method.invocations: isEmpty findBindingTableRule isPresent addAll getAllLogicTables get isEmpty containsAll
focal_method.modifiers: public
focal_method.parameters: (final Collection<String> logicTableNames)
focal_method.return: boolean
focal_method.signature: boolean isAllBindingTables(final Collection<String> logicTableNames)