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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BaseWindowedBolt.Durationdays(int days) Returns aBaseWindowedBolt.Durationcorresponding to the the given value in days.booleaninthashCode()static BaseWindowedBolt.Durationhours(int hours) Returns aBaseWindowedBolt.Durationcorresponding to the the given value in hours.static BaseWindowedBolt.Durationminutes(int minutes) Returns aBaseWindowedBolt.Durationcorresponding to the the given value in minutes.static BaseWindowedBolt.Durationof(int milliseconds) Returns aBaseWindowedBolt.Durationcorresponding to the the given value in milli seconds.static BaseWindowedBolt.Durationseconds(int seconds) Returns aBaseWindowedBolt.Durationcorresponding to the the given value in seconds.toString()
- 
Field Details- 
valuepublic final int value
 
- 
- 
Constructor Details- 
Duration
 
- 
- 
Method Details- 
ofReturns aBaseWindowedBolt.Durationcorresponding to the the given value in milli seconds.- Parameters:
- milliseconds- the duration in milliseconds
- Returns:
- the Duration
 
- 
daysReturns aBaseWindowedBolt.Durationcorresponding to the the given value in days.- Parameters:
- days- the number of days
- Returns:
- the Duration
 
- 
hoursReturns aBaseWindowedBolt.Durationcorresponding to the the given value in hours.- Parameters:
- hours- the number of hours
- Returns:
- the Duration
 
- 
minutesReturns aBaseWindowedBolt.Durationcorresponding to the the given value in minutes.- Parameters:
- minutes- the number of minutes
- Returns:
- the Duration
 
- 
secondsReturns aBaseWindowedBolt.Durationcorresponding to the the given value in seconds.- Parameters:
- seconds- the number of seconds
- Returns:
- the Duration
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-