Class LongBucket
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.LongBucket
- All Implemented Interfaces:
Comparable<BucketValue>
This class represents a
Long bucket in a PredefinedFunction.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorsConstructorDescriptionLongBucket(long from, long to) Constructs a new instance of this class.LongBucket(ConstantValue from, ConstantValue to) Constructs a new instance of this class. -
Method Summary
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
-
LongBucket
public LongBucket(long from, long 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.
-
LongBucket
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
Gives the next distinct long value.- Parameters:
value- the base value.- Returns:
- the next value.
-
copy
Description copied from class:GroupingExpressionReturns a deep copy of this- Overrides:
copyin classBucketValue
-