Package org.apache.storm.topology.base
Class BaseWindowedBolt.Duration
java.lang.Object
org.apache.storm.topology.base.BaseWindowedBolt.Duration
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BaseWindowedBolt
Holds a Time duration for time based windows and sliding intervals.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseWindowedBolt.Duration
days
(int days) Returns aBaseWindowedBolt.Duration
corresponding to the the given value in days.boolean
int
hashCode()
static BaseWindowedBolt.Duration
hours
(int hours) Returns aBaseWindowedBolt.Duration
corresponding to the the given value in hours.static BaseWindowedBolt.Duration
minutes
(int minutes) Returns aBaseWindowedBolt.Duration
corresponding to the the given value in minutes.static BaseWindowedBolt.Duration
of
(int milliseconds) Returns aBaseWindowedBolt.Duration
corresponding to the the given value in milli seconds.static BaseWindowedBolt.Duration
seconds
(int seconds) Returns aBaseWindowedBolt.Duration
corresponding to the the given value in seconds.toString()
-
Field Details
-
value
public final int value
-
-
Constructor Details
-
Duration
-
-
Method Details
-
of
Returns aBaseWindowedBolt.Duration
corresponding to the the given value in milli seconds.- Parameters:
milliseconds
- the duration in milliseconds- Returns:
- the Duration
-
days
Returns aBaseWindowedBolt.Duration
corresponding to the the given value in days.- Parameters:
days
- the number of days- Returns:
- the Duration
-
hours
Returns aBaseWindowedBolt.Duration
corresponding to the the given value in hours.- Parameters:
hours
- the number of hours- Returns:
- the Duration
-
minutes
Returns aBaseWindowedBolt.Duration
corresponding to the the given value in minutes.- Parameters:
minutes
- the number of minutes- Returns:
- the Duration
-
seconds
Returns aBaseWindowedBolt.Duration
corresponding to the the given value in seconds.- Parameters:
seconds
- the number of seconds- Returns:
- the Duration
-
equals
-
hashCode
public int hashCode() -
toString
-