public abstract class CoProcessFunction.Context extends Object
CoProcessFunction.processElement1(Object, Context, Collector)
/
CoProcessFunction.processElement2(Object, Context, Collector)
or CoProcessFunction.onTimer(long, OnTimerContext, Collector)
.Constructor and Description |
---|
Context() |
Modifier and Type | Method and Description |
---|---|
abstract TimerService |
timerService()
A
TimerService for querying time and registering timers. |
abstract Long |
timestamp()
Timestamp of the element currently being processed or timestamp of a firing timer.
|
public abstract Long timestamp()
This might be null
, for example if the time characteristic of your program
is set to TimeCharacteristic.ProcessingTime
.
public abstract TimerService timerService()
TimerService
for querying time and registering timers.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.