Package ch.rswk.meta.engine
Record Class MetaLucene.QueryContext
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.MetaLucene.QueryContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedefaultFieldrecord component.private final @Nullable Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> The field for thepointsConfigMaprecord component.private final StringThe field for thequeryrecord component.private final @Nullable org.apache.lucene.search.SortThe field for thesortrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionQueryContext(String defaultField, @Nullable Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfigMap, String query, @Nullable org.apache.lucene.search.Sort sort) Creates an instance of aQueryContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultFieldrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepointsConfigMaprecord component.query()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
-
defaultField
The field for thedefaultFieldrecord component. -
pointsConfigMap
-
query
The field for thequeryrecord component. -
sort
private final @Nullable org.apache.lucene.search.Sort sortThe field for thesortrecord component.
-
-
Constructor Details
-
QueryContext
public QueryContext(String defaultField, @Nullable Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfigMap, String query, @Nullable org.apache.lucene.search.Sort sort) Creates an instance of aQueryContextrecord class.- Parameters:
defaultField- the value for thedefaultFieldrecord componentpointsConfigMap- the value for thepointsConfigMaprecord componentquery- 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). -
defaultField
Returns the value of thedefaultFieldrecord component.- Returns:
- the value of the
defaultFieldrecord component
-
pointsConfigMap
-
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
-