Module org.elasticsearch.compute
Record Class TopNOperator.ParallelWorkerConfig
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.topn.TopNOperator.ParallelWorkerConfig
- Enclosing class:
TopNOperator
public static record TopNOperator.ParallelWorkerConfig(Executor executor, int workerCount, int maxInFlightPages, long promotionThresholdRows)
extends Record
Opts the operator into parallel workers; promotion is one-way once
promotionThresholdRows is crossed.-
Constructor Summary
ConstructorsConstructorDescriptionParallelWorkerConfig(Executor executor, int workerCount, int maxInFlightPages, long promotionThresholdRows) Creates an instance of aParallelWorkerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxInFlightPagesrecord component.longReturns the value of thepromotionThresholdRowsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theworkerCountrecord component.
-
Constructor Details
-
ParallelWorkerConfig
public ParallelWorkerConfig(Executor executor, int workerCount, int maxInFlightPages, long promotionThresholdRows) Creates an instance of aParallelWorkerConfigrecord class.- Parameters:
executor- the value for theexecutorrecord componentworkerCount- the value for theworkerCountrecord componentmaxInFlightPages- the value for themaxInFlightPagesrecord componentpromotionThresholdRows- the value for thepromotionThresholdRowsrecord 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 '=='. -
executor
Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-
workerCount
public int workerCount()Returns the value of theworkerCountrecord component.- Returns:
- the value of the
workerCountrecord component
-
maxInFlightPages
public int maxInFlightPages()Returns the value of themaxInFlightPagesrecord component.- Returns:
- the value of the
maxInFlightPagesrecord component
-
promotionThresholdRows
public long promotionThresholdRows()Returns the value of thepromotionThresholdRowsrecord component.- Returns:
- the value of the
promotionThresholdRowsrecord component
-