Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReduceFieldsCombinator<K, V, I, O>

Type parameters

  • K

  • V

  • I

  • O

Hierarchy

Index

Constructors

constructor

  • new ReduceFieldsCombinator<K, V, I, O>(identity: O, accumulator: (result: O, element: V) => O, combiner: (result: O, result2: O) => O): ReduceFieldsCombinator<K, V, I, O>
  • Type parameters

    • K

    • V

    • I

    • O

    Parameters

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

          • result: O
          • element: V

          Returns O

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

          • result: O
          • result2: O

          Returns O

    Returns ReduceFieldsCombinator<K, V, I, O>

Properties

Readonly accumulator

accumulator: (result: O, element: V) => O

Type declaration

    • (result: O, element: V): O
    • Parameters

      • result: O
      • element: V

      Returns O

Readonly combiner

combiner: (result: O, result2: O) => O

Type declaration

    • (result: O, result2: O): O
    • Parameters

      • result: O
      • result2: O

      Returns O

Readonly identity

identity: O

Readonly input

input: null | MapOutlet<K, V, I>

Readonly state

state: BTree<K, V, O>

Methods

accumulate

  • accumulate(result: O, value: V): O
  • Parameters

    • result: O
    • value: V

    Returns O

bindInput

  • bindInput(newInput: MapOutlet<K, V, I>): void

bindOutput

  • bindOutput(output: Inlet<O>): void

combine

  • combine(result: O, value: O): O
  • Parameters

    • result: O
    • value: O

    Returns O

decohere

  • decohere(): void

decohereInput

  • decohereInput(): void

decohereOutput

  • decohereOutput(): void

decohereOutputKey

  • decohereOutputKey(key: K, effect: KeyEffect): void

Protected didDecohere

  • didDecohere(): void

Protected didDecohereOutputKey

  • didDecohereOutputKey(key: K, effect: KeyEffect): void

Protected didRecohere

  • didRecohere(version: number): void

Protected didRecohereOutputKey

  • didRecohereOutputKey(key: K, effect: KeyEffect, version: number): void

disconnectInputs

  • disconnectInputs(): void

disconnectOutputs

  • disconnectOutputs(): void

get

  • get(): O
  • Returns O

map

memoize

Protected onDecohere

  • onDecohere(): void

Protected onDecohereOutputKey

  • onDecohereOutputKey(key: K, effect: KeyEffect): void

Protected onRecohere

  • onRecohere(version: number): void

Protected onRecohereOutputKey

  • onRecohereOutputKey(key: K, effect: KeyEffect, version: number): void

outputIterator

recohere

  • recohere(version: number): void

recohereInput

  • recohereInput(version: number): void

recohereOutput

  • recohereOutput(version: number): void

recohereOutputKey

  • recohereOutputKey(key: K, version: number): void

unbindInput

  • unbindInput(): void

unbindOutput

  • unbindOutput(output: Inlet<O>): void

unbindOutputs

  • unbindOutputs(): void

watch

Protected willDecohere

  • willDecohere(): void

Protected willDecohereOutputKey

  • willDecohereOutputKey(key: K, effect: KeyEffect): void

Protected willRecohere

  • willRecohere(version: number): void

Protected willRecohereOutputKey

  • willRecohereOutputKey(key: K, effect: KeyEffect, version: number): void

Generated using TypeDoc