streamcruncher.api
Class TimeWindowSizeProvider
java.lang.Object
streamcruncher.api.WindowSizeProvider
streamcruncher.api.TimeWindowSizeProvider
- All Implemented Interfaces:
- Provider
- Direct Known Subclasses:
- TimeWFPartitionWinSizeProviderTest.CustomWindowSizeProvider
public class TimeWindowSizeProvider
- extends WindowSizeProvider
Window Size Provider for Time based Windows. Instances of this class are used
to provide the Window size in milliseconds using
provideSizeMillis(Object[]). If the Time based Window is configured
to use the "Max Events" constraint, then the WindowSizeProvider.provideSize(Object[])
returns the appropriate size.
Note: This object is not Thread-safe.
|
Field Summary |
static java.lang.String |
name2
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name2
public static final java.lang.String name2
- See Also:
- Constant Field Values
TimeWindowSizeProvider
public TimeWindowSizeProvider()
getName
public static java.lang.String getName()
- Returns:
- "TimeWindowSize/Default".
getSizeMillis
public java.lang.Long getSizeMillis()
setSizeMillis
public void setSizeMillis(java.lang.Long sizeMillis)
provideSizeMillis
public long provideSizeMillis(java.lang.Object[] levelValues)
- Parameters:
levelValues -
- Returns:
sizeMillis- See Also:
WindowSizeProvider.provideSize(Object[])
Copyright © 2006 - 2008 Ashwin Jayaprakash. All Rights Reserved.
(Docs generated on 3-November-2007 )