Adding the @eventTime annotation to SPL operators

When you apply an @eventTime annotation to a primitive operator, you indicate that the operator and all the downstream operators which are connected via event-time streams are part of an event-time graph.

Before you begin

  • You can apply the @eventTime annotation to primitive operators, only. For more information refer to @eventTime annotation.
  • A valid @eventTime annotation requires that the primitive operator has an output port. This output port must have a schema that has an attribute with one of the accepted event-time tuple types (uint64, int64, timestamp).

Procedure

  • In IBM® Streams Studio, you can add the @eventTime annotation by right clicking a primitive operator in the SPL Graphical Editor and selecting Add timeInterval window....
  • In the SPL Editor that ships with Streams Studio or in any other text-based editor, you add the annotation directly in your SPL application code.