Class DoubleBucket
java.lang.Object
com.yahoo.search.grouping.request.GroupingNode
com.yahoo.search.grouping.request.GroupingExpression
com.yahoo.search.grouping.request.BucketValue
com.yahoo.search.grouping.request.DoubleBucket
- All Implemented Interfaces:
Comparable<BucketValue>
This class represents a
Double bucket in a PredefinedFunction.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleBucket(double from, double to) Constructs a new instance of this class.DoubleBucket(ConstantValue<?> from, ConstantValue<?> to) Constructs a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of thisstatic DoubleValuenextValue(DoubleValue value) Returns the next distinct value.Methods inherited from class com.yahoo.search.grouping.request.BucketValue
compareTo, equals, getFrom, getTo, hashCodeMethods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, resolveLevel, setLabel, visitMethods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
Constructor Details
-
DoubleBucket
public DoubleBucket(double from, double to) Constructs a new instance of this class.- Parameters:
from- The from-value to assign to this.to- The to-value to assign to this.
-
DoubleBucket
Constructs a new instance of this class.- Parameters:
from- The from-value to assign to this.to- The to-value to assign to this.
-
-
Method Details
-
nextValue
Returns the next distinct value.- Parameters:
value- The base value.- Returns:
- the next value.
-
copy
Description copied from class:GroupingExpressionReturns a deep copy of this- Overrides:
copyin classBucketValue
-