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
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rounding.Builderbuilder(DateTimeUnit unit)Deprecated.static Rounding.Builderbuilder(org.elasticsearch.core.TimeValue interval)Deprecated.abstract booleanDeprecated.abstract inthashCode()Deprecated.abstract byteid()Deprecated.abstract longnextRoundingValue(long value)Deprecated.Given the rounded value (which was potentially generated byround(long), returns the next rounding value.abstract longround(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.
-