Record Class ScoreDoc
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.support.ScoreDoc
- Since:
- 4.3
- Author:
- Peter-Josef Meisch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoc()
Returns the value of thedoc
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
score()
Returns the value of thescore
record component.Returns the value of theshardIndex
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ScoreDoc
Creates an instance of aScoreDoc
record class.- Parameters:
score
- the value for thescore
record componentdoc
- the value for thedoc
record componentshardIndex
- the value for theshardIndex
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 '=='. -
score
public double score()Returns the value of thescore
record component.- Returns:
- the value of the
score
record component
-
doc
Returns the value of thedoc
record component.- Returns:
- the value of the
doc
record component
-
shardIndex
Returns the value of theshardIndex
record component.- Returns:
- the value of the
shardIndex
record component
-