public abstract class KeyedProcessFunction.Context extends Object
KeyedProcessFunction.processElement(Object, Context, Collector)
or KeyedProcessFunction.onTimer(long, OnTimerContext, Collector).| 构造器和说明 |
|---|
Context() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract K |
getCurrentKey()
Get key of the element being processed.
|
abstract <X> void |
output(org.apache.flink.util.OutputTag<X> outputTag,
X value)
Emits a record to the side output identified by the
OutputTag. |
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.public abstract <X> void output(org.apache.flink.util.OutputTag<X> outputTag,
X value)
OutputTag.outputTag - the OutputTag that identifies the side output to emit to.value - The record to emit.public abstract K getCurrentKey()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.