public class SKeyedPartition extends BaseOperation
channel, op
Constructor and Description |
---|
SKeyedPartition(Communicator comm,
LogicalPlanBuilder logicalPlanBuilder,
MessageType keyType,
MessageType dataType,
SingularReceiver rcvr,
DestinationSelector destSelector) |
SKeyedPartition(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
MessageType keyType,
MessageType dataType,
SingularReceiver rcvr,
DestinationSelector destSelector) |
SKeyedPartition(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
MessageType keyType,
MessageType dataType,
SingularReceiver rcvr,
DestinationSelector destSelector,
int edgeId,
MessageSchema messageSchema)
Construct a Streaming Key based partition operation
|
SKeyedPartition(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> sources,
java.util.Set<java.lang.Integer> targets,
MessageType keyType,
MessageType dataType,
SingularReceiver rcvr,
DestinationSelector destSelector,
MessageSchema messageSchema) |
Modifier and Type | Method and Description |
---|---|
boolean |
partition(int src,
java.lang.Object key,
java.lang.Object message,
int flags)
Send a message to be partitioned based on the key
|
boolean |
partition(int src,
Tuple data,
int flags)
Send a message to be partitioned based on the key
|
close, finish, isComplete, progress, progressChannel, reset, sendBarrier, waitForCompletion
public SKeyedPartition(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, MessageType keyType, MessageType dataType, SingularReceiver rcvr, DestinationSelector destSelector, int edgeId, MessageSchema messageSchema)
comm
- the communicatorplan
- task plansources
- source taskstargets
- target tasksrcvr
- receiverdataType
- data typepublic SKeyedPartition(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, MessageType keyType, MessageType dataType, SingularReceiver rcvr, DestinationSelector destSelector)
public SKeyedPartition(Communicator comm, LogicalPlanBuilder logicalPlanBuilder, MessageType keyType, MessageType dataType, SingularReceiver rcvr, DestinationSelector destSelector)
public SKeyedPartition(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> sources, java.util.Set<java.lang.Integer> targets, MessageType keyType, MessageType dataType, SingularReceiver rcvr, DestinationSelector destSelector, MessageSchema messageSchema)
public boolean partition(int src, java.lang.Object key, java.lang.Object message, int flags)
src
- sourcekey
- keymessage
- messageflags
- message flagpublic boolean partition(int src, Tuple data, int flags)
src
- sourcedata
- tupleflags
- message flag