Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - If field is null.
      • getFieldName

        public java.lang.String getFieldName()
        Access the field name that encodes event time.
        Returns:
        The field name that encodes event time.