public class SKeyedReduce extends BaseOperation
channel, op
Constructor and Description |
---|
SKeyedReduce(Communicator comm,
LogicalPlanBuilder logicalPlanBuilder,
MessageType kType,
MessageType dType,
ReduceFunction fnc,
SingularReceiver rcvr,
DestinationSelector destSelector) |
SKeyedReduce(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
MessageType kType,
MessageType dType,
ReduceFunction fnc,
SingularReceiver rcvr,
DestinationSelector destSelector) |
SKeyedReduce(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
MessageType kType,
MessageType dType,
ReduceFunction fnc,
SingularReceiver rcvr,
DestinationSelector destSelector,
int edgeId,
MessageSchema messageSchema)
Construct a Streaming Key based partition operation
|
SKeyedReduce(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
MessageType kType,
MessageType dType,
ReduceFunction fnc,
SingularReceiver rcvr,
DestinationSelector destSelector,
MessageSchema messageSchema) |
Modifier and Type | Method and Description |
---|---|
boolean |
reduce(int src,
java.lang.Object key,
java.lang.Object message,
int flags)
Send a message to be reduced
|
boolean |
reduce(int src,
Tuple data,
int flags)
Send a message to be reduced
|
close, finish, isComplete, progress, progressChannel, reset, sendBarrier, waitForCompletion
public SKeyedReduce(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, MessageType kType, MessageType dType, ReduceFunction fnc, SingularReceiver rcvr, DestinationSelector destSelector, int edgeId, MessageSchema messageSchema)
comm
- the communicatorplan
- task plansources
- source taskstargets
- target tasksdType
- data typekType
- key typefnc
- reduce functionrcvr
- receiverdestSelector
- destination selectorpublic SKeyedReduce(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, MessageType kType, MessageType dType, ReduceFunction fnc, SingularReceiver rcvr, DestinationSelector destSelector)
public SKeyedReduce(Communicator comm, LogicalPlanBuilder logicalPlanBuilder, MessageType kType, MessageType dType, ReduceFunction fnc, SingularReceiver rcvr, DestinationSelector destSelector)
public SKeyedReduce(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, MessageType kType, MessageType dType, ReduceFunction fnc, SingularReceiver rcvr, DestinationSelector destSelector, MessageSchema messageSchema)
public boolean reduce(int src, java.lang.Object key, java.lang.Object message, int flags)
src
- sourcekey
- keymessage
- messageflags
- message flagpublic boolean reduce(int src, Tuple data, int flags)
src
- sourcedata
- tupleflags
- message flag