public class WindowComputeOp<O,I> extends BaseWindowedSink<I> implements Receptor, java.io.Serializable
allowedLateness, collectiveEvents, collectiveOutput, DEFAULT_MAX_LAG, DEFAULT_WATERMARK_INTERVAL, evictionPolicy, iTimestampExtractor, iWindow, maxLagMs, watermarkEventGenerator, watermarkInterval, windowingPolicy, windowLifeCycleListener, windowManager, windowParameter| Constructor and Description |
|---|
WindowComputeOp(ComputeFunc<O,java.util.Iterator<I>> computeFunction,
BaseTSet originTSet,
java.util.Map<java.lang.String,java.lang.String> receivables,
WindowParameter winParam) |
WindowComputeOp(ComputeFunc<O,java.util.Iterator<I>> computeFunction,
WindowParameter winParam) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String key,
DataPartition<?> data) |
boolean |
execute(IMessage<I> content)
Execute with an incoming message
|
boolean |
execute(IWindowMessage<I> windowMessage) |
boolean |
getExpire(IWindowMessage<I> expiredMessages) |
ComputeFunc<O,java.util.Iterator<I>> |
getFunction() |
boolean |
getLateMessages(IMessage<I> lateMessages) |
IONames |
getReceivableNames()
This method should return a set of receivable names, that are expected by this receptor.
|
void |
initialize(BaseTSet origin,
java.util.Map<java.lang.String,java.lang.String> recvs,
WindowParameter winParm) |
protected WindowLifeCycleListener<I> |
newWindowLifeCycleListener() |
void |
prepare(Config cfg,
TaskContext ctx)
Prepare the task to be executed
|
close, getEvictionPolicy, getWindowingPolicy, initialize, isTimestamped, reset, setPolicies, start, withAllowedLateness, withCustomTimestampExtractor, withSlidingCountWindow, withSlidingDurationWindow, withTimestampExtractor, withTumblingCountWindow, withTumblingDurationWindow, withWatermarkInterval, withWindowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendExecutepublic WindowComputeOp(ComputeFunc<O,java.util.Iterator<I>> computeFunction, WindowParameter winParam)
public WindowComputeOp(ComputeFunc<O,java.util.Iterator<I>> computeFunction, BaseTSet originTSet, java.util.Map<java.lang.String,java.lang.String> receivables, WindowParameter winParam)
public void initialize(BaseTSet origin, java.util.Map<java.lang.String,java.lang.String> recvs, WindowParameter winParm)
public void prepare(Config cfg, TaskContext ctx)
INodeprepare in interface INodeprepare in class BaseWindowedSink<I>cfg - the configurationctx - the task context, this has runtime information about the taskpublic boolean execute(IWindowMessage<I> windowMessage)
execute in class BaseWindowedSink<I>public boolean getExpire(IWindowMessage<I> expiredMessages)
getExpire in class BaseWindowedSink<I>public boolean getLateMessages(IMessage<I> lateMessages)
getLateMessages in class BaseWindowedSink<I>public boolean execute(IMessage<I> content)
IComputeexecute in interface ICompute<I>execute in interface IWindowedSink<I>execute in interface IWindowCompute<I>execute in class BaseWindowedSink<I>protected WindowLifeCycleListener<I> newWindowLifeCycleListener()
newWindowLifeCycleListener in class BaseWindowedSink<I>public void add(java.lang.String key,
DataPartition<?> data)
public IONames getReceivableNames()
Receptor
If Collector C of task graph TG1 collects variable "var1" and C's parallelism is n, If
Receptor R of task graph TG2 is interested in receiving "var1", R's parallelism should
be equal to n and, R should have the same distribution as C among the workers.
getReceivableNames in interface Receptorpublic ComputeFunc<O,java.util.Iterator<I>> getFunction()