public class BJoin extends BaseOperation
op| Constructor and Description |
|---|
BJoin(Communicator comm,
LogicalPlanBuilder logicalPlanBuilder,
MessageType keyType,
MessageType leftDataType,
MessageType rightDataType,
BulkReceiver rcvr,
DestinationSelector destSelector,
boolean shuffle,
java.util.Comparator<java.lang.Object> comparator,
CommunicationContext.JoinType joinType,
CommunicationContext.JoinAlgorithm joinAlgorithm) |
BJoin(Communicator comm,
LogicalPlanBuilder logicalPlanBuilder,
java.util.Set<java.lang.Integer> leftSources,
java.util.Set<java.lang.Integer> rightSource,
MessageType keyType,
MessageType leftDataType,
MessageType rightDataType,
BulkReceiver rcvr,
DestinationSelector destSelector,
boolean shuffle,
java.util.Comparator<java.lang.Object> comparator,
CommunicationContext.JoinType joinType,
CommunicationContext.JoinAlgorithm joinAlgorithm) |
BJoin(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> leftSources,
java.util.Set<java.lang.Integer> rightSources,
java.util.Set<java.lang.Integer> targets,
MessageType keyType,
MessageType leftDataType,
MessageType rightDataType,
BulkReceiver rcvr,
DestinationSelector destSelector,
boolean shuffle,
java.util.Comparator<java.lang.Object> comparator,
CommunicationContext.JoinType joinType,
CommunicationContext.JoinAlgorithm joinAlgorithm) |
BJoin(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> leftSources,
java.util.Set<java.lang.Integer> rightSources,
java.util.Set<java.lang.Integer> targets,
MessageType keyType,
MessageType leftDataType,
MessageType rightDataType,
BulkReceiver rcvr,
DestinationSelector destSelector,
boolean shuffle,
java.util.Comparator<java.lang.Object> comparator,
CommunicationContext.JoinType joinType,
CommunicationContext.JoinAlgorithm joinAlgorithm,
MessageSchema leftSchema,
MessageSchema rightSchema) |
BJoin(Communicator comm,
LogicalPlan plan,
java.util.Set<java.lang.Integer> leftSources,
java.util.Set<java.lang.Integer> rightSources,
java.util.Set<java.lang.Integer> targets,
MessageType keyType,
MessageType leftDataType,
MessageType rightDataType,
BulkReceiver rcvr,
DestinationSelector destSelector,
boolean useDisk,
java.util.Comparator<java.lang.Object> comparator,
int leftEdgeId,
int rightEdgeId,
CommunicationContext.JoinType joinType,
CommunicationContext.JoinAlgorithm joinAlgorithm,
MessageSchema leftSchema,
MessageSchema rightSchema)
Construct a Batch partition operation
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish(int source)
Indicate the end of the communication for a given tag value
|
boolean |
isComplete()
Weather we have messages pending
|
boolean |
join(int source,
java.lang.Object key,
java.lang.Object data,
int flags,
int tag)
Send a data to be partitioned
|
boolean |
progress()
Progress the operation, if not called, messages will not be processed
|
boolean |
progressChannel()
Progress the channel and the operation
|
void |
reset()
Clean the operation, this doesn't close it
|
boolean |
sendBarrier(int src,
byte[] barrierId) |
waitForCompletionpublic BJoin(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> leftSources, java.util.Set<java.lang.Integer> rightSources, java.util.Set<java.lang.Integer> targets, MessageType keyType, MessageType leftDataType, MessageType rightDataType, BulkReceiver rcvr, DestinationSelector destSelector, boolean useDisk, java.util.Comparator<java.lang.Object> comparator, int leftEdgeId, int rightEdgeId, CommunicationContext.JoinType joinType, CommunicationContext.JoinAlgorithm joinAlgorithm, MessageSchema leftSchema, MessageSchema rightSchema)
comm - the communicatorplan - task plantargets - target tasksrcvr - receiverleftDataType - data typedestSelector - destination selectorpublic BJoin(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> leftSources, java.util.Set<java.lang.Integer> rightSources, java.util.Set<java.lang.Integer> targets, MessageType keyType, MessageType leftDataType, MessageType rightDataType, BulkReceiver rcvr, DestinationSelector destSelector, boolean shuffle, java.util.Comparator<java.lang.Object> comparator, CommunicationContext.JoinType joinType, CommunicationContext.JoinAlgorithm joinAlgorithm, MessageSchema leftSchema, MessageSchema rightSchema)
public BJoin(Communicator comm, LogicalPlan plan, java.util.Set<java.lang.Integer> leftSources, java.util.Set<java.lang.Integer> rightSources, java.util.Set<java.lang.Integer> targets, MessageType keyType, MessageType leftDataType, MessageType rightDataType, BulkReceiver rcvr, DestinationSelector destSelector, boolean shuffle, java.util.Comparator<java.lang.Object> comparator, CommunicationContext.JoinType joinType, CommunicationContext.JoinAlgorithm joinAlgorithm)
public BJoin(Communicator comm, LogicalPlanBuilder logicalPlanBuilder, MessageType keyType, MessageType leftDataType, MessageType rightDataType, BulkReceiver rcvr, DestinationSelector destSelector, boolean shuffle, java.util.Comparator<java.lang.Object> comparator, CommunicationContext.JoinType joinType, CommunicationContext.JoinAlgorithm joinAlgorithm)
public BJoin(Communicator comm, LogicalPlanBuilder logicalPlanBuilder, java.util.Set<java.lang.Integer> leftSources, java.util.Set<java.lang.Integer> rightSource, MessageType keyType, MessageType leftDataType, MessageType rightDataType, BulkReceiver rcvr, DestinationSelector destSelector, boolean shuffle, java.util.Comparator<java.lang.Object> comparator, CommunicationContext.JoinType joinType, CommunicationContext.JoinAlgorithm joinAlgorithm)
public boolean join(int source,
java.lang.Object key,
java.lang.Object data,
int flags,
int tag)
source - sourcekey - key for the datadata - dataflags - data flagpublic boolean isComplete()
isComplete in class BaseOperationpublic void finish(int source)
finish in class BaseOperationsource - the source that is endingpublic boolean progress()
progress in class BaseOperationpublic void close()
close in class BaseOperationpublic void reset()
reset in class BaseOperationpublic boolean sendBarrier(int src,
byte[] barrierId)
sendBarrier in class BaseOperationpublic boolean progressChannel()
progressChannel in class BaseOperation