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

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.io.HiveBaseCharWritable
      extended by org.apache.hadoop.hive.serde2.io.HiveCharWritable
All Implemented Interfaces:
Comparable<HiveCharWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<HiveCharWritable>

public class HiveCharWritable
extends HiveBaseCharWritable
implements org.apache.hadoop.io.WritableComparable<HiveCharWritable>

HiveCharWritable. String values will be padded to full char length. Character legnth, comparison, hashCode should ignore trailing spaces.


Constructor Summary
HiveCharWritable()
           
HiveCharWritable(HiveChar hc)
           
HiveCharWritable(HiveCharWritable hcw)
           
 
Method Summary
 int compareTo(HiveCharWritable rhs)
           
 void enforceMaxLength(int maxLength)
           
 boolean equals(Object rhs)
           
 int getCharacterLength()
           
 HiveChar getHiveChar()
           
 org.apache.hadoop.io.Text getPaddedValue()
           
 org.apache.hadoop.io.Text getStrippedValue()
           
 int hashCode()
           
 void set(HiveChar val)
           
 void set(HiveChar val, int len)
           
 void set(HiveCharWritable val)
           
 void set(HiveCharWritable val, int maxLength)
           
 void set(String val)
           
 void set(String val, int maxLength)
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.io.HiveBaseCharWritable
getTextValue, readFields, write
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Constructor Detail

HiveCharWritable

public HiveCharWritable()

HiveCharWritable

public HiveCharWritable(HiveChar hc)

HiveCharWritable

public HiveCharWritable(HiveCharWritable hcw)
Method Detail

set

public void set(HiveChar val)

set

public void set(String val)

set

public void set(HiveCharWritable val)

set

public void set(HiveCharWritable val,
                int maxLength)

set

public void set(HiveChar val,
                int len)

set

public void set(String val,
                int maxLength)

getHiveChar

public HiveChar getHiveChar()

enforceMaxLength

public void enforceMaxLength(int maxLength)

getStrippedValue

public org.apache.hadoop.io.Text getStrippedValue()

getPaddedValue

public org.apache.hadoop.io.Text getPaddedValue()

getCharacterLength

public int getCharacterLength()
Overrides:
getCharacterLength in class HiveBaseCharWritable

compareTo

public int compareTo(HiveCharWritable rhs)
Specified by:
compareTo in interface Comparable<HiveCharWritable>

equals

public boolean equals(Object rhs)
Overrides:
equals in class HiveBaseCharWritable

hashCode

public int hashCode()
Overrides:
hashCode in class HiveBaseCharWritable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 The Apache Software Foundation. All rights reserved.