public class EventImpl<T> extends Object implements Event<T>
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the wrapped object, E.g.
|
long |
getTimestamp()
The event timestamp in millis.
|
boolean |
isWatermark()
If this is a watermark event or not.
|
String |
toString() |
public long getTimestamp()
Event
The event timestamp in millis. This could be the time when the source generated the tuple or the time when the tuple was received by a bolt.
getTimestamp
in interface Event<T>
public T get()
Event
Returns the wrapped object, E.g. a tuple
public boolean isWatermark()
Event
If this is a watermark event or not. Watermark events are used for tracking time while processing event based ts.
isWatermark
in interface Event<T>
Copyright © 2022 The Apache Software Foundation. All rights reserved.