Class EachOperation
- java.lang.Object
-
- com.yahoo.search.grouping.request.GroupingNode
-
- com.yahoo.search.grouping.request.GroupingOperation
-
- com.yahoo.search.grouping.request.EachOperation
-
public class EachOperation extends GroupingOperation
This is a grouping operation that processes each element of the input list separately, as opposed toAllOperation
which processes that list as a whole.- Author:
- Simon Thoresen Hult, bratseth
-
-
Constructor Summary
Constructors Constructor Description EachOperation()
Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EachOperation
copy(GroupingOperation parentOfCopy)
Returns a deep copy of thisvoid
resolveLevel(int level)
Resolves the conceptual level of this operation.-
Methods inherited from class com.yahoo.search.grouping.request.GroupingOperation
addChild, addChildren, addHint, addOrderBy, addOrderBy, addOutput, addOutputs, containsHint, fromString, fromStringAsList, getAccuracy, getAlias, getAliases, getChild, getChildren, getForceSinglePass, getGroupBy, getHints, getLevel, getLevelDesc, getMax, getNumChildren, getNumOrderBy, getNumOutputs, getOrderBy, getOrderBy, getOutput, getOutputs, getParent, getPrecision, getWhere, hasMax, putAlias, setAccuracy, setForceSinglePass, setGroupBy, setLabel, setMax, setPrecision, setWhere, toString, visitExpressions
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel
-
-
-
-
Method Detail
-
copy
public EachOperation copy(GroupingOperation parentOfCopy)
Description copied from class:GroupingOperation
Returns a deep copy of this- Specified by:
copy
in classGroupingOperation
-
resolveLevel
public void resolveLevel(int level)
Description copied from class:GroupingOperation
Resolves the conceptual level of this operation. This level represents the type of data that is consumed by this operation, where level 0 is a single hit, level 1 is a group, level 2 is a list of groups, and so forth. This method verifies the input level against the operation type, and recursively resolves the level of all argument expressions.- Overrides:
resolveLevel
in classGroupingOperation
- Parameters:
level
- the level of the input data
-
-