Package org.apache.beam.sdk.values
Class WindowingStrategy<T,W extends BoundedWindow> 
java.lang.Object
org.apache.beam.sdk.values.WindowingStrategy<T,W> 
- Type Parameters:
 T- type of elements being windowedW-BoundedWindowsubclass used to represent the windows used by thisWindowingStrategy
- All Implemented Interfaces:
 Serializable
@Internal
public class WindowingStrategy<T,W extends BoundedWindow> 
extends Object
implements Serializable
A 
WindowingStrategy describes the windowing behavior for a specific collection of values.
 It has both a WindowFn describing how elements are assigned to windows and a Trigger that controls when output is produced for each window.- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe accumulation modes that can be used with windowing. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanFixes all the defaults so that equals can be used to check that two strategies are the same, regardless of the state of "defaulted-ness".getMode()static WindowingStrategy<Object, GlobalWindow> Return a fully specified, default windowing strategy.inthashCode()booleanbooleanbooleanbooleanbooleanbooleanstatic <T,W extends BoundedWindow> 
WindowingStrategy<T, W> toString()withAllowedLateness(Duration allowedLateness) withAlreadyMerged(boolean alreadyMerged) withClosingBehavior(Window.ClosingBehavior closingBehavior) withEnvironmentId(String environmentId) withOnTimeBehavior(Window.OnTimeBehavior onTimeBehavior) withTimestampCombiner(TimestampCombiner timestampCombiner) withTrigger(Trigger trigger) withWindowFn(WindowFn<?, ?> wildcardWindowFn)  
- 
Method Details
- 
globalDefault
Return a fully specified, default windowing strategy. - 
of
 - 
getWindowFn
 - 
getTrigger
 - 
isTriggerSpecified
public boolean isTriggerSpecified() - 
getAllowedLateness
 - 
isAllowedLatenessSpecified
public boolean isAllowedLatenessSpecified() - 
getMode
 - 
isModeSpecified
public boolean isModeSpecified() - 
isAlreadyMerged
public boolean isAlreadyMerged() - 
needsMerge
public boolean needsMerge() - 
getClosingBehavior
 - 
getOnTimeBehavior
 - 
getTimestampCombiner
 - 
isTimestampCombinerSpecified
public boolean isTimestampCombinerSpecified() - 
getEnvironmentId
 - 
withTrigger
 - 
withMode
 - 
withWindowFn
 - 
withAllowedLateness
 - 
withClosingBehavior
 - 
withOnTimeBehavior
 - 
withTimestampCombiner
 - 
withEnvironmentId
 - 
withAlreadyMerged
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() - 
fixDefaults
Fixes all the defaults so that equals can be used to check that two strategies are the same, regardless of the state of "defaulted-ness". 
 -