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 aExtensionQuery
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.field()
Returns the value of thefield
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of therawQueryString
record component.Returns the value of thetopLevelParser
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExtensionQuery
Creates an instance of aExtensionQuery
record class.- Parameters:
topLevelParser
- the value for thetopLevelParser
record componentfield
- the value for thefield
record componentrawQueryString
- the value for therawQueryString
record 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 thetopLevelParser
record component.- Returns:
- the value of the
topLevelParser
record component
-
field
Returns the value of thefield
record component.- Returns:
- the value of the
field
record component
-
rawQueryString
Returns the value of therawQueryString
record component.- Returns:
- the value of the
rawQueryString
record component
-