test_class.declarator: shardingStrategy
test_class.modifier: private
test_class.original_string: private StandardShardingStrategy shardingStrategy;
test_class.type: StandardShardingStrategy
test_class.var_name: shardingStrategy
test_class.declarator: shardingStrategyWithSimplified
test_class.modifier: private
test_class.original_string: private StandardShardingStrategy shardingStrategyWithSimplified;
test_class.type: StandardShardingStrategy
test_class.var_name: shardingStrategyWithSimplified
test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/test/java/org/apache/shardingsphere/sharding/algorithm/sharding/inline/InlineShardingAlgorithmTest.java
test_class.identifier: InlineShardingAlgorithmTest
test_case.body: @Test
      public void assertDoShardingWithRangeRouteValue() {
          List<String> availableTargetNames = Lists.newArrayList("t_order_0", "t_order_1", "t_order_2", "t_order_3");
          List<RouteValue> shardingValues = Lists.newArrayList(new RangeRouteValue<>("order_id", "t_order", mock(Range.class)));
          Collection<String> actual = shardingStrategy.doSharding(availableTargetNames, shardingValues, new ConfigurationProperties(new Properties()));
          assertTrue(actual.containsAll(availableTargetNames));
      }
test_case.class_method_signature: InlineShardingAlgorithmTest.assertDoShardingWithRangeRouteValue()
test_case.full_signature: @Test public void assertDoShardingWithRangeRouteValue()
test_case.identifier: assertDoShardingWithRangeRouteValue
test_case.invocations: newArrayList newArrayList mock doSharding assertTrue containsAll
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertDoShardingWithRangeRouteValue()
focal_class.declarator: ALGORITHM_EXPRESSION_KEY = "algorithm-expression"
focal_class.modifier: private static final
focal_class.original_string: private static final String ALGORITHM_EXPRESSION_KEY = "algorithm-expression";
focal_class.type: String
focal_class.var_name: ALGORITHM_EXPRESSION_KEY
focal_class.declarator: ALLOW_RANGE_QUERY_KEY = "allow-range-query-with-inline-sharding"
focal_class.modifier: private static final
focal_class.original_string: private static final String ALLOW_RANGE_QUERY_KEY = "allow-range-query-with-inline-sharding";
focal_class.type: String
focal_class.var_name: ALLOW_RANGE_QUERY_KEY
focal_class.declarator: allowRangeQuery
focal_class.modifier: private
focal_class.original_string: private boolean allowRangeQuery;
focal_class.type: boolean
focal_class.var_name: allowRangeQuery
focal_class.declarator: props = new Properties()
focal_class.modifier: @Getter
      @Setter
      private
focal_class.original_string: @Getter
      @Setter
      private Properties props = new Properties();
focal_class.type: Properties
focal_class.var_name: props
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/algorithm/sharding/inline/InlineShardingAlgorithm.java
focal_class.identifier: InlineShardingAlgorithm
focal_class.interfaces: implements StandardShardingAlgorithm<Comparable<?>>
focal_class.class_method_signature: InlineShardingAlgorithm.init()
focal_class.full_signature: @Override public void init()
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: InlineShardingAlgorithm.createClosure()
focal_class.full_signature: private Closure<?> createClosure()
focal_class.identifier: createClosure
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Closure<?>
focal_class.signature: Closure<?> createClosure()
focal_class.class_method_signature: InlineShardingAlgorithm.isAllowRangeQuery()
focal_class.full_signature: private boolean isAllowRangeQuery()
focal_class.identifier: isAllowRangeQuery
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAllowRangeQuery()
focal_class.class_method_signature: InlineShardingAlgorithm.doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_class.full_signature: @Override public String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_class.identifier: doSharding
focal_class.modifiers: @Override public
focal_class.parameters: (final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_class.return: String
focal_class.signature: String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_class.class_method_signature: InlineShardingAlgorithm.doSharding(final Collection<String> availableTargetNames, final RangeShardingValue<Comparable<?>> shardingValue)
focal_class.full_signature: @Override public Collection<String> doSharding(final Collection<String> availableTargetNames, final RangeShardingValue<Comparable<?>> shardingValue)
focal_class.identifier: doSharding
focal_class.modifiers: @Override public
focal_class.parameters: (final Collection<String> availableTargetNames, final RangeShardingValue<Comparable<?>> shardingValue)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> doSharding(final Collection<String> availableTargetNames, final RangeShardingValue<Comparable<?>> shardingValue)
focal_class.class_method_signature: InlineShardingAlgorithm.getType()
focal_class.full_signature: @Override public String getType()
focal_class.identifier: getType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getType()
focal_method.body: @Override
      public String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue) {
          Closure<?> closure = createClosure();
          closure.setProperty(shardingValue.getColumnName(), shardingValue.getValue());
          return closure.call().toString();
      }
focal_method.class_method_signature: InlineShardingAlgorithm.doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_method.full_signature: @Override public String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_method.identifier: doSharding
focal_method.invocations: createClosure setProperty getColumnName getValue toString call
focal_method.modifiers: @Override public
focal_method.parameters: (final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)
focal_method.return: String
focal_method.signature: String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<Comparable<?>> shardingValue)