Package ch.rswk.meta.engine
Record Class LuceneService.SearchResult
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.LuceneService.SearchResult
- Enclosing class:
LuceneService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSearchResult(String cursor, List<org.apache.lucene.document.Document> docs, long totalHits) Creates an instance of aSearchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncursor()Returns the value of thecursorrecord component.List<org.apache.lucene.document.Document> docs()Returns the value of thedocsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalHitsrecord component.
-
Field Details
-
cursor
The field for thecursorrecord component. -
docs
The field for thedocsrecord component. -
totalHits
private final long totalHitsThe field for thetotalHitsrecord component.
-
-
Constructor Details
-
SearchResult
Creates an instance of aSearchResultrecord class.- Parameters:
cursor- the value for thecursorrecord componentdocs- the value for thedocsrecord componenttotalHits- the value for thetotalHitsrecord component
-
-
Method Details
-
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 '=='. -
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
docs
Returns the value of thedocsrecord component.- Returns:
- the value of the
docsrecord component
-
totalHits
public long totalHits()Returns the value of thetotalHitsrecord component.- Returns:
- the value of the
totalHitsrecord component
-