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, sendToTarget
checkIfEmptyIsSent, finishProgress, isComplete, isSourcesFinished, moveMessagesToSendQueue, moveMessageToSendQueue, onFinish, onMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clean, close, onMessage
protected 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)
MessageReceiver
target -> source tasks
init
in interface MessageReceiver
init
in class KeyedReceiver
expectedIds
- expected task idspublic boolean progress()
KeyedReceiver
progress
in interface MessageReceiver
progress
in class KeyedReceiver