org.apache.hadoop.hive.serde2.io
Class HiveDecimalWritable
java.lang.Object
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
public class HiveDecimalWritable
- extends Object
HiveDecimalWritable
public HiveDecimalWritable()
HiveDecimalWritable
public HiveDecimalWritable(byte[] bytes,
int scale)
HiveDecimalWritable
public HiveDecimalWritable(HiveDecimalWritable writable)
HiveDecimalWritable
public HiveDecimalWritable(HiveDecimal value)
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