Skip to content

Latest commit

 

History

History
122 lines (71 loc) · 3.08 KB

types.reducer.md

File metadata and controls

122 lines (71 loc) · 3.08 KB

@wholebuzz/mapreduce / Exports / types / Reducer

Interface: Reducer<Key, Value>

types.Reducer

Type parameters

Name
Key
Value

Hierarchy

  • Base<Key, Value>

    Reducer

Implemented by

Table of contents

Properties

Properties

cleanup

Optional cleanup: (context: Context<Key, Value>) => Promise<void>

Type declaration

▸ (context: Context<Key, Value>): Promise<void>

Parameters

Name Type
context Context<Key, Value>

Returns: Promise<void>

Inherited from: Base.cleanup

Defined in: src/types.ts:24


configure

Optional configure: (config: MapReduceRuntimeConfig<Key, Value>) => void

Type declaration

▸ (config: MapReduceRuntimeConfig<Key, Value>): void

Parameters

Name Type
config MapReduceRuntimeConfig<Key, Value>

Returns: void

Inherited from: Base.configure

Defined in: src/types.ts:22


reduce

reduce: (key: Key, values: Value[], context: ReduceContext<Key, Value>) => void | Promise<void>

Type declaration

▸ (key: Key, values: Value[], context: ReduceContext<Key, Value>): void | Promise<void>

Parameters

Name Type
key Key
values Value[]
context ReduceContext<Key, Value>

Returns: void | Promise<void>

Defined in: src/types.ts:53


setup

Optional setup: (context: Context<Key, Value>) => Promise<void>

Type declaration

▸ (context: Context<Key, Value>): Promise<void>

Parameters

Name Type
context Context<Key, Value>

Returns: Promise<void>

Inherited from: Base.setup

Defined in: src/types.ts:23