public class TotalOrderPartitioner<K,V>
extends org.apache.hadoop.mapreduce.Partitioner<K,V>
implements org.apache.hadoop.conf.Configurable
Partitioner instance that can work with either Avro or Writable-formatted
 keys.| Modifier and Type | Class and Description | 
|---|---|
| static class  | TotalOrderPartitioner.BinarySearchNode<K> | 
| static interface  | TotalOrderPartitioner.Node<T>Interface to the partitioner to locate a key in the partition keyset. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_PATH | 
| static String | PARTITIONER_PATH | 
| Constructor and Description | 
|---|
| TotalOrderPartitioner() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.conf.Configuration | getConf() | 
| int | getPartition(K key,
            V value,
            int modulo) | 
| static String | getPartitionFile(org.apache.hadoop.conf.Configuration conf) | 
| void | setConf(org.apache.hadoop.conf.Configuration conf) | 
| static void | setPartitionFile(org.apache.hadoop.conf.Configuration conf,
                org.apache.hadoop.fs.Path p) | 
public static final String DEFAULT_PATH
public static final String PARTITIONER_PATH
public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic static void setPartitionFile(org.apache.hadoop.conf.Configuration conf,
                                    org.apache.hadoop.fs.Path p)
public static String getPartitionFile(org.apache.hadoop.conf.Configuration conf)
Copyright © 2017 The Apache Software Foundation. All rights reserved.