org.apache.pig.builtin
Class BigIntegerWrapper

java.lang.Object
  extended by java.lang.Number
      extended by java.math.BigInteger
          extended by org.apache.pig.builtin.BigIntegerWrapper
All Implemented Interfaces:
Serializable, Comparable<BigInteger>

public class BigIntegerWrapper
extends BigInteger

Max and min seeds cannot be defined to BigInteger as the value could go as large as The computer allows. This wrapper is used to provide seed for MIN and MAX functions in AlgrebraicBigIntegerMathBase.java

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.math.BigInteger
ONE, TEN, ZERO
 
Constructor Summary
BigIntegerWrapper(byte[] val)
           
BigIntegerWrapper(int signum, byte[] magnitude)
           
BigIntegerWrapper(int bitLength, int certainty, Random rnd)
           
BigIntegerWrapper(int numBits, Random rnd)
           
BigIntegerWrapper(String val)
           
BigIntegerWrapper(String val, int radix)
           
 
Method Summary
 boolean isNegativeInfinity()
           
 boolean isPositiveInfinity()
           
static BigIntegerWrapper NEGATIVE_INFINITY()
           
static BigIntegerWrapper POSITIVE_INFINITY()
           
 
Methods inherited from class java.math.BigInteger
abs, add, and, andNot, bitCount, bitLength, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, isProbablePrime, longValue, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, signum, subtract, testBit, toByteArray, toString, toString, valueOf, xor
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BigIntegerWrapper

public BigIntegerWrapper(byte[] val)

BigIntegerWrapper

public BigIntegerWrapper(int signum,
                         byte[] magnitude)

BigIntegerWrapper

public BigIntegerWrapper(int bitLength,
                         int certainty,
                         Random rnd)

BigIntegerWrapper

public BigIntegerWrapper(int numBits,
                         Random rnd)

BigIntegerWrapper

public BigIntegerWrapper(String val)

BigIntegerWrapper

public BigIntegerWrapper(String val,
                         int radix)
Method Detail

isPositiveInfinity

public boolean isPositiveInfinity()

isNegativeInfinity

public boolean isNegativeInfinity()

NEGATIVE_INFINITY

public static BigIntegerWrapper NEGATIVE_INFINITY()

POSITIVE_INFINITY

public static BigIntegerWrapper POSITIVE_INFINITY()


Copyright © 2007-2012 The Apache Software Foundation