public class KNN
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KNN.KNNMap<S extends Shape>
Mapper for KNN MapReduce.
|
static class |
KNN.KNNObjects<S extends java.lang.Comparable<S>>
Keeps KNN objects ordered by their distance descending
|
static class |
KNN.KNNReduce<S extends Shape>
Reduce (and combine) class for KNN MapReduce.
|
static class |
KNN.TextWithDistance
Stores a shape text along with its distance to the query point.
|
Constructor and Description |
---|
KNN() |
Modifier and Type | Method and Description |
---|---|
static Job |
knn(Path inFile,
Path outFile,
OperationsParams params) |
static void |
main(java.lang.String[] args) |
public static Job knn(Path inFile, Path outFile, OperationsParams params) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException