Record Class QueryAnalyzer.QueryAnalysis
java.lang.Object
java.lang.Record
com.loomcache.server.query.QueryAnalyzer.QueryAnalysis
- Enclosing class:
QueryAnalyzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theestimatedCostrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoptimizationHintsrecord component.Returns the value of thesuggestedIndexesrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
QueryAnalysis
public QueryAnalysis(double estimatedCost, List<String> suggestedIndexes, List<String> warnings, List<String> optimizationHints) Creates an instance of aQueryAnalysisrecord class.- Parameters:
estimatedCost- the value for theestimatedCostrecord componentsuggestedIndexes- the value for thesuggestedIndexesrecord componentwarnings- the value for thewarningsrecord componentoptimizationHints- the value for theoptimizationHintsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
estimatedCost
public double estimatedCost()Returns the value of theestimatedCostrecord component.- Returns:
- the value of the
estimatedCostrecord component
-
suggestedIndexes
-
warnings
-
optimizationHints
-