Class BucketValue
java.lang.Object
com.yahoo.search.grouping.request.GroupingNode
com.yahoo.search.grouping.request.GroupingExpression
com.yahoo.search.grouping.request.BucketValue
- All Implemented Interfaces:
Comparable<BucketValue>
- Direct Known Subclasses:
DoubleBucket
,LongBucket
,RawBucket
,StringBucket
This class represents a bucket in a
PredefinedFunction
. The generic T is the data type of the range values
'from' and 'to'. The range is inclusive-from and exclusive-to. All supported data types are represented as subclasses
of this.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ModifierConstructorDescriptionprotected
BucketValue
(String label, Integer level, ConstantValue<?> inclusiveFrom, ConstantValue<?> exclusiveTo) -
Method Summary
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 Details
-
BucketValue
protected BucketValue(String label, Integer level, ConstantValue<?> inclusiveFrom, ConstantValue<?> exclusiveTo)
-
-
Method Details
-
copy
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
getFrom
Returns the inclusive-from value of this bucket.- Returns:
- The from-value.
-
getTo
Returns the exclusive-to value of this bucket.- Returns:
- The to-value.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<BucketValue>
-
equals
-
hashCode
public int hashCode()
-