public class ClosestPair
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ClosestPair.Map |
static class |
ClosestPair.Reduce |
Constructor and Description |
---|
ClosestPair() |
Modifier and Type | Method and Description |
---|---|
static void |
closestPair(Path file,
OperationsParams params)
Counts the exact number of lines in a file by issuing a MapReduce job
that does the thing
|
static <S extends Shape> |
closestPairLocal(FileSystem fs,
Path file,
S stockShape) |
static <S extends Point> |
closestPairStream(S p)
Computes the closest pair by reading points from stream
|
static void |
main(java.lang.String[] args) |
static edu.umn.cs.spatialHadoop.operations.ClosestPair.DistanceAndPair |
nearestNeighbor(Shape[] a,
Point[] tmp,
int l,
int r)
[l, r] inclusive
|
public static edu.umn.cs.spatialHadoop.operations.ClosestPair.DistanceAndPair nearestNeighbor(Shape[] a, Point[] tmp, int l, int r)
l
- r
- public static <S extends Point> void closestPairStream(S p) throws java.io.IOException
p
- java.io.IOException
public static <S extends Shape> void closestPairLocal(FileSystem fs, Path file, S stockShape) throws java.io.IOException
java.io.IOException
public static void closestPair(Path file, OperationsParams params) throws java.io.IOException
conf
- fs
- file
- java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
args
- java.io.IOException