Class DateHistogramInterval

    • Constructor Detail

      • DateHistogramInterval

        public DateHistogramInterval​(java.lang.String expression)
      • DateHistogramInterval

        public DateHistogramInterval​(StreamInput in)
                              throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • estimateMillis

        public long estimateMillis()
        Converts this DateHistogramInterval into a millisecond representation. If this is a calendar interval, it is an approximation of milliseconds based on the fixed equivalent (e.g. `1h` is treated as 60 fixed minutes, rather than the hour at a specific point in time. This is merely a convenience helper for quick comparisons and should not be used for situations that require precise durations.