org.apache.hadoop.hive.ql.io
Interface HivePartitioner<K2,V2>

All Superinterfaces:
org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<K2,V2>
All Known Implementing Classes:
DefaultHivePartitioner

public interface HivePartitioner<K2,V2>
extends org.apache.hadoop.mapred.Partitioner<K2,V2>

Partition keys by their Object.hashCode().


Method Summary
 int getBucket(K2 key, V2 value, int numBuckets)
          Get the final bucket within a partition.
 
Methods inherited from interface org.apache.hadoop.mapred.Partitioner
getPartition
 
Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable
configure
 

Method Detail

getBucket

int getBucket(K2 key,
              V2 value,
              int numBuckets)
Get the final bucket within a partition.



Copyright © 2014 The Apache Software Foundation. All rights reserved.