org.apache.hadoop.hive.common.type
Class HiveBaseChar
java.lang.Object
org.apache.hadoop.hive.common.type.HiveBaseChar
- Direct Known Subclasses:
- HiveVarchar
public abstract class HiveBaseChar
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected String value
characterLength
protected int characterLength
HiveBaseChar
protected HiveBaseChar()
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