Module org.elasticsearch.server
Class ES813FlatVectorFormat.ES813FlatVectorReader
java.lang.Object
org.apache.lucene.codecs.KnnVectorsReader
org.elasticsearch.index.codec.vectors.ES813FlatVectorFormat.ES813FlatVectorReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.lucene.util.Accountable
- Enclosing class:
- ES813FlatVectorFormat
public static class ES813FlatVectorFormat.ES813FlatVectorReader
extends org.apache.lucene.codecs.KnnVectorsReader
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
org.apache.lucene.index.ByteVectorValues
getByteVectorValues
(String field) org.apache.lucene.index.FloatVectorValues
getFloatVectorValues
(String field) long
void
search
(String field, byte[] target, org.apache.lucene.search.KnnCollector knnCollector, org.apache.lucene.util.Bits acceptDocs) void
search
(String field, float[] target, org.apache.lucene.search.KnnCollector knnCollector, org.apache.lucene.util.Bits acceptDocs) Methods inherited from class org.apache.lucene.codecs.KnnVectorsReader
getMergeInstance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
ES813FlatVectorReader
public ES813FlatVectorReader(org.apache.lucene.codecs.FlatVectorsReader reader)
-
-
Method Details
-
checkIntegrity
- Specified by:
checkIntegrity
in classorg.apache.lucene.codecs.KnnVectorsReader
- Throws:
IOException
-
getFloatVectorValues
public org.apache.lucene.index.FloatVectorValues getFloatVectorValues(String field) throws IOException - Specified by:
getFloatVectorValues
in classorg.apache.lucene.codecs.KnnVectorsReader
- Throws:
IOException
-
getByteVectorValues
public org.apache.lucene.index.ByteVectorValues getByteVectorValues(String field) throws IOException - Specified by:
getByteVectorValues
in classorg.apache.lucene.codecs.KnnVectorsReader
- Throws:
IOException
-
search
public void search(String field, float[] target, org.apache.lucene.search.KnnCollector knnCollector, org.apache.lucene.util.Bits acceptDocs) throws IOException - Specified by:
search
in classorg.apache.lucene.codecs.KnnVectorsReader
- Throws:
IOException
-
search
public void search(String field, byte[] target, org.apache.lucene.search.KnnCollector knnCollector, org.apache.lucene.util.Bits acceptDocs) throws IOException - Specified by:
search
in classorg.apache.lucene.codecs.KnnVectorsReader
- Throws:
IOException
-
close
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
-