Module org.elasticsearch.compute
Record Class WindowAggregatorFunctionSupplier
java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.WindowAggregatorFunctionSupplier
- All Implemented Interfaces:
AggregatorFunctionSupplier,Describable
public record WindowAggregatorFunctionSupplier(AggregatorFunctionSupplier supplier, Duration window)
extends Record
implements AggregatorFunctionSupplier
A
AggregatorFunctionSupplier that wraps another, and apply a window function on the final aggregation.-
Constructor Summary
ConstructorsConstructorDescriptionWindowAggregatorFunctionSupplier(AggregatorFunctionSupplier supplier, Duration window) Creates an instance of aWindowAggregatorFunctionSupplierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaggregator(DriverContext driverContext, List<Integer> channels) describe()Returns a description of the component.final booleanIndicates whether some other object is "equal to" this one.groupingAggregator(DriverContext driverContext, List<Integer> channels) final inthashCode()Returns a hash code value for this object.supplier()Returns the value of thesupplierrecord component.final StringtoString()Returns a string representation of this record class.window()Returns the value of thewindowrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.aggregation.AggregatorFunctionSupplier
aggregatorFactory, groupingAggregatorFactory
-
Constructor Details
-
WindowAggregatorFunctionSupplier
Creates an instance of aWindowAggregatorFunctionSupplierrecord class.- Parameters:
supplier- the value for thesupplierrecord componentwindow- the value for thewindowrecord component
-
-
Method Details
-
nonGroupingIntermediateStateDesc
- Specified by:
nonGroupingIntermediateStateDescin interfaceAggregatorFunctionSupplier
-
groupingIntermediateStateDesc
- Specified by:
groupingIntermediateStateDescin interfaceAggregatorFunctionSupplier
-
aggregator
- Specified by:
aggregatorin interfaceAggregatorFunctionSupplier
-
groupingAggregator
public GroupingAggregatorFunction groupingAggregator(DriverContext driverContext, List<Integer> channels) - Specified by:
groupingAggregatorin interfaceAggregatorFunctionSupplier
-
describe
Description copied from interface:DescribableReturns a description of the component. This description can be more specific than Object::toString.- Specified by:
describein interfaceDescribable- Returns:
- the description
-
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). -
supplier
Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-
window
Returns the value of thewindowrecord component.- Returns:
- the value of the
windowrecord component
-