Class BaseWindowConfig
- java.lang.Object
-
- org.apache.storm.trident.windowing.config.BaseWindowConfig
-
- All Implemented Interfaces:
Serializable,WindowConfig
- Direct Known Subclasses:
SlidingCountWindow,SlidingDurationWindow,TumblingCountWindow,TumblingDurationWindow
public abstract class BaseWindowConfig extends Object implements WindowConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.storm.trident.windowing.config.WindowConfig
WindowConfig.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected intslideLengthprotected intwindowLength
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseWindowConfig(int windowLength, int slideLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSlidingLength()Returns the sliding length of the moving window.intgetWindowLength()Returns the length of the window.voidvalidate()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.storm.trident.windowing.config.WindowConfig
getWindowStrategy
-
-
-
-
Method Detail
-
getWindowLength
public int getWindowLength()
Description copied from interface:WindowConfigReturns the length of the window.- Specified by:
getWindowLengthin interfaceWindowConfig
-
getSlidingLength
public int getSlidingLength()
Description copied from interface:WindowConfigReturns the sliding length of the moving window.- Specified by:
getSlidingLengthin interfaceWindowConfig
-
validate
public void validate()
- Specified by:
validatein interfaceWindowConfig
-
-