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, setValue
public 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 HiveBaseChar
val
- new valuepublic void setValue(String val)
public String getStrippedValue()
public String getPaddedValue()
public int getCharacterLength()
getCharacterLength
in class HiveBaseChar
public String toString()
toString
in class HiveBaseChar
public int compareTo(HiveChar rhs)
compareTo
in interface Comparable<HiveChar>
public int hashCode()
hashCode
in class HiveBaseChar
Copyright © 2017 The Apache Software Foundation. All rights reserved.