Function setUnion

  • Sets a union of the specified HLLs with the HLL bin value (if it exists) back into the HLL bin.

    The setUnion operation supports the following HLL Policy write flags:

    • CREATE_ONLY
    • UPDATE_ONLY
    • ALLOW_FOLD
    • NO_FAIL

    If ALLOW_FOLD is not set, all provided HLLs and the target bin (if it exists) must have matching index bits and minhash bits. If ALLOW_FOLD is set, server will union down to the minimum index bits of all provided HLLs and the target bin (if it exists). Additionally, if minhash bits differs on any HLL, the resulting union will have 0 minhash bits.

    Parameters

    • bin: string

      The name of the bin. The bin must contain an HLL value.

    • list: AerospikeBinValue[]

      List of HLL objects (of type Buffer).

    Returns HLLOperation

    Operation that can be passed to the Client#operate command.

MMNEPVFCICPMFPCPTTAAATR