Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

pfmerge #

Merges multiple HyperLogLog data structures into an unique HyperLogLog structure stored at _id, approximating the cardinality of the union of the source structures.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_pfmerge/<_id>
Method: POST
Body:
Copied to clipboard!
{
  "sources": ["key1", "key2", "..."]
}

Other protocols #

Copied to clipboard!
{
  "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.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "pfmerge",
  "collection": null,
  "index": null,
  "result": "OK"
}