org.apache.pig.backend.hadoop
Class BigDecimalWritable

java.lang.Object
  extended by org.apache.pig.backend.hadoop.BigDecimalWritable
All Implemented Interfaces:
Comparable<BigDecimalWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<BigDecimalWritable>

public class BigDecimalWritable
extends Object
implements org.apache.hadoop.io.WritableComparable<BigDecimalWritable>


Nested Class Summary
static class BigDecimalWritable.Comparator
          A Comparator optimized for BigDecimalWritable.
 
Constructor Summary
BigDecimalWritable()
           
BigDecimalWritable(BigDecimal bi)
           
 
Method Summary
 int compareTo(BigDecimalWritable o)
           
 boolean equals(Object o)
           
 BigDecimal get()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(BigDecimal value)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BigDecimalWritable

public BigDecimalWritable()

BigDecimalWritable

public BigDecimalWritable(BigDecimal bi)
Method Detail

set

public void set(BigDecimal value)

get

public BigDecimal get()

compareTo

public int compareTo(BigDecimalWritable o)
Specified by:
compareTo in interface Comparable<BigDecimalWritable>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2007-2012 The Apache Software Foundation