Record Class ViewResolver.ViewResolutionResult
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.view.ViewResolver.ViewResolutionResult
- Enclosing class:
ViewResolver
public static record ViewResolver.ViewResolutionResult(LogicalPlan plan, Map<String,String> viewQueries, boolean hasInSubquery)
extends Record
Result of view resolution containing the rewritten plan, the view queries, and whether any
InSubquery expression was
rewritten into a SemiJoin/AntiJoin/MarkJoin during resolution.
hasInSubquery drives the IN_SUBQUERY telemetry counter (see EsqlSession#gatherInSubqueryMetrics).
-
Constructor Summary
ConstructorsConstructorDescriptionViewResolutionResult(LogicalPlan plan, Map<String, String> viewQueries, boolean hasInSubquery) Creates an instance of aViewResolutionResultrecord 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.booleanReturns the value of thehasInSubqueryrecord component.plan()Returns the value of theplanrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviewQueriesrecord component.
-
Constructor Details
-
ViewResolutionResult
public ViewResolutionResult(LogicalPlan plan, Map<String, String> viewQueries, boolean hasInSubquery) Creates an instance of aViewResolutionResultrecord class.- Parameters:
plan- the value for theplanrecord componentviewQueries- the value for theviewQueriesrecord componenthasInSubquery- the value for thehasInSubqueryrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-
viewQueries
Returns the value of theviewQueriesrecord component.- Returns:
- the value of the
viewQueriesrecord component
-
hasInSubquery
public boolean hasInSubquery()Returns the value of thehasInSubqueryrecord component.- Returns:
- the value of the
hasInSubqueryrecord component
-