org.apache.hadoop.mapred.lib
Class TotalOrderPartitioner<K extends WritableComparable<?>,V>
java.lang.Object
org.apache.hadoop.mapreduce.Partitioner<K,V>
org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner<K,V>
org.apache.hadoop.mapred.lib.TotalOrderPartitioner<K,V>
- All Implemented Interfaces:
- Configurable, JobConfigurable, Partitioner<K,V>
@InterfaceAudience.Public
@InterfaceStability.Stable
public class TotalOrderPartitioner<K extends WritableComparable<?>,V>
- extends TotalOrderPartitioner<K,V>
- implements Partitioner<K,V>
Partitioner effecting a total order by reading split points from
an externally generated source.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TotalOrderPartitioner
public TotalOrderPartitioner()
configure
public void configure(JobConf job)
- Description copied from interface:
JobConfigurable
- Initializes a new instance from a
JobConf
.
- Specified by:
configure
in interface JobConfigurable
- Parameters:
job
- the configuration
setPartitionFile
@Deprecated
public static void setPartitionFile(JobConf job,
Path p)
- Deprecated. Use
TotalOrderPartitioner.setPartitionFile(Configuration, Path)
instead
- Set the path to the SequenceFile storing the sorted partition keyset.
It must be the case that for R reduces, there are R-1
keys in the SequenceFile.
getPartitionFile
@Deprecated
public static String getPartitionFile(JobConf job)
- Deprecated. Use
TotalOrderPartitioner.getPartitionFile(Configuration)
instead
- Get the path to the SequenceFile storing the sorted partition keyset.
- See Also:
setPartitionFile(JobConf,Path)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.