org.apache.hadoop.hive.serde2.io
Class HiveDecimalWritable

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.io.HiveDecimalWritable

public class HiveDecimalWritable
extends Object


Constructor Summary
HiveDecimalWritable()
           
HiveDecimalWritable(byte[] bytes, int scale)
           
HiveDecimalWritable(HiveDecimal value)
           
HiveDecimalWritable(HiveDecimalWritable writable)
           
 
Method Summary
 int compareTo(HiveDecimalWritable that)
           
 boolean equals(Object other)
           
 HiveDecimal getHiveDecimal()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(byte[] bytes, int scale)
           
 void set(HiveDecimal value)
           
 void set(HiveDecimalWritable writable)
           
 void setFromBytes(byte[] bytes, int offset, int length)
           
 String toString()
           
 void write(DataOutput out)
           
 void writeToByteStream(ByteStream.Output byteStream)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HiveDecimalWritable

public HiveDecimalWritable()

HiveDecimalWritable

public HiveDecimalWritable(byte[] bytes,
                           int scale)

HiveDecimalWritable

public HiveDecimalWritable(HiveDecimalWritable writable)

HiveDecimalWritable

public HiveDecimalWritable(HiveDecimal value)
Method Detail

set

public void set(HiveDecimal value)

set

public void set(HiveDecimalWritable writable)

set

public void set(byte[] bytes,
                int scale)

setFromBytes

public void setFromBytes(byte[] bytes,
                         int offset,
                         int length)

getHiveDecimal

public HiveDecimal getHiveDecimal()

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

compareTo

public int compareTo(HiveDecimalWritable that)

writeToByteStream

public void writeToByteStream(ByteStream.Output byteStream)

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 The Apache Software Foundation