Package org.graylog.plugins.views.search
Record Class ExplainResults.ExplainResult
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.ExplainResults.ExplainResult
- Enclosing class:
- ExplainResults
public static record ExplainResults.ExplainResult(String queryString, Set<ExplainResults.IndexRangeResult> searchedIndexRanges)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExplainResult(String queryString, Set<ExplainResults.IndexRangeResult> searchedIndexRanges) Creates an instance of aExplainResultrecord 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.Returns the value of thequeryStringrecord component.Returns the value of thesearchedIndexRangesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExplainResult
Creates an instance of aExplainResultrecord class.- Parameters:
queryString- the value for thequeryStringrecord componentsearchedIndexRanges- the value for thesearchedIndexRangesrecord 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). -
queryString
Returns the value of thequeryStringrecord component.- Returns:
- the value of the
queryStringrecord component
-
searchedIndexRanges
Returns the value of thesearchedIndexRangesrecord component.- Returns:
- the value of the
searchedIndexRangesrecord component
-