|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.BinaryComparable org.apache.hadoop.io.BytesWritable org.apache.hadoop.hive.ql.io.HiveKey
public class HiveKey
HiveKey is a simple wrapper on Text which allows us to set the hashCode easily. hashCode is used for hadoop partitioner.
Nested Class Summary | |
---|---|
static class |
HiveKey.Comparator
A Comparator optimized for HiveKey. |
Constructor Summary | |
---|---|
HiveKey()
|
|
HiveKey(byte[] bytes,
int hashcode)
|
Method Summary | |
---|---|
int |
getDistKeyLength()
|
int |
hashCode()
|
void |
setDistKeyLength(int distKeyLength)
|
void |
setHashCode(int myHashCode)
|
Methods inherited from class org.apache.hadoop.io.BytesWritable |
---|
copyBytes, equals, get, getBytes, getCapacity, getLength, getSize, readFields, set, set, setCapacity, setSize, toString, write |
Methods inherited from class org.apache.hadoop.io.BinaryComparable |
---|
compareTo, compareTo |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public HiveKey()
public HiveKey(byte[] bytes, int hashcode)
Method Detail |
---|
public void setHashCode(int myHashCode)
public int hashCode()
hashCode
in class org.apache.hadoop.io.BytesWritable
public void setDistKeyLength(int distKeyLength)
public int getDistKeyLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |