@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 WindowPane s. |
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)
Window
setEarlyTrigger
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)
Window
setLateTrigger
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)
Window
Window
should process its previously emitted WindowPane
s.
There are two types of AccumulationMode
s:
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()