Module org.apache.lucene.core
Record Class ScalarQuantizer.ScoreDocsAndScoreVariance
java.lang.Object
java.lang.Record
org.apache.lucene.util.quantization.ScalarQuantizer.ScoreDocsAndScoreVariance
- Enclosing class:
ScalarQuantizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScoreDoc[]
The field for thescoreDocs
record component.private final float
The field for thescoreVariance
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ScoreDocsAndScoreVariance
(ScoreDoc[] scoreDocs, float scoreVariance) Creates an instance of aScoreDocsAndScoreVariance
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.ScoreDoc[]
Returns the value of thescoreDocs
record component.float
Returns the value of thescoreVariance
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
scoreDocs
The field for thescoreDocs
record component. -
scoreVariance
private final float scoreVarianceThe field for thescoreVariance
record component.
-
-
Constructor Details
-
ScoreDocsAndScoreVariance
Creates an instance of aScoreDocsAndScoreVariance
record class.- Parameters:
scoreDocs
- the value for thescoreDocs
record componentscoreVariance
- the value for thescoreVariance
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
scoreDocs
Returns the value of thescoreDocs
record component.- Returns:
- the value of the
scoreDocs
record component
-
scoreVariance
public float scoreVariance()Returns the value of thescoreVariance
record component.- Returns:
- the value of the
scoreVariance
record component
-