use of jp.ossc.nimbus.service.interpreter.EvaluateException in project nimbus by nimbus-org.
the class DistributedSharedContextService method executeInterpretQuery.
public Object executeInterpretQuery(String query, String mergeQuery, Map variables, long timeout) throws EvaluateException, SharedContextSendException, SharedContextTimeoutException {
if (interpreter == null) {
throw new EvaluateException("Interpreter is null.");
}
List results = (List) executeInterpretQuery(query, variables, timeout);
if (mergeQuery == null || mergeQuery.length() == 0) {
return results;
}
if (variables == null) {
variables = new HashMap();
}
variables.put("results", results);
return interpreter.evaluate(mergeQuery, variables);
}
Aggregations