You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/10/02 10:25:00 UTC
[jira] [Created] (KARAF-6864) Add a group processor
Jean-Baptiste Onofré created KARAF-6864:
-------------------------------------------
Summary: Add a group processor
Key: KARAF-6864
URL: https://issues.apache.org/jira/browse/KARAF-6864
Project: Karaf
Issue Type: New Feature
Components: decanter
Reporter: Jean-Baptiste Onofré
Assignee: Jean-Baptiste Onofré
Fix For: decanter-2.6.0
The user can define a set of properties and we group all events with same properties value, and send at timeout.
For instance, we can group like:
{code:java}
{'field1': "a", "field2": 'b', "field3": "c"} -> group by: a, b -> Map<Pair<a, b>, List {'field1': "a", "field2": 'b', "field3": "c"} >
if b = null -> Map<Pair<a, null>, List {'field1': "a", "field2": null, "field3": "c"} >
if a = null -> Map<Pair<null, b>, List {'field1': null, "field2": "b", "field3": "c"} >
if a = null, b = null -> Map<Pair<null, null>, List {'field1': null, "field2": null, "field3": "c"} > {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)