Search in sources :

Example 1 with StripedThreadPoolExecutor

use of org.apache.ignite.internal.thread.StripedThreadPoolExecutor in project ignite-3 by apache.

the class AbstractExecutionTest method executionContext.

protected ExecutionContext<Object[]> executionContext(boolean withDelays) {
    if (withDelays) {
        StripedThreadPoolExecutor testExecutor = new IgniteTestStripedThreadPoolExecutor(8, NamedThreadFactory.threadPrefix("fake-test-node", "sqlTestExec"), null, false, 0);
        IgniteTestUtils.setFieldValue(taskExecutor, "stripedThreadPoolExecutor", testExecutor);
    }
    FragmentDescription fragmentDesc = new FragmentDescription(0, null, null, Long2ObjectMaps.emptyMap());
    return new ExecutionContext<>(BaseQueryContext.builder().logger(log).build(), taskExecutor, UUID.randomUUID(), "fake-test-node", "fake-test-node", 0, fragmentDesc, ArrayRowHandler.INSTANCE, ImmutableMap.of());
}
Also used : StripedThreadPoolExecutor(org.apache.ignite.internal.thread.StripedThreadPoolExecutor) ExecutionContext(org.apache.ignite.internal.sql.engine.exec.ExecutionContext) FragmentDescription(org.apache.ignite.internal.sql.engine.metadata.FragmentDescription)

Aggregations

ExecutionContext (org.apache.ignite.internal.sql.engine.exec.ExecutionContext)1 FragmentDescription (org.apache.ignite.internal.sql.engine.metadata.FragmentDescription)1 StripedThreadPoolExecutor (org.apache.ignite.internal.thread.StripedThreadPoolExecutor)1