Package | Description |
---|---|
org.apache.hadoop.hive.serde2.io |
Modifier and Type | Field and Description |
---|---|
static int |
HiveDecimalWritable.DECIMAL64_DECIMAL_DIGITS |
Modifier and Type | Method and Description |
---|---|
int |
HiveDecimalWritable.bigIntegerBytes(long[] scratchLongs,
byte[] scratchBuffer) |
byte[] |
HiveDecimalWritable.bigIntegerBytesCopy(long[] scratchLongs,
byte[] scratchBuffer)
Allocate scratchLongs with HiveDecimal.SCRATCH_LONGS_LEN longs.
|
int |
HiveDecimalWritable.bigIntegerBytesInternalScratch()
Returns the length of the decimal converted to bytes.
|
byte[] |
HiveDecimalWritable.bigIntegerBytesInternalScratchBuffer()
Returns the scratch array containing the result after a call to bigIntegerBytesInternalScratch.
|
byte |
HiveDecimalWritable.byteValue() |
int |
HiveDecimalWritable.compareTo(HiveDecimal dec) |
static int |
HiveDecimalWritable.compareTo(HiveDecimal dec,
HiveDecimalWritable writable) |
void |
HiveDecimalWritable.deserialize64(long decimal64Long,
int scale) |
double |
HiveDecimalWritable.doubleValue() |
float |
HiveDecimalWritable.floatValue() |
static long |
HiveDecimalWritable.getDecimal64AbsMax(int precision) |
int |
HiveDecimalWritable.intValue() |
boolean |
HiveDecimalWritable.isByte() |
boolean |
HiveDecimalWritable.isInt() |
boolean |
HiveDecimalWritable.isLong() |
static boolean |
HiveDecimalWritable.isPrecisionDecimal64(int precision) |
boolean |
HiveDecimalWritable.isSet()
Does this writable have a current value?
|
boolean |
HiveDecimalWritable.isShort() |
boolean |
HiveDecimalWritable.isValid() |
long |
HiveDecimalWritable.longValue() |
void |
HiveDecimalWritable.mutateAbs() |
void |
HiveDecimalWritable.mutateAdd(HiveDecimal dec) |
void |
HiveDecimalWritable.mutateAdd(HiveDecimalWritable decWritable) |
void |
HiveDecimalWritable.mutateDivide(HiveDecimal dec) |
void |
HiveDecimalWritable.mutateDivide(HiveDecimalWritable decWritable) |
boolean |
HiveDecimalWritable.mutateEnforcePrecisionScale(int precision,
int scale) |
void |
HiveDecimalWritable.mutateFractionPortion() |
void |
HiveDecimalWritable.mutateIntegerPortion() |
void |
HiveDecimalWritable.mutateMultiply(HiveDecimal dec) |
void |
HiveDecimalWritable.mutateMultiply(HiveDecimalWritable decWritable) |
void |
HiveDecimalWritable.mutateNegate() |
void |
HiveDecimalWritable.mutateRemainder(HiveDecimal dec) |
void |
HiveDecimalWritable.mutateRemainder(HiveDecimalWritable decWritable) |
void |
HiveDecimalWritable.mutateScaleByPowerOfTen(int power) |
void |
HiveDecimalWritable.mutateSetScale(int roundingPoint,
int roundingMode) |
void |
HiveDecimalWritable.mutateSubtract(HiveDecimal dec) |
void |
HiveDecimalWritable.mutateSubtract(HiveDecimalWritable decWritable) |
int |
HiveDecimalWritable.newFasterHashCode() |
int |
HiveDecimalWritable.precision() |
int |
HiveDecimalWritable.rawPrecision() |
int |
HiveDecimalWritable.scale() |
boolean |
HiveDecimalWritable.serializationUtilsRead(InputStream inputStream,
int scale,
byte[] scratchBytes)
See the comments for HiveDecimal.serializationUtilsRead.
|
boolean |
HiveDecimalWritable.serializationUtilsWrite(OutputStream outputStream,
long[] scratchLongs)
See the comments for HiveDecimal.serializationUtilsWrite.
|
long |
HiveDecimalWritable.serialize64(int scale) |
void |
HiveDecimalWritable.set(HiveDecimalWritable writable,
int maxPrecision,
int maxScale)
Set the writable's current value to a writable's value with a specified precision / scale
enforced.
|
void |
HiveDecimalWritable.setFromBigIntegerBytesAndScale(byte[] bigIntegerBytes,
int scale)
Set the writable's current value to the signed value from BigInteger bytes and a specified
scale.
|
void |
HiveDecimalWritable.setFromBigIntegerBytesAndScale(byte[] bigIntegerBytes,
int offset,
int length,
int scale) |
void |
HiveDecimalWritable.setFromBytes(byte[] bytes,
int offset,
int length)
Set the writable's current value to the decimal in a UTF-8 byte slice.
|
void |
HiveDecimalWritable.setFromBytes(byte[] bytes,
int offset,
int length,
boolean trimBlanks) |
void |
HiveDecimalWritable.setFromDigitsOnlyBytesWithScale(boolean isNegative,
byte[] bytes,
int offset,
int length,
int scale)
Set the writable's current value to the decimal digits only in a UTF-8 byte slice, a sign
flag, and a scale.
|
void |
HiveDecimalWritable.setFromDouble(double doubleValue)
Set a decimal writable's value to a doubles value.
|
void |
HiveDecimalWritable.setFromLong(long longValue)
Set a decimal writable's value to a long's value with scale 0.
|
void |
HiveDecimalWritable.setFromLongAndScale(long longValue,
int scale)
Set the writable's current value to the long's value at a specified
scale.
|
short |
HiveDecimalWritable.shortValue() |
int |
HiveDecimalWritable.signum() |
int |
HiveDecimalWritable.toBytes(byte[] scratchBuffer) |
int |
HiveDecimalWritable.toDigitsOnlyBytes(byte[] scratchBuffer) |
int |
HiveDecimalWritable.toFormatBytes(int formatScale,
byte[] scratchBuffer) |
String |
HiveDecimalWritable.toFormatString(int formatScale) |
String |
HiveDecimalWritable.toString(byte[] scratchBuffer) |
void |
HiveDecimalWritable.write(DataOutput out,
long[] scratchLongs,
byte[] scratchBuffer)
A variation of the standard Writable method that serialize the fields of this object to a
DataOutput with scratch buffers for good performance.
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.