Record Class ReductionPlan
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.plugin.ReductionPlan
- Record Components:
nodeReducePlan- The plan to be executed on the node_reduce driver. This should not contain aFragmentExec, but be a plan "sandwiched" between anExchangeSinkExecand anExchangeSourceExec.dataNodePlan- The plan to be executed on the data driver. This may contain aFragmentExec.
public record ReductionPlan(ExchangeSinkExec nodeReducePlan, ExchangeSinkExec dataNodePlan, LocalPhysicalOptimization localPhysicalOptimization)
extends Record
This class is
public for testing.-
Constructor Summary
ConstructorsConstructorDescriptionReductionPlan(ExchangeSinkExec nodeReducePlan, ExchangeSinkExec dataNodePlan, LocalPhysicalOptimization localPhysicalOptimization) Creates an instance of aReductionPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataNodePlanrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalPhysicalOptimizationrecord component.Returns the value of thenodeReducePlanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReductionPlan
public ReductionPlan(ExchangeSinkExec nodeReducePlan, ExchangeSinkExec dataNodePlan, LocalPhysicalOptimization localPhysicalOptimization) Creates an instance of aReductionPlanrecord class.- Parameters:
nodeReducePlan- the value for thenodeReducePlanrecord componentdataNodePlan- the value for thedataNodePlanrecord componentlocalPhysicalOptimization- the value for thelocalPhysicalOptimizationrecord component
-
-
Method Details
-
withoutLocalPhysicalOptimization
-
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). -
nodeReducePlan
Returns the value of thenodeReducePlanrecord component.- Returns:
- the value of the
nodeReducePlanrecord component
-
dataNodePlan
Returns the value of thedataNodePlanrecord component.- Returns:
- the value of the
dataNodePlanrecord component
-
localPhysicalOptimization
Returns the value of thelocalPhysicalOptimizationrecord component.- Returns:
- the value of the
localPhysicalOptimizationrecord component
-