A MapSet backed by BTreeMap.

Type Parameters

  • K

Hierarchy

Constructors

  • Type Parameters

    • K

    Parameters

    • Optional order: number

      Order of the tree, which is the maximum branching factor / number of children of a node. Must be >= 2.

    • Optional compare: ((a, b) => number)

      Function that defines the sort order of keys.

        • (a, b): number
        • Function that defines the sort order of keys.

          Parameters

          • a: K
          • b: K

          Returns number

    Returns BTreeSet<K>

Properties

[asyncIterator]: (() => AsyncIterableIterator<K>)

Type declaration

    • (): AsyncIterableIterator<K>
    • Returns AsyncIterableIterator<K>

[iterator]: (() => IterableIterator<K>)

Type declaration

    • (): IterableIterator<K>
    • Returns IterableIterator<K>

[rangeQueryable]: true
codec: Codec<K, [K, K]> = ...

The codec to convert keys to map entries.

compare?: ((a, b) => number)

Type declaration

    • (a, b): number
    • Function that defines the sort order of keys.

      Parameters

      • a: K
      • b: K

      Returns number

entries: ((options?) => AsyncIterableIterator<[K, K]>)

Type declaration

    • (options?): AsyncIterableIterator<[K, K]>
    • Parameters

      Returns AsyncIterableIterator<[K, K]>

keys: ((options?) => AsyncIterableIterator<K>)

Type declaration

    • (options?): AsyncIterableIterator<K>
    • Parameters

      Returns AsyncIterableIterator<K>

map: BTreeMap<K, K>

Underlying map.

order?: number

Order of the tree, which is the maximum branching factor / number of children of a node. Must be >= 2.

values: ((options?) => AsyncIterableIterator<K>)

Type declaration

    • (options?): AsyncIterableIterator<K>
    • Parameters

      Returns AsyncIterableIterator<K>

Accessors

Methods

  • Adds or deletes given list of keys.

    Parameters

    • keys: Iterable<[key: K, isAdd?: boolean]>
    • Optional options: AbortOptions

    Returns AsyncIterableIterator<undefined | Error>

Generated using TypeDoc