Interface InternalWindowProcessFunction.Context<K,​W extends Window>

    • Method Detail

      • getPartitionedState

        <S extends org.apache.flink.api.common.state.State> S getPartitionedState​(org.apache.flink.api.common.state.StateDescriptor<S,​?> stateDescriptor)
                                                                           throws Exception
        Creates a partitioned state handle, using the state backend configured for this task.
        Throws:
        IllegalStateException - Thrown, if the key/value state was already initialized.
        Exception - Thrown, if the state backend cannot create the key/value state.
      • currentKey

        K currentKey()
        Returns:
        current key of current processed element.
      • currentProcessingTime

        long currentProcessingTime()
        Returns the current processing time.
      • currentWatermark

        long currentWatermark()
        Returns the current event-time watermark.
      • getShiftTimeZone

        ZoneId getShiftTimeZone()
        Returns the shifted timezone of the window.
      • getWindowAccumulators

        org.apache.flink.table.data.RowData getWindowAccumulators​(W window)
                                                           throws Exception
        Gets the accumulators of the given window.
        Throws:
        Exception
      • setWindowAccumulators

        void setWindowAccumulators​(W window,
                                   org.apache.flink.table.data.RowData acc)
                            throws Exception
        Sets the accumulators of the given window.
        Throws:
        Exception
      • clearWindowState

        void clearWindowState​(W window)
                       throws Exception
        Clear window state of the given window.
        Throws:
        Exception
      • clearPreviousState

        void clearPreviousState​(W window)
                         throws Exception
        Clear previous agg state (used for retraction) of the given window.
        Throws:
        Exception
      • deleteCleanupTimer

        void deleteCleanupTimer​(W window)
                         throws Exception
        Deletes the cleanup timer set for the contents of the provided window.
        Throws:
        Exception