public class JRDesignCrosstabDataset extends JRDesignElementDataset implements JRCrosstabDataset
Modifier and Type | Field and Description |
---|---|
protected boolean |
dataPreSorted |
static String |
PROPERTY_DATA_PRE_SORTED |
PROPERTY_DATASET_RUN, PROPERTY_INCREMENT_GROUP, PROPERTY_INCREMENT_TYPE, PROPERTY_INCREMENT_WHEN_EXPRESSION, PROPERTY_RESET_GROUP, PROPERTY_RESET_TYPE
datasetRun, incrementGroup, incrementTypeValue, incrementWhenExpression, resetGroup, resetTypeValue
Constructor and Description |
---|
JRDesignCrosstabDataset()
Creates a crosstab dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
collectExpressions(JRExpressionCollector collector) |
boolean |
isDataPreSorted()
Returns whether the crosstab data is pre-sorted according to the
crosstab's groups.
|
void |
setDataPreSorted(boolean dataPreSorted)
Sets the presorted flag for the dataset.
|
clone, getEventSupport, setDatasetRun, setIncrementGroup, setIncrementType, setIncrementWhenExpression, setResetGroup, setResetType
getDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetTypeValue
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup, getResetTypeValue
clone
public static final String PROPERTY_DATA_PRE_SORTED
protected boolean dataPreSorted
public JRDesignCrosstabDataset()
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElementDataset
collectExpressions
in class JRBaseElementDataset
public boolean isDataPreSorted()
JRCrosstabDataset
The 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 JRCrosstabDataset
public void setDataPreSorted(boolean dataPreSorted)
dataPreSorted
- whether the input data is presortedJRCrosstabDataset.isDataPreSorted()
Copyright © 2016. All rights reserved.