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
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.Map1<S extends Shape> |
static class |
KNN.Map2<S extends Shape> |
static class |
KNN.TextWithDistance |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
K |
static RunningJob |
lastRunningJob
Reference to the last submitted kNN job
|
static java.lang.String |
QUERY_POINT
Configuration line name for query point
|
Constructor and Description |
---|
KNN() |
Modifier and Type | Method and Description |
---|---|
static long |
knn(Path inFile,
Path outFile,
Point pt,
int k,
OperationsParams params) |
static void |
main(java.lang.String[] args) |
public static RunningJob lastRunningJob
public static final java.lang.String QUERY_POINT
public static final java.lang.String K
public static long knn(Path inFile, Path outFile, Point pt, int k, OperationsParams params) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException