Interface Event<T>
-
- Type Parameters:
T- the type of the object thats wrapped
- All Known Implementing Classes:
EventImpl,WaterMarkEvent
public interface Event<T>An event is a wrapper object that gets stored in the window.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()Returns the wrapped object.org.apache.pulsar.functions.api.Record<?>getRecord()longgetTimestamp()The event timestamp in millis.booleanisWatermark()If this is a watermark event or not.
-
-
-
Method Detail
-
getRecord
org.apache.pulsar.functions.api.Record<?> getRecord()
- Returns:
- the record associated with the event
-
getTimestamp
long getTimestamp()
The event timestamp in millis.- Returns:
- the event timestamp in milliseconds.
-
get
T get()
Returns the wrapped object.- Returns:
- the wrapped object.
-
isWatermark
boolean isWatermark()
If this is a watermark event or not. Watermark events are used for tracking time while processing event based ts.- Returns:
- true if this is a watermark event
-
-