Class Rounding
java.lang.Object
org.elasticsearch.common.rounding.Rounding
- All Implemented Interfaces:
Writeable
Deprecated.
A strategy for rounding long values.
Use the java based Rounding class where applicable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.static class
Deprecated.Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rounding.Builder
builder(DateTimeUnit unit)
Deprecated.static Rounding.Builder
builder(org.elasticsearch.core.TimeValue interval)
Deprecated.abstract boolean
Deprecated.abstract int
hashCode()
Deprecated.abstract byte
id()
Deprecated.abstract long
nextRoundingValue(long value)
Deprecated.Given the rounded value (which was potentially generated byround(long)
, returns the next rounding value.abstract long
round(long value)
Deprecated.Rounds the given value.
-
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 byround(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
Deprecated. -
hashCode
public abstract int hashCode()Deprecated. -
builder
Deprecated. -
builder
Deprecated.
-