T - type of elements being windowedW - window typepublic abstract class PartitioningWindowFn<T,W extends BoundedWindow> extends NonMergingWindowFn<T,W>
WindowFn that places each value into exactly one window based on its timestamp and
 never merges windows.WindowFn.AssignContext, WindowFn.MergeContext| Constructor and Description | 
|---|
| PartitioningWindowFn() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | assignsToOneWindow()Returns true if this  WindowFnalways assigns an element to exactly one window. | 
| abstract W | assignWindow(Instant timestamp)Returns the single window to which elements with this timestamp belong. | 
| java.util.Collection<W> | assignWindows(WindowFn.AssignContext c)Given a timestamp and element, returns the set of windows into which it should be placed. | 
| WindowMappingFn<W> | getDefaultWindowMappingFn()Returns the default  WindowMappingFnto use to map main input windows to side input
 windows. | 
isNonMerging, mergeWindowsgetWindowTypeDescriptor, isCompatible, populateDisplayData, verifyCompatibility, windowCoderpublic abstract W assignWindow(Instant timestamp)
public final java.util.Collection<W> assignWindows(WindowFn.AssignContext c)
WindowFnassignWindows in class WindowFn<T,W extends BoundedWindow>public WindowMappingFn<W> getDefaultWindowMappingFn()
WindowFnWindowMappingFn to use to map main input windows to side input
 windows. This should accept arbitrary main input windows, and produce a BoundedWindow
 that can be produced by this WindowFn.getDefaultWindowMappingFn in class WindowFn<T,W extends BoundedWindow>public final boolean assignsToOneWindow()
WindowFnWindowFn always assigns an element to exactly one window.
 If this varies per-element, or cannot be determined, conservatively return false.
By default, returns false.
assignsToOneWindow in class WindowFn<T,W extends BoundedWindow>