S
- Handle typeR
- Reduce value typepublic static class ArrayOfHandles.ArrayOfReducers<S,R> extends ArrayOfHandles<ReducerHandle<S,R>> implements ReducerArrayHandle<S,R>
ArrayOfHandles.ArrayOfBroadcasts<T>, ArrayOfHandles.ArrayOfReducers<S,R>
handles
Constructor and Description |
---|
ArrayOfReducers(int count,
Int2ObjFunction<ReducerHandle<S,R>> reduceHandleFactory) |
ArrayOfReducers(int count,
Supplier<ReducerHandle<S,R>> reduceHandleFactory) |
Modifier and Type | Method and Description |
---|---|
BroadcastArrayHandle<R> |
broadcastValue(BlockMasterApi master)
Broadcast whole array of reducers to master
|
int |
getReducedSize(BlockMasterApi master)
Number of elements that were reduced.
|
get, getStaticSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getStaticSize
public ArrayOfReducers(int count, Supplier<ReducerHandle<S,R>> reduceHandleFactory)
public ArrayOfReducers(int count, Int2ObjFunction<ReducerHandle<S,R>> reduceHandleFactory)
public int getReducedSize(BlockMasterApi master)
ReducerArrayHandle
getReducedSize
in interface ReducerArrayHandle<S,R>
public BroadcastArrayHandle<R> broadcastValue(BlockMasterApi master)
ReducerArrayHandle
broadcastValue
in interface ReducerArrayHandle<S,R>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.