pfmerge #
Merges multiple HyperLogLog data structures into an unique HyperLogLog structure stored at key, approximating the cardinality of the union of the source structures.
pfmerge(key, sources, [options], callback) #
| Arguments | Type | Description |
|---|---|---|
key | string | Destination key identifier |
sources | string | List of HyperLogLog source key identifiers |
options | JSON Object | Optional parameters |
callback | function | Callback |
Options #
| Option | Type | Description | Default |
|---|---|---|---|
queuable | boolean | Make this request queuable or not | true |
Callback Response #
Returns null if successful.
Usage #
String[] keys = new String[]{"key1", "key2", "..."};
kuzzle.memoryStorage.pfmerge('key', keys, new ResponseListener<Void>() {
@Override
public void onSuccess(Void v) {
// callback called once the action has completed
}
@Override
public void onError(JSONObject error) {
}
});