Class ConstantValue<T extends Comparable>
java.lang.Object
com.yahoo.search.grouping.request.GroupingNode
com.yahoo.search.grouping.request.GroupingExpression
com.yahoo.search.grouping.request.ConstantValue<T>
- Direct Known Subclasses:
BooleanValue
,DoubleValue
,InfiniteValue
,LongValue
,RawValue
,StringValue
This class represents a constant value in a
GroupingExpression
. Because it does not operate on any input,
this expression type can be used at any input level (see GroupingExpression.resolveLevel(int)
). All supported
data types are represented as subclasses of this.- Author:
- Simon Thoresen Hult, bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ConstantValue
copy()
Returns a deep copy of thisgetValue()
Returns the constant value of thisMethods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, resolveLevel, setLabel, visit
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
Constructor Details
-
ConstantValue
-
-
Method Details
-
copy
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
getValue
Returns the constant value of this
-