Package org.apache.heron.api.windowing
Class WaterMarkEvent<T extends Serializable>
- java.lang.Object
-
- org.apache.heron.api.windowing.EventImpl<T>
-
- org.apache.heron.api.windowing.WaterMarkEvent<T>
-
- All Implemented Interfaces:
Serializable
,Event<T>
public class WaterMarkEvent<T extends Serializable> extends EventImpl<T>
Watermark event used for tracking progress of time when processing event based ts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WaterMarkEvent(long ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWatermark()
If this is a watermark event or not.String
toString()
-
Methods inherited from class org.apache.heron.api.windowing.EventImpl
get, getTimestamp
-
-
-
-
Method Detail
-
isWatermark
public boolean isWatermark()
Description copied from interface:Event
If this is a watermark event or not. Watermark events are used for tracking time while processing event based ts.- Specified by:
isWatermark
in interfaceEvent<T extends Serializable>
- Overrides:
isWatermark
in classEventImpl<T extends Serializable>
- Returns:
- true if this is a watermark event
-
toString
public String toString()
- Overrides:
toString
in classEventImpl<T extends Serializable>
-
-