Class ConstantValue<T extends java.lang.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
public abstract class ConstantValue<T extends java.lang.Comparable> extends GroupingExpression
This class represents a constant value in aGroupingExpression
. Because it does not operate on any input, this expression type can be used at any input level (seeGroupingExpression.resolveLevel(int)
). All supported data types are represented as subclasses of this.- Author:
- Simon Thoresen Hult, bratseth
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstantValue(java.lang.String label, java.lang.Integer level, T value)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ConstantValue
copy()
Returns a deep copy of thisT
getValue()
Returns the constant value of this-
Methods 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 Detail
-
ConstantValue
protected ConstantValue(java.lang.String label, java.lang.Integer level, T value)
-
-
Method Detail
-
copy
public abstract ConstantValue copy()
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
getValue
public T getValue()
Returns the constant value of this
-
-