org.apache.hadoop.hive.serde2.io
Class HiveCharWritable
java.lang.Object
org.apache.hadoop.hive.serde2.io.HiveBaseCharWritable
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.
Methods inherited from interface org.apache.hadoop.io.Writable |
readFields, write |
HiveCharWritable
public HiveCharWritable()
HiveCharWritable
public HiveCharWritable(HiveChar hc)
HiveCharWritable
public HiveCharWritable(HiveCharWritable hcw)
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.