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
ConstructorsModifierConstructorDescriptionprivateMetaServiceSearchContext(org.apache.lucene.search.Query query, @Nullable org.apache.lucene.search.Sort sort) Creates an instance of aMetaServiceSearchContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.lucene.search.Queryquery()Returns the value of thequeryrecord component.@Nullable org.apache.lucene.search.Sortsort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
query
private final org.apache.lucene.search.Query queryThe field for thequeryrecord component. -
sort
private final @Nullable org.apache.lucene.search.Sort sortThe field for thesortrecord component.
-
-
Constructor Details
-
MetaServiceSearchContext
private MetaServiceSearchContext(org.apache.lucene.search.Query query, @Nullable org.apache.lucene.search.Sort sort) Creates an instance of aMetaServiceSearchContextrecord class.- Parameters:
query- the value for thequeryrecord componentsort- the value for thesortrecord 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 thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
sort
public @Nullable org.apache.lucene.search.Sort sort()Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-