test_class.file: shardingsphere-infra/shardingsphere-infra-executor/src/test/java/org/apache/shardingsphere/infra/executor/sql/context/ExecutionContextBuilderTest.java
test_class.identifier: ExecutionContextBuilderTest
test_case.body: @Test
      public void assertBuildGenericSQLRewriteResult() {
          String sql = "sql";
          List<Object> parameters = Collections.singletonList("parameter");
          GenericSQLRewriteResult genericSQLRewriteResult = new GenericSQLRewriteResult(new SQLRewriteUnit(sql, parameters));
          DataSourcesMetaData dataSourcesMetaData = mock(DataSourcesMetaData.class);
          String firstDataSourceName = "firstDataSourceName";
          when(dataSourcesMetaData.getAllInstanceDataSourceNames()).thenReturn(Arrays.asList(firstDataSourceName, "lastDataSourceName"));
          ShardingSphereMetaData metaData = new ShardingSphereMetaData(dataSourcesMetaData, buildRuleSchemaMetaData(), mock(CachedDatabaseMetaData.class));
          Collection<ExecutionUnit> actual = ExecutionContextBuilder.build(metaData, genericSQLRewriteResult, mock(SQLStatementContext.class));
          Collection<ExecutionUnit> expected = Collections.singletonList(new ExecutionUnit(firstDataSourceName, new SQLUnit(sql, parameters)));
          assertThat(actual, is(expected));
      }
test_case.class_method_signature: ExecutionContextBuilderTest.assertBuildGenericSQLRewriteResult()
test_case.full_signature: @Test public void assertBuildGenericSQLRewriteResult()
test_case.identifier: assertBuildGenericSQLRewriteResult
test_case.invocations: singletonList mock thenReturn when getAllInstanceDataSourceNames asList buildRuleSchemaMetaData mock build mock singletonList assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuildGenericSQLRewriteResult()
focal_class.file: shardingsphere-infra/shardingsphere-infra-executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/context/ExecutionContextBuilder.java
focal_class.identifier: ExecutionContextBuilder
focal_class.class_method_signature: ExecutionContextBuilder.build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: public static Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: build
focal_class.modifiers: public static
focal_class.parameters: (final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: Collection<ExecutionUnit>
focal_class.signature: Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.build(final ShardingSphereMetaData metaData, final GenericSQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: private static Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final GenericSQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: build
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final GenericSQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: Collection<ExecutionUnit>
focal_class.signature: Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final GenericSQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.build(final ShardingSphereMetaData metaData, final RouteSQLRewriteResult sqlRewriteResult)
focal_class.full_signature: private static Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final RouteSQLRewriteResult sqlRewriteResult)
focal_class.identifier: build
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final RouteSQLRewriteResult sqlRewriteResult)
focal_class.return: Collection<ExecutionUnit>
focal_class.signature: Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final RouteSQLRewriteResult sqlRewriteResult)
focal_class.class_method_signature: ExecutionContextBuilder.getSQLRuntimeContext(final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: private static SQLRuntimeContext getSQLRuntimeContext(final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: getSQLRuntimeContext
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: SQLRuntimeContext
focal_class.signature: SQLRuntimeContext getSQLRuntimeContext(final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.getSQLRuntimeContext(final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.full_signature: private static SQLRuntimeContext getSQLRuntimeContext(final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.identifier: getSQLRuntimeContext
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.return: SQLRuntimeContext
focal_class.signature: SQLRuntimeContext getSQLRuntimeContext(final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.class_method_signature: ExecutionContextBuilder.getLogicTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: private static List<String> getLogicTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: getLogicTableNames
focal_class.modifiers: private static
focal_class.parameters: (final SQLStatementContext<?> sqlStatementContext)
focal_class.return: List<String>
focal_class.signature: List<String> getLogicTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.getLogicTableNames(final Collection<RouteMapper> tableMappers)
focal_class.full_signature: private static List<String> getLogicTableNames(final Collection<RouteMapper> tableMappers)
focal_class.identifier: getLogicTableNames
focal_class.modifiers: private static
focal_class.parameters: (final Collection<RouteMapper> tableMappers)
focal_class.return: List<String>
focal_class.signature: List<String> getLogicTableNames(final Collection<RouteMapper> tableMappers)
focal_class.class_method_signature: ExecutionContextBuilder.getActualTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: private static List<String> getActualTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: getActualTableNames
focal_class.modifiers: private static
focal_class.parameters: (final SQLStatementContext<?> sqlStatementContext)
focal_class.return: List<String>
focal_class.signature: List<String> getActualTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.getActualTableNames(final Collection<RouteMapper> tableMappers)
focal_class.full_signature: private static List<String> getActualTableNames(final Collection<RouteMapper> tableMappers)
focal_class.identifier: getActualTableNames
focal_class.modifiers: private static
focal_class.parameters: (final Collection<RouteMapper> tableMappers)
focal_class.return: List<String>
focal_class.signature: List<String> getActualTableNames(final Collection<RouteMapper> tableMappers)
focal_class.class_method_signature: ExecutionContextBuilder.getGenericTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: private static List<String> getGenericTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: getGenericTableNames
focal_class.modifiers: private static
focal_class.parameters: (final SQLStatementContext<?> sqlStatementContext)
focal_class.return: List<String>
focal_class.signature: List<String> getGenericTableNames(final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: private static List<PrimaryKeyMetaData> getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: getPrimaryKeyColumns
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.return: List<PrimaryKeyMetaData>
focal_class.signature: List<PrimaryKeyMetaData> getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final SQLStatementContext<?> sqlStatementContext)
focal_class.class_method_signature: ExecutionContextBuilder.getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.full_signature: private static List<PrimaryKeyMetaData> getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.identifier: getPrimaryKeyColumns
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.return: List<PrimaryKeyMetaData>
focal_class.signature: List<PrimaryKeyMetaData> getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final Collection<RouteMapper> tableMappers)
focal_class.class_method_signature: ExecutionContextBuilder.getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final List<String> actualTableNames)
focal_class.full_signature: private static List<PrimaryKeyMetaData> getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final List<String> actualTableNames)
focal_class.identifier: getPrimaryKeyColumns
focal_class.modifiers: private static
focal_class.parameters: (final ShardingSphereMetaData metaData, final List<String> actualTableNames)
focal_class.return: List<PrimaryKeyMetaData>
focal_class.signature: List<PrimaryKeyMetaData> getPrimaryKeyColumns(final ShardingSphereMetaData metaData, final List<String> actualTableNames)
focal_method.body: public static Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext) {
          return sqlRewriteResult instanceof GenericSQLRewriteResult ? build(metaData, (GenericSQLRewriteResult) sqlRewriteResult, sqlStatementContext)
                  : build(metaData, (RouteSQLRewriteResult) sqlRewriteResult);
      }
focal_method.class_method_signature: ExecutionContextBuilder.build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_method.full_signature: public static Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_method.identifier: build
focal_method.invocations: build build
focal_method.modifiers: public static
focal_method.parameters: (final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)
focal_method.return: Collection<ExecutionUnit>
focal_method.signature: Collection<ExecutionUnit> build(final ShardingSphereMetaData metaData, final SQLRewriteResult sqlRewriteResult, final SQLStatementContext<?> sqlStatementContext)