接口 Event<T>
- 类型参数:
T- the type of the object thats wrapped
- 所有已知实现类:
EventImpl,WaterMarkEvent
public interface Event<T>
An event is a wrapper object that gets stored in the window.
-
方法概要
修饰符和类型方法说明get()Returns the wrapped object.org.apache.pulsar.functions.api.Record<?>longThe event timestamp in millis.booleanIf this is a watermark event or not.
-
方法详细资料
-
getRecord
org.apache.pulsar.functions.api.Record<?> getRecord()- 返回:
- the record associated with the event
-
getTimestamp
long getTimestamp()The event timestamp in millis.- 返回:
- the event timestamp in milliseconds.
-
get
T get()Returns the wrapped object.- 返回:
- 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.- 返回:
- true if this is a watermark event
-