public static class Rounding.OffsetRounding extends Rounding
Rounding.FactorRounding, Rounding.Interval, Rounding.OffsetRounding, Rounding.Streams| コンストラクタと説明 |
|---|
OffsetRounding(Rounding intervalRounding,
long offset) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
byte |
id() |
long |
nextRoundingValue(long value)
Given the rounded value (which was potentially generated by
Rounding.round(long), returns the next rounding value. |
void |
readFrom(StreamInput in) |
long |
roundKey(long value)
Given a value, compute a key that uniquely identifies the rounded value although it is not necessarily equal to the rounding value itself.
|
long |
valueForKey(long key)
Compute the rounded value given the key that identifies it.
|
void |
writeTo(StreamOutput out) |
public OffsetRounding(Rounding intervalRounding, long offset)
public long roundKey(long value)
Roundingpublic long valueForKey(long key)
RoundingvalueForKey クラス内 Roundingpublic long nextRoundingValue(long value)
RoundingRounding.round(long), returns the next rounding value. For example, with
interval based rounding, if the interval is 3, nextRoundValue(6) = 9 .nextRoundingValue クラス内 Roundingvalue - The current rounding valuepublic void readFrom(StreamInput in) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.