org.apache.hadoop.hive.common.type
Class HiveBaseChar
java.lang.Object
org.apache.hadoop.hive.common.type.HiveBaseChar
- Direct Known Subclasses:
- HiveChar, HiveVarchar
public abstract class HiveBaseChar
- extends Object
value
protected String value
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)
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.