Class EventImpl<T>
- java.lang.Object
-
- org.apache.pulsar.functions.windowing.EventImpl<T>
-
- All Implemented Interfaces:
Event<T>
- Direct Known Subclasses:
WaterMarkEvent
public class EventImpl<T> extends java.lang.Object implements Event<T>
-
-
Method Summary
All Methods Instance Methods Concrete 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
-
getTimestamp
public long getTimestamp()
Description copied from interface:EventThe event timestamp in millis.- Specified by:
getTimestampin interfaceEvent<T>- Returns:
- the event timestamp in milliseconds.
-
isWatermark
public boolean isWatermark()
Description copied from interface:EventIf this is a watermark event or not. Watermark events are used for tracking time while processing event based ts.- Specified by:
isWatermarkin interfaceEvent<T>- Returns:
- true if this is a watermark event
-
-