public class AllGranularity extends Granularity
Granularity.Formatter
Modifier and Type | Field and Description |
---|---|
static long |
MAX_INSTANT |
static long |
MIN_INSTANT |
Constructor and Description |
---|
AllGranularity()
This constructor is public b/c it is serialized and deserialized
based on type in GranularityModule
|
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
bucketStart(org.joda.time.DateTime time) |
org.joda.time.DateTime |
decrement(org.joda.time.DateTime time) |
boolean |
equals(Object o) |
byte[] |
getCacheKey()
Get a byte array used as a cache key.
|
org.joda.time.format.DateTimeFormatter |
getFormatter(Granularity.Formatter type) |
Iterable<org.joda.time.Interval> |
getIterable(org.joda.time.Interval input) |
int |
hashCode() |
org.joda.time.DateTime |
increment(org.joda.time.DateTime time) |
org.joda.time.DateTime |
toDate(String filePath,
Granularity.Formatter formatter) |
String |
toString() |
bucket, bucketEnd, fromString, granularitiesFinerThan, mergeGranularities, toDate, toDateTime, toPath
public static final long MAX_INSTANT
public static final long MIN_INSTANT
public AllGranularity()
public org.joda.time.format.DateTimeFormatter getFormatter(Granularity.Formatter type)
getFormatter
in class Granularity
public org.joda.time.DateTime increment(org.joda.time.DateTime time)
increment
in class Granularity
public org.joda.time.DateTime decrement(org.joda.time.DateTime time)
decrement
in class Granularity
public org.joda.time.DateTime bucketStart(org.joda.time.DateTime time)
bucketStart
in class Granularity
public org.joda.time.DateTime toDate(String filePath, Granularity.Formatter formatter)
toDate
in class Granularity
public byte[] getCacheKey()
Cacheable
public Iterable<org.joda.time.Interval> getIterable(org.joda.time.Interval input)
getIterable
in class Granularity
Copyright © 2011–2017. All rights reserved.