public abstract class TVFSlidingWindowFn extends NonMergingWindowFn<java.lang.Object,IntervalWindow>
WindowFn.AssignContext, WindowFn.MergeContext| Constructor and Description | 
|---|
| TVFSlidingWindowFn() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Collection<IntervalWindow> | assignWindows(WindowFn.AssignContext c)Given a timestamp and element, returns the set of windows into which it should be placed. | 
| WindowMappingFn<IntervalWindow> | getDefaultWindowMappingFn()Returns the default  WindowMappingFnto use to map main input windows to side input
 windows. | 
| abstract Duration | getPeriod()Amount of time between generated windows. | 
| abstract Duration | getSize()Size of the generated windows. | 
| boolean | isCompatible(WindowFn<?,?> other)Returns whether this performs the same merging as the given  WindowFn. | 
| static TVFSlidingWindowFn | of(Duration size,
  Duration period) | 
| Coder<IntervalWindow> | windowCoder()Returns the  Coderused for serializing the windows used by this windowFn. | 
isNonMerging, mergeWindowsassignsToOneWindow, getWindowTypeDescriptor, populateDisplayData, verifyCompatibilitypublic abstract Duration getSize()
public abstract Duration getPeriod()
public static TVFSlidingWindowFn of(Duration size, Duration period)
public java.util.Collection<IntervalWindow> assignWindows(WindowFn.AssignContext c) throws java.lang.Exception
WindowFnassignWindows in class WindowFn<java.lang.Object,IntervalWindow>java.lang.Exceptionpublic boolean isCompatible(WindowFn<?,?> other)
WindowFnWindowFn.isCompatible in class WindowFn<java.lang.Object,IntervalWindow>public Coder<IntervalWindow> windowCoder()
WindowFnCoder used for serializing the windows used by this windowFn.windowCoder in class WindowFn<java.lang.Object,IntervalWindow>public WindowMappingFn<IntervalWindow> 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<java.lang.Object,IntervalWindow>