@Override public void flatMap(List<Object> input, Collector<Tuple2<String, AggregateEntity>> collector) { if (input.size() != 3) throw new IllegalStateException("AggregateExecutor always consumes exactly 3 fields: key, stream name and value(SortedMap)"); if (LOG.isDebugEnabled()) LOG.debug("Msg is coming " + input.get(2)); if (LOG.isDebugEnabled()) LOG.debug("Current policyEvaluators: " + evaluator); try { evaluator.evaluate(new ValuesArray(collector, input.get(1), input.get(2))); } catch (Exception ex) { LOG.error("Got an exception, but continue to run " + input.get(2).toString(), ex); } }
updateCounter(EAGLE_POLICY_EVAL_COUNT, getDimensions(policyId)); try { evaluator.evaluate(new ValuesArray(outputCollector, input.get(1), input.get(2))); } catch (Exception ex) { LOG.error("Got an exception, but continue to run " + input.get(2).toString(), ex);