This project has retired. For details please refer to its
Attic page.
TotalOrderPartitioner (Apache Crunch 0.12.0 API)
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Partitioner<K,V>
-
- org.apache.crunch.lib.sort.TotalOrderPartitioner<K,V>
-
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
public class TotalOrderPartitioner<K,V>
extends org.apache.hadoop.mapreduce.Partitioner<K,V>
implements org.apache.hadoop.conf.Configurable
A partition-aware Partitioner
instance that can work with either Avro or Writable-formatted
keys.
-
-
Method Summary
Methods
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) |
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.