Class StringBucket
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.StringBucket
- All Implemented Interfaces:
Comparable<BucketValue>
This class represents a
String
bucket in a PredefinedFunction
.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionStringBucket
(ConstantValue<?> from, ConstantValue<?> to) Constructs a new bucket for a range of strings.StringBucket
(StringValue value) Constructs a new bucket for a single unique stringStringBucket
(String value) Constructs a new bucket for a single unique stringStringBucket
(String from, String to) Constructs a new bucket for a range of strings.StringBucket
(String from, String to, boolean toInclusive) Constructs a new bucket for a range of strings. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a deep copy of thisstatic StringValue
nextValue
(StringValue value) Returns the next distinct value after the given valueMethods inherited from class com.yahoo.search.grouping.request.BucketValue
compareTo, equals, getFrom, getTo, hashCode
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
-
StringBucket
Constructs a new bucket for a single unique string -
StringBucket
Constructs a new bucket for a single unique string -
StringBucket
Constructs a new bucket for a range of strings.- Parameters:
from
- the start of the bucket, inclusiveto
- the end of the bucket, exclusive
-
StringBucket
Constructs a new bucket for a range of strings.- Parameters:
from
- the start of the bucket, inclusiveto
- the end of the buckettoInclusive
- whetherto
value should be included in the bucket
-
StringBucket
Constructs a new bucket for a range of strings.- Parameters:
from
- the start of the bucket, inclusiveto
- the end of the bucket, exclusive
-
-
Method Details
-
nextValue
Returns the next distinct value after the given value -
copy
Description copied from class:GroupingExpression
Returns a deep copy of this- Overrides:
copy
in classBucketValue
-