public class HiveChar extends HiveBaseChar implements Comparable<HiveChar>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CHAR_LENGTH |
value| Constructor and Description |
|---|
HiveChar() |
HiveChar(HiveChar hc,
int len) |
HiveChar(String val,
int len) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HiveChar rhs) |
boolean |
equals(Object rhs) |
int |
getCharacterLength() |
String |
getPaddedValue() |
String |
getStrippedValue() |
int |
hashCode() |
void |
setValue(String val) |
void |
setValue(String val,
int len)
Set char value, padding or truncating the value to the size of len parameter.
|
String |
toString() |
enforceMaxLength, getPaddedValue, getValue, setValuepublic static final int MAX_CHAR_LENGTH
public HiveChar()
public HiveChar(String val, int len)
public HiveChar(HiveChar hc, int len)
public void setValue(String val, int len)
setValue in class HiveBaseCharval - new valuepublic void setValue(String val)
public String getStrippedValue()
public String getPaddedValue()
public int getCharacterLength()
getCharacterLength in class HiveBaseCharpublic String toString()
toString in class HiveBaseCharpublic int compareTo(HiveChar rhs)
compareTo in interface Comparable<HiveChar>public int hashCode()
hashCode in class HiveBaseCharCopyright © 2016 The Apache Software Foundation. All rights reserved.