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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceInformation available in an invocation of methods ofWindowProcessor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()The tear-down method of the function.org.apache.flink.api.common.typeutils.TypeSerializer<W>Returns the serializer of the window type.voidinitializeWatermark(long watermark) Initializes the watermark which restores from state.voidInitialization method for the function.
-
Method Details
-
open
Initialization method for the function. It is called before the actual working methods.- Throws:
Exception
-
close
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.
-