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

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

public abstract class HiveBaseChar
extends Object


Field Summary
protected  int characterLength
           
protected  String value
           
 
Constructor Summary
protected HiveBaseChar()
           
 
Method Summary
static String enforceMaxLength(String val, int maxLength)
           
 int getCharacterLength()
           
 String getValue()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected String value

characterLength

protected int characterLength
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)

getValue

public String getValue()

getCharacterLength

public int getCharacterLength()


Copyright © 2012 The Apache Software Foundation