public class DefaultHivePartitioner<K2,V2> extends org.apache.hadoop.mapred.lib.HashPartitioner<K2,V2> implements HivePartitioner<K2,V2>
Object.hashCode()
.Constructor and Description |
---|
DefaultHivePartitioner() |
Modifier and Type | Method and Description |
---|---|
int |
getBucket(K2 key,
V2 value,
int numBuckets)
Use
Object.hashCode() to partition. |
public int getBucket(K2 key, V2 value, int numBuckets)
Object.hashCode()
to partition.getBucket
in interface HivePartitioner<K2,V2>
Copyright © 2016 The Apache Software Foundation. All rights reserved.