org.apache.hadoop.hive.ql.io
Class HiveKey

java.lang.Object
  extended by BytesWritable
      extended by org.apache.hadoop.hive.ql.io.HiveKey

public class HiveKey
extends BytesWritable

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 java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myHashCode

protected int myHashCode
Constructor Detail

HiveKey

public HiveKey()
Method Detail

setHashCode

public void setHashCode(int myHashCode)

hashCode

public int hashCode()


Copyright © 2012 The Apache Software Foundation