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 and Type | Field and Description |
---|---|
private ConstantValueComparator |
comparator |
private ConstantValue<?> |
from |
private ConstantValue<?> |
to |
Modifier | Constructor and Description |
---|---|
protected |
BucketValue(ConstantValue<?> inclusiveFrom,
ConstantValue<?> exclusiveTo) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BucketValue rhs) |
ConstantValue<?> |
getFrom()
Returns the inclusive-from value of this bucket.
|
ConstantValue<?> |
getTo()
Returns the exclusive-to value of this bucket.
|
asImage, asString, getLevel, resolveLevel, setLabel, visit
getLabel, toString
private final ConstantValue<?> from
private final ConstantValue<?> to
private final ConstantValueComparator comparator
protected BucketValue(ConstantValue<?> inclusiveFrom, ConstantValue<?> exclusiveTo)
public ConstantValue<?> getFrom()
public ConstantValue<?> getTo()
public int compareTo(BucketValue rhs)
compareTo
in interface Comparable<BucketValue>
Copyright © 2018. All rights reserved.