public class BucketValue extends GroupingExpression implements Comparable<BucketValue>
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.Modifier | Constructor and Description |
---|---|
protected |
BucketValue(String label,
Integer level,
ConstantValue<?> inclusiveFrom,
ConstantValue<?> exclusiveTo) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BucketValue rhs) |
BucketValue |
copy()
Returns a deep copy of this
|
ConstantValue<?> |
getFrom()
Returns the inclusive-from value of this bucket.
|
ConstantValue<?> |
getTo()
Returns the exclusive-to value of this bucket.
|
asImage, asString, getLevel, getLevelOrNull, resolveLevel, setLabel, visit
getImage, getLabel, toString
protected BucketValue(String label, Integer level, ConstantValue<?> inclusiveFrom, ConstantValue<?> exclusiveTo)
public BucketValue copy()
GroupingExpression
copy
in class GroupingExpression
public ConstantValue<?> getFrom()
public ConstantValue<?> getTo()
public int compareTo(BucketValue rhs)
compareTo
in interface Comparable<BucketValue>
Copyright © 2018. All rights reserved.