public class HiveCharWritable extends HiveBaseCharWritable implements org.apache.hadoop.io.WritableComparable<HiveCharWritable>
charLength, value
Constructor and Description |
---|
HiveCharWritable() |
HiveCharWritable(byte[] bytes,
int maxLength) |
HiveCharWritable(HiveChar hc) |
HiveCharWritable(HiveCharWritable hcw) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HiveCharWritable rhs) |
void |
enforceMaxLength(int maxLength) |
boolean |
equals(Object rhs) |
int |
getCharacterLength() |
HiveChar |
getHiveChar() |
org.apache.hadoop.io.Text |
getPaddedValue() |
org.apache.hadoop.io.Text |
getStrippedValue() |
int |
hashCode() |
void |
set(byte[] bytes,
int maxLength) |
void |
set(HiveChar val) |
void |
set(HiveChar val,
int len) |
void |
set(HiveCharWritable val) |
void |
set(HiveCharWritable val,
int maxLength) |
void |
set(String val) |
void |
set(String val,
int maxLength) |
static byte[] |
stripTrailingWhitespace(org.apache.hadoop.io.Text valueToStrip) |
String |
toString() |
getTextValue, readFields, write
public HiveCharWritable()
public HiveCharWritable(HiveChar hc)
public HiveCharWritable(HiveCharWritable hcw)
public HiveCharWritable(byte[] bytes, int maxLength)
public void set(byte[] bytes, int maxLength)
public void set(HiveChar val)
public void set(String val)
public void set(HiveCharWritable val)
public void set(HiveCharWritable val, int maxLength)
public void set(HiveChar val, int len)
public void set(String val, int maxLength)
public HiveChar getHiveChar()
public void enforceMaxLength(int maxLength)
public org.apache.hadoop.io.Text getStrippedValue()
public org.apache.hadoop.io.Text getPaddedValue()
public int getCharacterLength()
getCharacterLength
in class HiveBaseCharWritable
public int compareTo(HiveCharWritable rhs)
compareTo
in interface Comparable<HiveCharWritable>
public boolean equals(Object rhs)
equals
in class HiveBaseCharWritable
public int hashCode()
hashCode
in class HiveBaseCharWritable
public static byte[] stripTrailingWhitespace(org.apache.hadoop.io.Text valueToStrip)
Copyright © 2022 The Apache Software Foundation. All rights reserved.