pfmerge #
Merges multiple HyperLogLog data structures into an unique HyperLogLog structure stored at _id
, approximating the cardinality of the union of the source structures.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_pfmerge/<_id>
Method: POST
Body:
{
"sources": ["key1", "key2", "..."]
}
Other protocols #
{
"controller": "ms",
"action": "pfmerge",
"_id": "<key>",
"body": {
"sources": ["key1", "key2", "..."]
}
}
Argument #
_id
: hyperloglog destination key
Body properties #
sources
: an array of hyperloglog keys, used as sources for the merge
Response #
Returns an acknowledgement.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "pfmerge",
"collection": null,
"index": null,
"result": "OK"
}
Edit this page on Github(opens new window)