org.apache.hadoop.hive.ql.io
Class DefaultHivePartitioner<K2,V2>
java.lang.Object
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()
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHivePartitioner
public DefaultHivePartitioner()
getBucket
public int getBucket(K2 key,
V2 value,
int numBuckets)
- Use
Object.hashCode()
to partition.
Copyright © 2012 The Apache Software Foundation