Package ch.rswk.meta.engine
Record Class LuceneService.SearchResultCursor
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.LuceneService.SearchResultCursor
- Enclosing class:
LuceneService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thedoc
record component.private final @Nullable Set
<?> The field for thefields
record component.private final float
The field for thescore
record component.private final int
The field for theshardIndex
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSearchResultCursor
(int doc, @Nullable Set<?> fields, float score, int shardIndex) Creates an instance of aSearchResultCursor
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
doc()
Returns the value of thedoc
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable Set
<?> fields()
Returns the value of thefields
record component.final int
hashCode()
Returns a hash code value for this object.float
score()
Returns the value of thescore
record component.int
Returns the value of theshardIndex
record component.@Nullable org.apache.lucene.search.ScoreDoc
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
doc
private final int docThe field for thedoc
record component. -
fields
The field for thefields
record component. -
score
private final float scoreThe field for thescore
record component. -
shardIndex
private final int shardIndexThe field for theshardIndex
record component.
-
-
Constructor Details
-
SearchResultCursor
Creates an instance of aSearchResultCursor
record class.- Parameters:
doc
- the value for thedoc
record componentfields
- the value for thefields
record componentscore
- the value for thescore
record componentshardIndex
- the value for theshardIndex
record component
-
-
Method Details
-
toScoreDoc
public @Nullable org.apache.lucene.search.ScoreDoc toScoreDoc() -
toString
-
hashCode
-
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 '=='. -
doc
public int doc()Returns the value of thedoc
record component.- Returns:
- the value of the
doc
record component
-
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-
score
public float score()Returns the value of thescore
record component.- Returns:
- the value of the
score
record component
-
shardIndex
public int shardIndex()Returns the value of theshardIndex
record component.- Returns:
- the value of the
shardIndex
record component
-