Class MaxAggregator
- java.lang.Object
-
- com.yahoo.search.grouping.request.GroupingNode
-
- com.yahoo.search.grouping.request.GroupingExpression
-
- com.yahoo.search.grouping.request.AggregatorNode
-
- com.yahoo.search.grouping.request.MaxAggregator
-
public class MaxAggregator extends AggregatorNode
This class represents an maximum-aggregator in aGroupingExpression
. It evaluates to the maximum value that the contained expression evaluated to over all the inputs.- Author:
- Simon Thoresen Hult, bratseth
-
-
Constructor Summary
Constructors Constructor Description MaxAggregator(GroupingExpression expression)
Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaxAggregator
copy()
Returns a deep copy of this-
Methods inherited from class com.yahoo.search.grouping.request.AggregatorNode
getExpression, resolveLevel, visit
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, setLabel
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
-
-
-
Constructor Detail
-
MaxAggregator
public MaxAggregator(GroupingExpression expression)
Constructs a new instance of this class.- Parameters:
expression
- the expression to aggregate on.
-
-
Method Detail
-
copy
public MaxAggregator copy()
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
-