Package | Description |
---|---|
org.apache.hadoop.hive.common.type |
Modifier and Type | Field and Description |
---|---|
static UnsignedInt128[] |
SqlMathUtil.INVERSE_POWER_FIVES_INT128
1/5^x, scaled to 128bits (in other words, 2^128/5^x).
|
static UnsignedInt128[] |
SqlMathUtil.INVERSE_POWER_TENS_INT128
1/10^x, scaled to 128bits, also word-shifted for better accuracy.
|
static UnsignedInt128 |
UnsignedInt128.MAX_VALUE
Maximum value that can be represented in this class.
|
static UnsignedInt128 |
UnsignedInt128.MIN_VALUE
Minimum value that can be represented in this class.
|
static UnsignedInt128[] |
SqlMathUtil.POWER_FIVES_INT128
5^x.
|
static UnsignedInt128[] |
SqlMathUtil.POWER_TENS_INT128
10^x.
|
static UnsignedInt128[] |
SqlMathUtil.ROUND_POWER_TENS_INT128
5 * 10^(x-1).
|
static UnsignedInt128 |
UnsignedInt128.TEN_TO_THIRTYEIGHT
A special value representing 10**38.
|
Modifier and Type | Method and Description |
---|---|
UnsignedInt128 |
UnsignedInt128.addConstructive(UnsignedInt128 right)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.decrementConstructive()
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.divideConstructive(int right)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.divideConstructive(UnsignedInt128 right,
UnsignedInt128 remainder)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
Decimal128.getUnscaledValue()
Returns unscaled value of this
Decimal128 . |
UnsignedInt128 |
UnsignedInt128.incrementConstructive()
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.multiplyConstructive(int right)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.multiplyConstructive(UnsignedInt128 right)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.shiftLeftConstructive(int bits)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.shiftRightConstructive(int bits,
boolean roundUp)
This version returns the result as a new object, not modifying the give
objects.
|
UnsignedInt128 |
UnsignedInt128.subtractConstructive(UnsignedInt128 right)
This version returns the result as a new object, not modifying the give
objects.
|
Modifier and Type | Method and Description |
---|---|
UnsignedInt128 |
UnsignedInt128.addConstructive(UnsignedInt128 right)
This version returns the result as a new object, not modifying the give
objects.
|
void |
UnsignedInt128.addDestructive(UnsignedInt128 right)
Adds the given value to this value.
|
void |
UnsignedInt128.addDestructiveScaleTen(UnsignedInt128 right,
short tenScale)
Adds the given value after scaling to this value.
|
int |
UnsignedInt128.compareTo(UnsignedInt128 o) |
int |
UnsignedInt128.compareToScaleTen(UnsignedInt128 o,
short tenScale)
Compares with the given object after scaling up/down it for 10**scaleUp.
|
static byte |
UnsignedInt128.difference(UnsignedInt128 left,
UnsignedInt128 right,
UnsignedInt128 result)
Calculates absolute difference (remember that this is unsigned) of left and
right operator.
|
static byte |
UnsignedInt128.differenceScaleTen(UnsignedInt128 left,
UnsignedInt128 right,
UnsignedInt128 result,
short tenScale)
Calculates absolute difference of left and right operator after ten-based
scaling on right.
|
UnsignedInt128 |
UnsignedInt128.divideConstructive(UnsignedInt128 right,
UnsignedInt128 remainder)
This version returns the result as a new object, not modifying the give
objects.
|
void |
UnsignedInt128.divideDestructive(UnsignedInt128 right,
UnsignedInt128 remainder)
Divides this value with the given value.
|
void |
UnsignedInt128.divideScaleUpTenDestructive(UnsignedInt128 right,
short tenScale,
UnsignedInt128 remainder)
Scale up this object for 10**tenScale and then divides this value with the
given value.
|
boolean |
UnsignedInt128.equals(UnsignedInt128 o)
Specialized version.
|
UnsignedInt128 |
UnsignedInt128.multiplyConstructive(UnsignedInt128 right)
This version returns the result as a new object, not modifying the give
objects.
|
int[] |
UnsignedInt128.multiplyConstructive256(UnsignedInt128 right)
This version returns the result of multiplication as 256bit data.
|
void |
UnsignedInt128.multiplyDestructive(UnsignedInt128 right)
Multiplies this value with the given value.
|
void |
UnsignedInt128.multiplyScaleDownTenDestructive(UnsignedInt128 right,
short tenScale)
Multiply this value with the given value, followed by ten-based scale down.
|
void |
UnsignedInt128.multiplyShiftDestructive(UnsignedInt128 right,
short rightShifts)
Multiplies this value with the given value, followed by right bit shifts to
scale it back to this object.
|
void |
Decimal128.setUnscaledValue(UnsignedInt128 unscaledValue)
This setter is only for de-serialization, should not be used otherwise.
|
UnsignedInt128 |
UnsignedInt128.subtractConstructive(UnsignedInt128 right)
This version returns the result as a new object, not modifying the give
objects.
|
void |
UnsignedInt128.subtractDestructive(UnsignedInt128 right)
Subtracts the given value from this value.
|
void |
UnsignedInt128.update(UnsignedInt128 o)
Copy from the given object.
|
void |
Decimal128.zeroFractionPart(UnsignedInt128 scratch)
Zero the fractional part of value.
|
Constructor and Description |
---|
Decimal128(UnsignedInt128 unscaledVal,
short scale,
boolean negative)
Translates a
UnsignedInt128 unscaled value, an int scale,
and sign flag into a Decimal128 . |
SignedInt128(UnsignedInt128 mag)
Construct this object from UnsignedInt128.
|
UnsignedInt128(UnsignedInt128 o)
Copy constructor.
|
Copyright © 2017 The Apache Software Foundation. All rights reserved.