Interface ReducedMap<K, V, U>

An [[OrderedMap]] that memoizes partial combinations of sub-elements to support efficient, incremental reduction of continuously mutating datasets.

Type Parameters

  • K

  • V

  • U

Hierarchy

Properties

[toStringTag]: string
size: number

Returns

the number of elements in the Map.

Methods

  • Returns an iterable of entries in the map.

    Returns IterableIterator<[K, V]>

  • Returns void

  • Parameters

    • key: K

    Returns boolean

    true if an element in the Map existed and has been removed, or false if the element does not exist.

  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[K, V]>

  • Returns [K, V]

  • Returns K

  • Returns V

  • Executes a provided function once per each key/value pair in the Map, in insertion order.

    Parameters

    • callbackfn: ((value, key, map) => void)
        • (value, key, map): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

  • Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

    Parameters

    • key: K

    Returns V

    Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.

  • Parameters

    • index: number

    Returns [K, V]

  • Parameters

    • key: K

    Returns boolean

    boolean indicating whether an element with the specified key exists or not.

  • Returns an iterable of keys in the map

    Returns IterableIterator<K>

  • Returns [K, V]

  • Returns K

  • Returns V

  • Parameters

    • key: K

    Returns [K, V]

  • Parameters

    • key: K

    Returns K

  • Parameters

    • key: K

    Returns V

  • Parameters

    • key: K

    Returns [K, V]

  • Parameters

    • key: K

    Returns K

  • Parameters

    • key: K

    Returns V

  • Returns the reduction of this ReducedMap, combining all contained elements with the given accumulator and combiner functions, recomputing only what has changed since the last invocation of reduced. Stores partial computations to accelerate repeated reduction of continuously mutating datasets.

    Parameters

    • identity: U
    • accumulator: ((result, element) => U)
        • (result, element): U
        • Parameters

          • result: U
          • element: V

          Returns U

    • combiner: ((result, result2) => U)
        • (result, result2): U
        • Parameters

          • result: U
          • result2: U

          Returns U

    Returns U

  • Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.

    Parameters

    • key: K
    • value: V

    Returns ReducedMap<K, V, U>

  • Returns an iterable of values in the map

    Returns IterableIterator<V>

Generated using TypeDoc