Record Class ExtensionQuery
java.lang.Object
java.lang.Record
org.apache.lucene.queryparser.ext.ExtensionQuery
- Record Components:
topLevelParser- the top level parserfield- the query fieldrawQueryString- the raw extension query string
public record ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString)
extends Record
ExtensionQuery holds all query components extracted from the original query string like
the query field and the extension query string.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString) Creates an instance of aExtensionQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therawQueryStringrecord component.Returns the value of thetopLevelParserrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtensionQuery
Creates an instance of aExtensionQueryrecord class.- Parameters:
topLevelParser- the value for thetopLevelParserrecord componentfield- the value for thefieldrecord componentrawQueryString- the value for therawQueryStringrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
topLevelParser
Returns the value of thetopLevelParserrecord component.- Returns:
- the value of the
topLevelParserrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
rawQueryString
Returns the value of therawQueryStringrecord component.- Returns:
- the value of the
rawQueryStringrecord component
-