public abstract class KeyedBroadcastProcessFunction.OnTimerContext extends KeyedBroadcastProcessFunction.ReadOnlyContext
KeyedBroadcastProcessFunction.onTimer(long, OnTimerContext, Collector)
.Constructor and Description |
---|
OnTimerContext() |
Modifier and Type | Method and Description |
---|---|
abstract long |
currentProcessingTime()
Returns the current processing time.
|
abstract long |
currentWatermark()
Returns the current event-time watermark.
|
abstract KS |
getCurrentKey()
Get the key of the firing timer.
|
abstract <X> void |
output(OutputTag<X> outputTag,
X value)
Emits a record to the side output identified by the
OutputTag . |
abstract TimeDomain |
timeDomain()
The
TimeDomain of the firing timer, i.e. |
abstract Long |
timestamp()
Timestamp of the element currently being processed or timestamp of a firing timer.
|
timerService
getBroadcastState
public abstract TimeDomain timeDomain()
TimeDomain
of the firing timer, i.e. if it is event or processing time timer.public abstract KS getCurrentKey()
getCurrentKey
in class KeyedBroadcastProcessFunction.ReadOnlyContext
public abstract Long timestamp()
This might be null
, for example if the time characteristic of your program is
set to TimeCharacteristic.ProcessingTime
.
public abstract <X> void output(OutputTag<X> outputTag, X value)
OutputTag
.outputTag
- the OutputTag
that identifies the side output to emit to.value
- The record to emit.public abstract long currentProcessingTime()
public abstract long currentWatermark()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.