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 intThe field for thedocrecord component.private final @Nullable Set<?> The field for thefieldsrecord component.private final floatThe field for thescorerecord component.private final intThe field for theshardIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSearchResultCursor(int doc, @Nullable Set<?> fields, float score, int shardIndex) Creates an instance of aSearchResultCursorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdoc()Returns the value of thedocrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Set<?> fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.floatscore()Returns the value of thescorerecord component.intReturns the value of theshardIndexrecord component.@Nullable org.apache.lucene.search.ScoreDocfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
doc
private final int docThe field for thedocrecord component. -
fields
The field for thefieldsrecord component. -
score
private final float scoreThe field for thescorerecord component. -
shardIndex
private final int shardIndexThe field for theshardIndexrecord component.
-
-
Constructor Details
-
SearchResultCursor
Creates an instance of aSearchResultCursorrecord class.- Parameters:
doc- the value for thedocrecord componentfields- the value for thefieldsrecord componentscore- the value for thescorerecord componentshardIndex- the value for theshardIndexrecord 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 thedocrecord component.- Returns:
- the value of the
docrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
score
public float score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
shardIndex
public int shardIndex()Returns the value of theshardIndexrecord component.- Returns:
- the value of the
shardIndexrecord component
-