org.apache.pig.builtin
Class BigDecimalWrapper
java.lang.Object
java.lang.Number
java.math.BigDecimal
org.apache.pig.builtin.BigDecimalWrapper
- All Implemented Interfaces:
- Serializable, Comparable<BigDecimal>
public class BigDecimalWrapper
- extends BigDecimal
Max and min seeds cannot be defined to BigDecimal as the value could go as large as
The computer allows. This wrapper is used to provide seed for MIN and MAX functions
in AlgrebraicBigDecimalMathBase.java
- See Also:
- Serialized Form
Fields inherited from class java.math.BigDecimal |
ONE, ROUND_CEILING, ROUND_DOWN, ROUND_FLOOR, ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, ROUND_UNNECESSARY, ROUND_UP, TEN, ZERO |
Constructor Summary |
BigDecimalWrapper(BigInteger val)
|
BigDecimalWrapper(BigInteger unscaledVal,
int scale)
|
BigDecimalWrapper(BigInteger unscaledVal,
int scale,
MathContext mc)
|
BigDecimalWrapper(BigInteger val,
MathContext mc)
|
BigDecimalWrapper(char[] in)
|
BigDecimalWrapper(char[] in,
int offset,
int len)
|
BigDecimalWrapper(char[] in,
int offset,
int len,
MathContext mc)
|
BigDecimalWrapper(char[] in,
MathContext mc)
|
BigDecimalWrapper(double val)
|
BigDecimalWrapper(double val,
MathContext mc)
|
BigDecimalWrapper(int val)
|
BigDecimalWrapper(int val,
MathContext mc)
|
BigDecimalWrapper(long val)
|
BigDecimalWrapper(long val,
MathContext mc)
|
BigDecimalWrapper(String val)
|
BigDecimalWrapper(String val,
MathContext mc)
|
Methods inherited from class java.math.BigDecimal |
abs, abs, add, add, byteValueExact, compareTo, divide, divide, divide, divide, divide, divide, divideAndRemainder, divideAndRemainder, divideToIntegralValue, divideToIntegralValue, doubleValue, equals, floatValue, hashCode, intValue, intValueExact, longValue, longValueExact, max, min, movePointLeft, movePointRight, multiply, multiply, negate, negate, plus, plus, pow, pow, precision, remainder, remainder, round, scale, scaleByPowerOfTen, setScale, setScale, setScale, shortValueExact, signum, stripTrailingZeros, subtract, subtract, toBigInteger, toBigIntegerExact, toEngineeringString, toPlainString, toString, ulp, unscaledValue, valueOf, valueOf, valueOf |
BigDecimalWrapper
public BigDecimalWrapper(BigInteger val)
BigDecimalWrapper
public BigDecimalWrapper(BigInteger unscaledVal,
int scale)
BigDecimalWrapper
public BigDecimalWrapper(BigInteger unscaledVal,
int scale,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(BigInteger val,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(char[] in)
BigDecimalWrapper
public BigDecimalWrapper(char[] in,
int offset,
int len)
BigDecimalWrapper
public BigDecimalWrapper(char[] in,
int offset,
int len,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(char[] in,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(double val)
BigDecimalWrapper
public BigDecimalWrapper(double val,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(int val)
BigDecimalWrapper
public BigDecimalWrapper(int val,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(long val)
BigDecimalWrapper
public BigDecimalWrapper(long val,
MathContext mc)
BigDecimalWrapper
public BigDecimalWrapper(String val)
BigDecimalWrapper
public BigDecimalWrapper(String val,
MathContext mc)
isPositiveInfinity
public boolean isPositiveInfinity()
isNegativeInfinity
public boolean isNegativeInfinity()
NEGATIVE_INFINITY
public static BigDecimalWrapper NEGATIVE_INFINITY()
POSITIVE_INFINITY
public static BigDecimalWrapper POSITIVE_INFINITY()
Copyright © 2007-2012 The Apache Software Foundation