Interface Trigger.TriggerContext

    • Method Detail

      • getCurrentProcessingTime

        long getCurrentProcessingTime()
        Returns the current processing time.
      • getCurrentWatermark

        long getCurrentWatermark()
        Returns the current watermark time.
      • deleteProcessingTimeTimer

        void deleteProcessingTimeTimer​(long time)
        Delete the processing time trigger for the given time.
      • deleteEventTimeTimer

        void deleteEventTimeTimer​(long time)
        Delete the event-time trigger for the given time.
      • getPartitionedState

        <S extends State> S getPartitionedState​(StateDescriptor<S,​?> stateDescriptor)
        Retrieves a State object that can be used to interact with fault-tolerant state that is scoped to the window and key of the current trigger invocation.
        Type Parameters:
        S - The type of the state.
        Parameters:
        stateDescriptor - The StateDescriptor that contains the name and type of the state that is being accessed.
        Returns:
        The partitioned state object.
        Throws:
        UnsupportedOperationException - Thrown, if no partitioned state is available for the function (function is not part os a KeyedStream).