@wholebuzz/mapreduce / Exports / mapreduce
- getMapperImplementation
- getMatchingInputSplits
- mapReduce
- runCleanupPhase
- runMapPhaseWithExternalSorting
- runReducePhase
▸ getMapperImplementation(type?
: MapperImplementation, hasCombiner?
: boolean): function
Name | Type |
---|---|
type? |
MapperImplementation |
hasCombiner? |
boolean |
Returns: <Key, Value>(mapper
: Mapper<Key, Value>, combiner
: Reducer<Key, Value> | undefined, args
: MapReduceRuntimeConfig<Key, Value>, options
: DatabaseCopyOptions) => Promise<void>
Defined in: src/mapreduce.ts:223
▸ getMatchingInputSplits(inputSplits
: InputSplit[], outputShard
: Shard): InputSplit[]
Name | Type |
---|---|
inputSplits |
InputSplit[] |
outputShard |
Shard |
Returns: InputSplit[]
Defined in: src/mapreduce.ts:234
▸ mapReduce<Key, Value>(args
: MapReduceRuntimeConfig<Key, Value>): Promise<void>
Name |
---|
Key |
Value |
Name | Type |
---|---|
args |
MapReduceRuntimeConfig<Key, Value> |
Returns: Promise<void>
Defined in: src/mapreduce.ts:28
▸ runCleanupPhase<Key, Value>(args
: { inputShards
: number ; outputShards
: number ; runMap
: boolean ; runReduce
: boolean ; shuffleDirectory
: string ; shuffleFormat
: string }, options
: MapReduceRuntimeConfig<Key, Value>): Promise<void>
Name |
---|
Key |
Value |
Name | Type |
---|---|
args |
object |
args.inputShards |
number |
args.outputShards |
number |
args.runMap |
boolean |
args.runReduce |
boolean |
args.shuffleDirectory |
string |
args.shuffleFormat |
string |
options |
MapReduceRuntimeConfig<Key, Value> |
Returns: Promise<void>
Defined in: src/mapreduce.ts:330
▸ runMapPhaseWithExternalSorting<Key, Value>(mapper
: Mapper<Key, Value>, combiner
: Reducer<Key, Value> | undefined, args
: MapReduceRuntimeConfig<Key, Value>, options
: DatabaseCopyOptions): Promise<void>
Name |
---|
Key |
Value |
Name | Type |
---|---|
mapper |
Mapper<Key, Value> |
combiner |
Reducer<Key, Value> | undefined |
args |
MapReduceRuntimeConfig<Key, Value> |
options |
DatabaseCopyOptions |
Returns: Promise<void>
Defined in: src/mapreduce.ts:290
▸ runReducePhase<Key, Value>(reducer
: Reducer<Key, Value>, args
: MapReduceRuntimeConfig<Key, Value>, options
: DatabaseCopyOptions): Promise<void>
Name |
---|
Key |
Value |
Name | Type |
---|---|
reducer |
Reducer<Key, Value> |
args |
MapReduceRuntimeConfig<Key, Value> |
options |
DatabaseCopyOptions |
Returns: Promise<void>
Defined in: src/mapreduce.ts:263