Interface WindowProcessor<W,C extends WindowProcessor.Context<W>>

Type Parameters:
W - the window type.
C - the context that provides some information for the window processor.
All Superinterfaces:
Serializable
All Known Subinterfaces:
AsyncStateSlicingWindowProcessor<W>, AsyncStateWindowProcessor<W>, SlicingSyncStateWindowProcessor<W>, SyncStateWindowProcessor<W>, UnslicingSyncStateWindowProcessor<W>
All Known Implementing Classes:
AbstractAsyncStateSliceWindowAggProcessor, AbstractAsyncStateWindowAggProcessor, AbstractSliceSyncStateWindowAggProcessor, AbstractSyncStateWindowAggProcessor, AsyncStateSliceSharedWindowAggProcessor, AsyncStateSliceUnsharedWindowAggProcessor, RowTimeSyncStateWindowDeduplicateProcessor, SliceSharedSyncStateWindowAggProcessor, SliceUnsharedSyncStateWindowAggProcessor, SyncStateWindowRankProcessor, UnsliceSyncStateWindowAggProcessor, WindowAggProcessorBase

@Internal public interface WindowProcessor<W,C extends WindowProcessor.Context<W>> extends Serializable
A base window processor provides common methods used for SyncStateWindowProcessor and AsyncStateWindowProcessor.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Information available in an invocation of methods of WindowProcessor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The tear-down method of the function.
    org.apache.flink.api.common.typeutils.TypeSerializer<W>
    Returns the serializer of the window type.
    void
    initializeWatermark(long watermark)
    Initializes the watermark which restores from state.
    void
    open(C context)
    Initialization method for the function.
  • Method Details

    • open

      void open(C context) throws Exception
      Initialization method for the function. It is called before the actual working methods.
      Throws:
      Exception
    • close

      void close() throws Exception
      The tear-down method of the function. It is called after the last call to the main working methods.
      Throws:
      Exception
    • initializeWatermark

      void initializeWatermark(long watermark)
      Initializes the watermark which restores from state. The method is called after open method and before the actual working methods.
      Parameters:
      watermark - the initial watermark
    • createWindowSerializer

      org.apache.flink.api.common.typeutils.TypeSerializer<W> createWindowSerializer()
      Returns the serializer of the window type.