public class KGatherStreamingFinalReceiver extends KGatherStreamingReceiver
| Modifier and Type | Field and Description |
|---|---|
protected int |
localWindowCount
variable used to keep track of the current local window count.
|
protected int |
windowSize
Streaming messages are only kept until the window size is met.
|
batchDone, dataFlowOperation, destination, executor, finishedSources, isEmptySent, isFinalBatchReceiver, keyLimit, limitPerKey, messages, representSource, representSourceSet, sendQueue, thisSources| Constructor and Description |
|---|
KGatherStreamingFinalReceiver(BulkReceiver receiver,
int window) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Config cfg,
DataFlowOperation op,
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
Initialize the message receiver with tasks from which messages are expected
For each sub edge in graph, for each path, gives the expected task ids
|
boolean |
progress()
Default progress method for keyed receivers.
|
isAllQueuesEmpty, offerMessage, sendToTargetcheckIfEmptyIsSent, finishProgress, isComplete, isSourcesFinished, moveMessagesToSendQueue, moveMessageToSendQueue, onFinish, onMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclean, close, onMessageprotected int windowSize
protected int localWindowCount
public KGatherStreamingFinalReceiver(BulkReceiver receiver, int window)
public void init(Config cfg, DataFlowOperation op, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
MessageReceivertarget -> source tasks
init in interface MessageReceiverinit in class KeyedReceiverexpectedIds - expected task idspublic boolean progress()
KeyedReceiverprogress in interface MessageReceiverprogress in class KeyedReceiver