Class DocumentValue
- java.lang.Object
-
- com.yahoo.search.grouping.request.GroupingNode
-
- com.yahoo.search.grouping.request.GroupingExpression
-
- com.yahoo.search.grouping.request.DocumentValue
-
- Direct Known Subclasses:
ArrayAtLookup
,AttributeFunction
,AttributeValue
,DocIdNsSpecificValue
,InterpolatedLookup
,RelevanceValue
,SummaryValue
public abstract class DocumentValue extends GroupingExpression
This class represents a document value in aGroupingExpression
. As such, the subclasses of this can only be used as document-level expressions (i.e. level 0, seeGroupingExpression.resolveLevel(int)
).- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DocumentValue(java.lang.String image, java.lang.String label, java.lang.Integer level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
resolveLevel(int level)
Resolves the conceptual level of this expression.-
Methods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, copy, getLevel, getLevelOrNull, setLabel, visit
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
-
-
-
Method Detail
-
resolveLevel
public void resolveLevel(int level)
Description copied from class:GroupingExpression
Resolves the conceptual level of this expression. This level represents the type of data that is consumed by this expression, 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 expression type, and recursively resolves the level of all argument expressions.- Overrides:
resolveLevel
in classGroupingExpression
- Parameters:
level
- The level of the input data.
-
-