public abstract class Partitioner
extends java.lang.Object
Constructor and Description |
---|
Partitioner() |
Modifier and Type | Method and Description |
---|---|
abstract CellInfo |
getPartition(int partitionID)
Returns the details of a specific partition.
|
static Partitioner |
getPartitioner(Configuration conf)
Retrieves the value of a partitioner for a given job.
|
abstract void |
overlapPartitions(Shape shape,
ResultCollector<java.lang.Integer> matcher)
Overlap a shape with partitions and calls a matcher for each overlapping
partition.
|
static void |
setPartitioner(Configuration conf,
Partitioner partitioner)
Sets the class and value of a partitioner in the given job
|
public abstract void overlapPartitions(Shape shape, ResultCollector<java.lang.Integer> matcher)
shape
- matcher
- public abstract CellInfo getPartition(int partitionID)
partitionID
- public static void setPartitioner(Configuration conf, Partitioner partitioner) throws java.io.IOException
conf
- partitioner
- java.io.IOException
public static Partitioner getPartitioner(Configuration conf)
conf
-