public final class FactorizedDecimalEncodedValue extends SimpleIntEncodedValue implements DecimalEncodedValue
EncodedValue.InitializerConfigbwdDataIndex, fwdDataIndex| Constructor and Description |
|---|
FactorizedDecimalEncodedValue(String name,
int bits,
double factor,
boolean store2DirectedValues) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDecimal(boolean reverse,
IntsRef ref) |
void |
setDecimal(boolean reverse,
IntsRef ints,
double value)
This method stores the specified double value (rounding with a previously defined factor) into the IntsRef.
|
equals, getInt, getName, hashCode, init, setInt, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, initpublic FactorizedDecimalEncodedValue(String name, int bits, double factor, boolean store2DirectedValues)
public final void setDecimal(boolean reverse,
IntsRef ints,
double value)
DecimalEncodedValuesetDecimal in interface DecimalEncodedValuepublic final double getDecimal(boolean reverse,
IntsRef ref)
getDecimal in interface DecimalEncodedValueCopyright © 2012–2019. All rights reserved.