|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
| Field Summary | |
|---|---|
protected int |
myHashCode
|
| Constructor Summary | |
|---|---|
HiveKey()
|
|
| Method Summary | |
|---|---|
int |
hashCode()
|
void |
setHashCode(int myHashCode)
|
| Methods inherited from class org.apache.hadoop.io.BytesWritable |
|---|
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 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected int myHashCode
| Constructor Detail |
|---|
public HiveKey()
| Method Detail |
|---|
public void setHashCode(int myHashCode)
public int hashCode()
hashCode in class org.apache.hadoop.io.BytesWritable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||