Package stream.nebula.operators.window
Class EventTime
- java.lang.Object
-
- stream.nebula.operators.window.EventTime
-
- All Implemented Interfaces:
TimeCharacteristic
public class EventTime extends java.lang.Object implements TimeCharacteristic
A time characteristic to a construct a window based on the event time encoded in a stream attribute.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventTime
eventTime(@NonNull java.lang.String field)
Construct an EventTime time characteristic based on a stream attribute.java.lang.String
getFieldName()
Access the field name that encodes event time.
-
-
-
Method Detail
-
eventTime
public static EventTime eventTime(@NonNull java.lang.String field) throws java.lang.IllegalArgumentException
Construct an EventTime time characteristic based on a stream attribute.- Parameters:
field
- The stream attribute that encodes event time.- Returns:
- An even time characteristic based on the stream attribute
field
. - Throws:
java.lang.IllegalArgumentException
- Iffield
is null.
-
getFieldName
public java.lang.String getFieldName()
Access the field name that encodes event time.- Returns:
- The field name that encodes event time.
-
-