public class JRFillCrosstab.JRFillCrosstabDataset extends JRFillElementDataset implements JRCrosstabDataset
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_DATASET_INCREMENTING_ERROR |
datasetRun, incrementGroup, parent, resetGroup| Constructor and Description |
|---|
JRFillCrosstabDataset(JRCrosstabDataset dataset,
JRFillObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectExpressions(JRExpressionCollector collector) |
protected void |
customEvaluate(JRCalculator calculator)
Evaluates the expressions associated with the dataset.
|
protected void |
customIncrement()
Increments the dataset by collecting the result of the expression
evaluation.
|
protected void |
customInitialize()
Initializes the element dataset.
|
boolean |
isDataPreSorted()
Returns whether the crosstab data is pre-sorted according to the
crosstab's groups.
|
clone, evaluate, evaluateDatasetRun, evaluateIncrementWhenExpression, getDatasetRun, getFillDataset, getFiller, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getInputDataset, getLocale, getResetGroup, getResetTypeValue, getTimeZone, increment, initialize, setBandequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetTypeValueclonepublic static final String EXCEPTION_MESSAGE_KEY_DATASET_INCREMENTING_ERROR
public JRFillCrosstabDataset(JRCrosstabDataset dataset, JRFillObjectFactory factory)
protected void customInitialize()
JRFillElementDatasetThe dataset is initialized before being used and after each time the dataset gets reset.
customInitialize in class JRFillElementDatasetJRFillElementDataset.getResetTypeValue()protected void customEvaluate(JRCalculator calculator) throws JRExpressionEvalException
JRFillElementDataset
Usually, the result of the evaluation would be preserved so that it is
used in JRFillElementDataset.customIncrement()
customEvaluate in class JRFillElementDatasetcalculator - used to evaluate expressionsJRExpressionEvalException - any exception that occurs while
evaluating expressionsprotected void customIncrement()
JRFillElementDatasetcustomIncrement in class JRFillElementDatasetpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementDatasetpublic boolean isDataPreSorted()
JRCrosstabDatasetThe crosstab calculation engine can optimize the calculations if the data is sorted by the row groups and column groups. For example, if there are two row groups R1 and R2 (subgroup of R1) and three column groups C1, C2 and C3 the data should be sorted by R1, R2, C1, C2, C3.
isDataPreSorted in interface JRCrosstabDatasetCopyright © 2017. All rights reserved.