private static Map<String, Object> extractMatchingBindings(String inv, SimpleBindings allBindings) { Map<String, Object> matchingBindings = new HashMap<>(); for (Map.Entry<String, Object> s : allBindings.entrySet()) { if (inv.contains(s.getKey())) { matchingBindings.put(s.getKey(), s.getValue()); } } return matchingBindings; } }
@Override public void endWindow() { serializableBindings.clear(); for (Map.Entry<String, Object> entry : scriptBindings.entrySet()) { if (serializableValue(entry.getValue())) { serializableBindings.put(entry.getKey(), entry.getValue()); } } if (!isPassThru) { result.emit(evalResult); outBindings.emit(getBindings()); } }