Github user nickwallen commented on the issue:
https://github.com/apache/incubator-metron/pull/397
I was thinking how I could use your HLLP functionality with the Profiler.
I think I could use this functionality to track the in-degree and out-degree of
a host over time. This might be an interesting motivating example.
For example, calculating the in-degree would look like the following.
```
{
"profile": "in-degree",
"onlyif": "source.type == 'yaf'"
"foreach": "ip_dst_addr",
"init": {
"in": "HLLP_INIT(5, 6)"
}
"update": {
"in": "HLLP_ADD(in, ip_src_addr)"
}
"result": {
"HLLP_CARDINALITY(in)"
}
}
```
Calculating the out-degree would look like this.
```
{
"profile": "out-degree",
"onlyif": "source.type == 'yaf'"
"foreach": "ip_src_addr",
"init": {
"out": "HLLP_INIT(5, 6)"
}
"update": {
"out": "HLLP_ADD(out, ip_dst_addr)"
}
"result": {
"HLLP_CARDINALITY(out)"
}
}
```
Of course, with your `HLLP_MERGE` it might be more interesting to store the
HLLP object itself and call `HLLP_CARDINALITY` after-the-fact, but I just want
to make sure I'm using the API correctly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---