public class FloatPointNearestNeighbor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FloatPointNearestNeighbor.Cell |
(package private) static class |
FloatPointNearestNeighbor.NearestHit
|
private static class |
FloatPointNearestNeighbor.NearestVisitor |
Constructor and Description |
---|
FloatPointNearestNeighbor() |
Modifier and Type | Method and Description |
---|---|
private static double |
approxBestDistanceSquared(byte[] minPackedValue,
byte[] maxPackedValue,
float[] value) |
(package private) static double |
euclideanDistanceSquared(float[] a,
float[] b) |
static TopFieldDocs |
nearest(IndexSearcher searcher,
java.lang.String field,
int topN,
float... origin) |
private static FloatPointNearestNeighbor.NearestHit[] |
nearest(java.util.List<BKDReader> readers,
java.util.List<Bits> liveDocs,
java.util.List<java.lang.Integer> docBases,
int topN,
float[] origin) |
private static FloatPointNearestNeighbor.NearestHit[] nearest(java.util.List<BKDReader> readers, java.util.List<Bits> liveDocs, java.util.List<java.lang.Integer> docBases, int topN, float[] origin) throws java.io.IOException
java.io.IOException
private static double approxBestDistanceSquared(byte[] minPackedValue, byte[] maxPackedValue, float[] value)
static double euclideanDistanceSquared(float[] a, float[] b)
public static TopFieldDocs nearest(IndexSearcher searcher, java.lang.String field, int topN, float... origin) throws java.io.IOException
java.io.IOException