@wholebuzz/mapreduce / Exports / types / Mapper
types.Mapper
| Name |
|---|
Key |
Value |
-
Base<Key, Value>
↳ Mapper
• Optional cleanup: (context: Context<Key, Value>) => Promise<void>
▸ (context: Context<Key, Value>): Promise<void>
| Name | Type |
|---|---|
context |
Context<Key, Value> |
Returns: Promise<void>
Defined in: src/types.ts:24
• Optional configure: (config: MapReduceRuntimeConfig<Key, Value>) => void
▸ (config: MapReduceRuntimeConfig<Key, Value>): void
| Name | Type |
|---|---|
config |
MapReduceRuntimeConfig<Key, Value> |
Returns: void
Inherited from: Base.configure
Defined in: src/types.ts:22
• map: (key: Key, value: Value, context: MapContext<Key, Value>) => void | Promise<void>
▸ (key: Key, value: Value, context: MapContext<Key, Value>): void | Promise<void>
| Name | Type |
|---|---|
key |
Key |
value |
Value |
context |
MapContext<Key, Value> |
Returns: void | Promise<void>
Defined in: src/types.ts:49
• Optional setup: (context: Context<Key, Value>) => Promise<void>
▸ (context: Context<Key, Value>): Promise<void>
| Name | Type |
|---|---|
context |
Context<Key, Value> |
Returns: Promise<void>
Defined in: src/types.ts:23