public class GridPartitioner extends Partitioner
| Constructor and Description |
|---|
GridPartitioner()
A default constructor to be able to dynamically instantiate it
and deserialize it
|
GridPartitioner(Path[] inFiles,
JobConf job)
Initializes a grid partitioner for a given file
|
GridPartitioner(Path[] inFiles,
JobConf job,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
CellInfo |
getPartition(int partitionID)
Returns the details of a specific partition.
|
void |
overlapPartitions(Shape shape,
ResultCollector<java.lang.Integer> matcher)
Overlap a shape with partitions and calls a matcher for each overlapping
partition.
|
void |
readFields(java.io.DataInput in) |
void |
write(java.io.DataOutput out) |
getPartitioner, setPartitionerpublic GridPartitioner()
public GridPartitioner(Path[] inFiles,
JobConf job)
inFile - params - public GridPartitioner(Path[] inFiles,
JobConf job,
int width,
int height)
public void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic void overlapPartitions(Shape shape, ResultCollector<java.lang.Integer> matcher)
PartitioneroverlapPartitions in class Partitionerpublic CellInfo getPartition(int partitionID)
PartitionergetPartition in class Partitioner