- java.lang.Object
-
- org.apache.lucene.search.VectorScorer
-
- org.apache.lucene.search.VectorScorer.ByteVectorScorer
-
- Enclosing class:
- VectorScorer
private static class VectorScorer.ByteVectorScorer extends VectorScorer
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
query
private ByteVectorValues
values
-
Fields inherited from class org.apache.lucene.search.VectorScorer
similarity
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ByteVectorScorer(ByteVectorValues values, byte[] query, VectorSimilarityFunction similarity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
advanceExact(int doc)
Advance the instance to the given document ID and return true if there is a value for that document.float
score()
Compute the similarity score for the current document.-
Methods inherited from class org.apache.lucene.search.VectorScorer
create, create
-
-
-
-
Field Detail
-
query
private final byte[] query
-
values
private final ByteVectorValues values
-
-
Constructor Detail
-
ByteVectorScorer
protected ByteVectorScorer(ByteVectorValues values, byte[] query, VectorSimilarityFunction similarity)
-
-
Method Detail
-
advanceExact
public boolean advanceExact(int doc) throws java.io.IOException
Advance the instance to the given document ID and return true if there is a value for that document.- Specified by:
advanceExact
in classVectorScorer
- Throws:
java.io.IOException
-
score
public float score() throws java.io.IOException
Description copied from class:VectorScorer
Compute the similarity score for the current document.- Specified by:
score
in classVectorScorer
- Throws:
java.io.IOException
-
-