Class NoneGranularity
- java.lang.Object
-
- org.apache.druid.java.util.common.granularity.Granularity
-
- org.apache.druid.java.util.common.granularity.NoneGranularity
-
- All Implemented Interfaces:
Cacheable
public class NoneGranularity extends Granularity
NoneGranularity does not bucket data
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.druid.java.util.common.granularity.Granularity
Granularity.Formatter
-
-
Field Summary
-
Fields inherited from class org.apache.druid.java.util.common.granularity.Granularity
IS_FINER_THAN
-
-
Constructor Summary
Constructors Constructor Description NoneGranularity()
This constructor is public b/c it is serialized and deserialized based on type in GranularityModule
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
bucketStart(long time)
org.joda.time.DateTime
bucketStart(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)
int
hashCode()
long
increment(long time)
org.joda.time.DateTime
increment(org.joda.time.DateTime time)
boolean
isAligned(org.joda.time.Interval interval)
Any interval is aligned with none granularity since it's effectively millisecond granularity.org.joda.time.DateTime
toDate(String filePath, Granularity.Formatter formatter)
String
toString()
-
Methods inherited from class org.apache.druid.java.util.common.granularity.Granularity
bucket, bucketEnd, fromString, getIterable, getTimeZone, granularitiesFinerThan, isFinerThan, mergeGranularities, toDate, toDateTime, toPath
-
-
-
-
Method Detail
-
getFormatter
public org.joda.time.format.DateTimeFormatter getFormatter(Granularity.Formatter type)
- Specified by:
getFormatter
in classGranularity
-
increment
public long increment(long time)
- Specified by:
increment
in classGranularity
-
increment
public org.joda.time.DateTime increment(org.joda.time.DateTime time)
- Specified by:
increment
in classGranularity
-
bucketStart
public long bucketStart(long time)
- Specified by:
bucketStart
in classGranularity
-
bucketStart
public org.joda.time.DateTime bucketStart(org.joda.time.DateTime time)
- Specified by:
bucketStart
in classGranularity
-
toDate
public org.joda.time.DateTime toDate(String filePath, Granularity.Formatter formatter)
- Specified by:
toDate
in classGranularity
-
isAligned
public boolean isAligned(org.joda.time.Interval interval)
Any interval is aligned with none granularity since it's effectively millisecond granularity.- Specified by:
isAligned
in classGranularity
-
getCacheKey
public byte[] getCacheKey()
Description copied from interface:Cacheable
Get a byte array used as a cache key.- Returns:
- a cache key
-
-