Class NoneGranularity

  • All Implemented Interfaces:
    Cacheable

    public class NoneGranularity
    extends Granularity
    NoneGranularity does not bucket data
    • Constructor Detail

      • NoneGranularity

        public NoneGranularity()
        This constructor is public b/c it is serialized and deserialized based on type in GranularityModule
    • Method Detail

      • increment

        public org.joda.time.DateTime increment​(org.joda.time.DateTime time)
        Specified by:
        increment in class Granularity
      • bucketStart

        public org.joda.time.DateTime bucketStart​(org.joda.time.DateTime time)
        Specified by:
        bucketStart in class Granularity
      • 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 class Granularity
      • getCacheKey

        public byte[] getCacheKey()
        Description copied from interface: Cacheable
        Get a byte array used as a cache key.
        Returns:
        a cache key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object