org.apache.hadoop.hive.common.type
Class HiveBaseChar

java.lang.Object
  extended by org.apache.hadoop.hive.common.type.HiveBaseChar
Direct Known Subclasses:
HiveChar, HiveVarchar

public abstract class HiveBaseChar
extends Object


Field Summary
protected  String value
           
 
Constructor Summary
protected HiveBaseChar()
           
 
Method Summary
static String enforceMaxLength(String val, int maxLength)
           
 int getCharacterLength()
           
static String getPaddedValue(String val, int maxLength)
           
 String getValue()
           
 int hashCode()
           
 void setValue(HiveBaseChar val, int maxLength)
           
 void setValue(String val, int maxLength)
          Sets the string value to a new value, obeying the max length defined for this object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected String value
Constructor Detail

HiveBaseChar

protected HiveBaseChar()
Method Detail

setValue

public void setValue(String val,
                     int maxLength)
Sets the string value to a new value, obeying the max length defined for this object.

Parameters:
val - new value

setValue

public void setValue(HiveBaseChar val,
                     int maxLength)

enforceMaxLength

public static String enforceMaxLength(String val,
                                      int maxLength)

getPaddedValue

public static String getPaddedValue(String val,
                                    int maxLength)

getValue

public String getValue()

getCharacterLength

public int getCharacterLength()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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