Package org.apache.hadoop.mapred.lib
Class TotalOrderPartitioner<K,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>
@Public
@Stable
public class TotalOrderPartitioner<K,V>
extends TotalOrderPartitioner<K,V>
implements Partitioner<K,V>
Partitioner effecting a total order by reading split points from
an externally generated source.
-
Field Summary
Fields inherited from class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner
DEFAULT_PATH, MAX_TRIE_DEPTH, NATURAL_ORDER, PARTITIONER_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes a new instance from aJobConf.static StringgetPartitionFile(JobConf job) Deprecated.static voidsetPartitionFile(JobConf job, Path p) Deprecated.UsesetPartitionFile(Configuration, Path)insteadMethods inherited from class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner
getConf, getPartition, getPartitionFile, setConf, setPartitionFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.mapred.Partitioner
getPartition
-
Constructor Details
-
TotalOrderPartitioner
public TotalOrderPartitioner()
-
-
Method Details
-
configure
Description copied from interface:JobConfigurableInitializes a new instance from aJobConf.- Specified by:
configurein interfaceJobConfigurable- Parameters:
job- the configuration
-
setPartitionFile
Deprecated.UsesetPartitionFile(Configuration, Path)insteadSet the path to the SequenceFile storing the sorted partition keyset. It must be the case that forRreduces, there areR-1keys in the SequenceFile. -
getPartitionFile
Deprecated.UsegetPartitionFile(Configuration)insteadGet the path to the SequenceFile storing the sorted partition keyset.- See Also:
-
getPartitionFile(Configuration)instead