Interface SinkFunction.Context
- Enclosing interface:
- SinkFunction<IN>
@Public
public static interface SinkFunction.Context
Context that
SinkFunctions can use for getting additional data about an
input record.
The context is only valid for the duration of a SinkFunction.invoke(Object, Context) call. Do not store the context and use afterwards!
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current processing time.longReturns the current event-time watermark.Returns the timestamp of the current input record ornullif the element does not have an assigned timestamp.
-
Method Details
-
currentProcessingTime
long currentProcessingTime()Returns the current processing time. -
currentWatermark
long currentWatermark()Returns the current event-time watermark. -
timestamp
Long timestamp()Returns the timestamp of the current input record ornullif the element does not have an assigned timestamp.
-