public class BaseDataLevelBucket extends Object implements DataLevelBucket, Serializable
Modifier and Type | Field and Description |
---|---|
protected List<DataLevelBucketProperty> |
bucketProperties |
protected JRExpression |
comparatorExpression |
static String |
EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR |
protected JRExpression |
expression |
protected JRExpression |
labelExpression |
protected BucketOrder |
order |
protected SortOrderEnum |
orderValue
Deprecated.
|
protected Class<?> |
valueClass |
protected String |
valueClassName |
protected String |
valueClassRealName |
Modifier | Constructor and Description |
---|---|
protected |
BaseDataLevelBucket() |
|
BaseDataLevelBucket(DataLevelBucket bucket,
JRBaseObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
List<DataLevelBucketProperty> |
getBucketProperties() |
JRExpression |
getComparatorExpression()
Returns the comparator expression.
|
JRExpression |
getExpression()
Returns the grouping expression.
|
JRExpression |
getLabelExpression()
Optional expression that provides labels for buckets.
|
BucketOrder |
getOrder()
Returns the bucket sorting type.
|
Class<?> |
getValueClass()
Returns the class of the bucket value.
|
String |
getValueClassName()
Returns the string name of the bucket value class.
|
public static final String EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR
protected String valueClassName
protected String valueClassRealName
protected Class<?> valueClass
@Deprecated protected SortOrderEnum orderValue
protected BucketOrder order
protected JRExpression expression
protected JRExpression labelExpression
protected JRExpression comparatorExpression
protected List<DataLevelBucketProperty> bucketProperties
protected BaseDataLevelBucket()
public BaseDataLevelBucket(DataLevelBucket bucket, JRBaseObjectFactory factory)
public String getValueClassName()
DataLevelBucket
getValueClassName
in interface DataLevelBucket
public BucketOrder getOrder()
DataLevelBucket
The possible values are:
getOrder
in interface DataLevelBucket
DataLevelBucket.getComparatorExpression()
public JRExpression getExpression()
DataLevelBucket
getExpression
in interface DataLevelBucket
public JRExpression getLabelExpression()
DataLevelBucket
getLabelExpression
in interface DataLevelBucket
public JRExpression getComparatorExpression()
DataLevelBucket
The result of this expression is used to sort the buckets, in ascending or
descending order (given by getOrder()
.
If the order type is BucketOrder.NONE
, no sorting will be performed
and the comparator expression will be ignored.
If no comparator expression is specified, the natural order will be used.
If the bucket has an order by expression, the comparator will be used to compare values as produced by that expression.
getComparatorExpression
in interface DataLevelBucket
public Class<?> getValueClass()
DataLevelBucket
getValueClass
in interface DataLevelBucket
public List<DataLevelBucketProperty> getBucketProperties()
getBucketProperties
in interface DataLevelBucket
public Object clone()
clone
in interface JRCloneable
clone
in class Object
Copyright © 2021 TIBCO Software Inc.. All rights reserved.