@InterfaceStability.Unstable public final class WindowInternal<M extends MessageEnvelope,K,WV> extends java.lang.Object implements Window<M,K,WV,WindowPane<K,WV>>
| Constructor and Description |
|---|
WindowInternal(Trigger defaultTrigger,
java.util.function.BiFunction<M,WV,WV> foldFunction,
java.util.function.Function<M,K> keyExtractor,
java.util.function.Function<M,java.lang.Long> eventTimeExtractor) |
| Modifier and Type | Method and Description |
|---|---|
Trigger |
getDefaultTrigger() |
Trigger |
getEarlyTrigger() |
java.util.function.Function<M,java.lang.Long> |
getEventTimeExtractor() |
java.util.function.BiFunction<M,WV,WV> |
getFoldFunction() |
java.util.function.Function<M,K> |
getKeyExtractor() |
Trigger |
getLateTrigger() |
Window<M,K,WV,WindowPane<K,WV>> |
setAccumulationMode(AccumulationMode mode)
Specify how a
Window should process its previously emitted WindowPanes. |
Window<M,K,WV,WindowPane<K,WV>> |
setEarlyTrigger(Trigger trigger)
Set the early triggers for this
Window. |
Window<M,K,WV,WindowPane<K,WV>> |
setLateTrigger(Trigger trigger)
Set the late triggers for this
Window. |
public Window<M,K,WV,WindowPane<K,WV>> setEarlyTrigger(Trigger trigger)
WindowsetEarlyTrigger in interface Window<M extends MessageEnvelope,K,WV,WindowPane<K,WV>>trigger - the early triggerWindow function with the early triggerpublic Window<M,K,WV,WindowPane<K,WV>> setLateTrigger(Trigger trigger)
WindowsetLateTrigger in interface Window<M extends MessageEnvelope,K,WV,WindowPane<K,WV>>trigger - the late triggerWindow function with the late triggerpublic Window<M,K,WV,WindowPane<K,WV>> setAccumulationMode(AccumulationMode mode)
WindowWindow should process its previously emitted WindowPanes.
There are two types of AccumulationModes:
setAccumulationMode in interface Window<M extends MessageEnvelope,K,WV,WindowPane<K,WV>>mode - the accumulation modeWindow function with the specified AccumulationMode.public Trigger getDefaultTrigger()
public Trigger getEarlyTrigger()
public Trigger getLateTrigger()
public java.util.function.Function<M,java.lang.Long> getEventTimeExtractor()