Class Rounding

java.lang.Object
org.elasticsearch.common.rounding.Rounding
All Implemented Interfaces:
Writeable

@Deprecated public abstract class Rounding extends Object implements Writeable
Deprecated.
A strategy for rounding long values. Use the java based Rounding class where applicable
  • Constructor Details

    • Rounding

      public Rounding()
      Deprecated.
  • Method Details

    • id

      public abstract byte id()
      Deprecated.
    • round

      public abstract long round(long value)
      Deprecated.
      Rounds the given value.
    • nextRoundingValue

      public abstract long nextRoundingValue(long value)
      Deprecated.
      Given the rounded value (which was potentially generated by round(long), returns the next rounding value. For example, with interval based rounding, if the interval is 3, nextRoundValue(6) = 9 .
      Parameters:
      value - The current rounding value
      Returns:
      The next rounding value;
    • equals

      public abstract boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • builder

      public static Rounding.Builder builder(DateTimeUnit unit)
      Deprecated.
    • builder

      public static Rounding.Builder builder(org.elasticsearch.core.TimeValue interval)
      Deprecated.