org.apache.hadoop.hive.ql.io
Class DefaultHivePartitioner<K2,V2>

java.lang.Object
  extended by 
      extended by org.apache.hadoop.hive.ql.io.DefaultHivePartitioner<K2,V2>
All Implemented Interfaces:
HivePartitioner<K2,V2>

public class DefaultHivePartitioner<K2,V2>
extends
implements HivePartitioner<K2,V2>

Partition keys by their Object.hashCode().


Constructor Summary
DefaultHivePartitioner()
           
 
Method Summary
 int getBucket(K2 key, V2 value, int numBuckets)
          Use Object.hashCode() to partition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.ql.io.HivePartitioner
getBucket
 

Constructor Detail

DefaultHivePartitioner

public DefaultHivePartitioner()
Method Detail

getBucket

public int getBucket(K2 key,
                     V2 value,
                     int numBuckets)
Use Object.hashCode() to partition.



Copyright © 2012 The Apache Software Foundation