public class DurationGranularity extends BaseQueryGranularity
Constructor and Description |
---|
DurationGranularity(long duration,
org.joda.time.DateTime origin) |
DurationGranularity(long millis,
long origin) |
Modifier and Type | Method and Description |
---|---|
byte[] |
cacheKey() |
boolean |
equals(Object o) |
long |
getDuration() |
long |
getDurationMillis() |
org.joda.time.DateTime |
getOrigin() |
long |
getOriginMillis() |
int |
hashCode() |
long |
next(long t) |
String |
toString() |
long |
truncate(long t) |
iterable, toDateTime
fromString
public DurationGranularity(long duration, org.joda.time.DateTime origin)
public DurationGranularity(long millis, long origin)
public long getDuration()
public org.joda.time.DateTime getOrigin()
public long getOriginMillis()
public long next(long t)
next
in class BaseQueryGranularity
public long truncate(long t)
truncate
in class BaseQueryGranularity
public byte[] cacheKey()
cacheKey
in class BaseQueryGranularity
public long getDurationMillis()
Copyright © 2011–2015. All rights reserved.