Package ch.rswk.meta.engine
Record Class MetaService.MetaServiceSearchContext
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.MetaService.MetaServiceSearchContext
- Enclosing class:
MetaService
private static record MetaService.MetaServiceSearchContext(org.apache.lucene.search.Query query, @Nullable org.apache.lucene.search.Sort sort)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MetaServiceSearchContext
(org.apache.lucene.search.Query query, @Nullable org.apache.lucene.search.Sort sort) Creates an instance of aMetaServiceSearchContext
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.org.apache.lucene.search.Query
query()
Returns the value of thequery
record component.@Nullable org.apache.lucene.search.Sort
sort()
Returns the value of thesort
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
query
private final org.apache.lucene.search.Query queryThe field for thequery
record component. -
sort
private final @Nullable org.apache.lucene.search.Sort sortThe field for thesort
record component.
-
-
Constructor Details
-
MetaServiceSearchContext
private MetaServiceSearchContext(org.apache.lucene.search.Query query, @Nullable org.apache.lucene.search.Sort sort) Creates an instance of aMetaServiceSearchContext
record class.- Parameters:
query
- the value for thequery
record componentsort
- the value for thesort
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
query
public org.apache.lucene.search.Query query()Returns the value of thequery
record component.- Returns:
- the value of the
query
record component
-
sort
public @Nullable org.apache.lucene.search.Sort sort()Returns the value of thesort
record component.- Returns:
- the value of the
sort
record component
-