Package org.opennms.web.rest.v1.support
Class TimeChunker
- java.lang.Object
-
- org.opennms.web.rest.v1.support.TimeChunker
-
public class TimeChunker extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeChunker.Chunks
static class
TimeChunker.TimeChunk
-
Constructor Summary
Constructors Constructor Description TimeChunker(long resolution, Date startDate, Date endDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeChunker.TimeChunk
getAt(int index)
Date
getEndDate()
long
getIndexContaining(Date timestamp)
TimeChunker.TimeChunk
getNextSegment()
int
getSegmentCount()
Date
getStartDate()
boolean
hasNext()
void
throwChunks()
-
-
-
Field Detail
-
MINUTE
public static final int MINUTE
- See Also:
- Constant Field Values
-
HOURLY
public static final int HOURLY
- See Also:
- Constant Field Values
-
DAILY
public static final int DAILY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSegmentCount
public int getSegmentCount()
-
hasNext
public boolean hasNext()
-
getNextSegment
public TimeChunker.TimeChunk getNextSegment()
-
getAt
public TimeChunker.TimeChunk getAt(int index)
-
getIndexContaining
public long getIndexContaining(Date timestamp)
-
throwChunks
public void throwChunks() throws TimeChunker.Chunks
- Throws:
TimeChunker.Chunks
-
getStartDate
public Date getStartDate()
-
getEndDate
public Date getEndDate()
-
-