use of com.hazelcast.spi.properties.HazelcastProperties in project hazelcast by hazelcast.
the class QueryBasicTest method testPredicatedEvaluatedSingleThreadedByDefault.
@Test
public void testPredicatedEvaluatedSingleThreadedByDefault() {
Config config = getConfig();
HazelcastProperties properties = new HazelcastProperties(config);
boolean parallelEvaluation = properties.getBoolean(GroupProperty.QUERY_PREDICATE_PARALLEL_EVALUATION);
assertEquals(false, parallelEvaluation);
}
use of com.hazelcast.spi.properties.HazelcastProperties in project hazelcast by hazelcast.
the class QueryOptimizerFactoryTest method newOptimizer_whenPropertyContainsRule_thenCreateRulesBasedOptimizer.
@Test
public void newOptimizer_whenPropertyContainsRule_thenCreateRulesBasedOptimizer() {
HazelcastProperties hazelcastProperties = createMockHazelcastProperties(QUERY_OPTIMIZER_TYPE, "RULES");
QueryOptimizer queryOptimizer = QueryOptimizerFactory.newOptimizer(hazelcastProperties);
assertThat(queryOptimizer, instanceOf(RuleBasedQueryOptimizer.class));
}
use of com.hazelcast.spi.properties.HazelcastProperties in project hazelcast by hazelcast.
the class QueryOptimizerFactoryTest method newOptimizer_whenPropertyContainsNone_thenCreateEmptyOptimizer.
@Test
public void newOptimizer_whenPropertyContainsNone_thenCreateEmptyOptimizer() {
HazelcastProperties hazelcastProperties = createMockHazelcastProperties(QUERY_OPTIMIZER_TYPE, "NONE");
QueryOptimizer queryOptimizer = QueryOptimizerFactory.newOptimizer(hazelcastProperties);
assertThat(queryOptimizer, instanceOf(EmptyOptimizer.class));
}
use of com.hazelcast.spi.properties.HazelcastProperties in project hazelcast by hazelcast.
the class OperationExecutorImpl_AbstractTest method initExecutor.
protected OperationExecutorImpl initExecutor() {
props = new HazelcastProperties(config);
executor = new OperationExecutorImpl(props, loggingService, thisAddress, handlerFactory, threadGroup, nodeExtension);
executor.start();
return executor;
}
Aggregations