public class ConvexHull
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConvexHull.ConvexHullFilter
Filters partitions to remove ones that do not contribute to answer.
|
static class |
ConvexHull.ConvexHullReducer |
static class |
ConvexHull.IdentityMapper
An identity map function that returns values as-is with a null key.
|
| Constructor and Description |
|---|
ConvexHull() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convexHull(Path inFile,
Path outFile,
boolean overwrite)
Computes the convex hull of an input file using a single machine algorithm.
|
static Point[] |
convexHull(Point[] points)
Computes the convex hull of a set of points using a divide and conquer
in-memory algorithm.
|
static void |
convexHullMapReduce(Path inFile,
Path userOutPath,
OperationsParams params) |
static <S extends Point> |
convexHullStream(S point)
Computes the convex hull by reading points from stream
|
static void |
main(java.lang.String[] args) |
public static Point[] convexHull(Point[] points)
points - public static void convexHull(Path inFile,
Path outFile,
boolean overwrite)
throws java.io.IOException
inFile - outFile - overwrite - java.io.IOExceptionpublic static <S extends Point> void convexHullStream(S point) throws java.io.IOException
point - java.io.IOExceptionpublic static void convexHullMapReduce(Path inFile,
Path userOutPath,
OperationsParams params)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException