Class JRBaseCrosstabDataset

java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElementDataset
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabDataset
All Implemented Interfaces:
Serializable, Cloneable, JRCrosstabDataset, DatasetRunHolder, JRCloneable, JRElementDataset

public class JRBaseCrosstabDataset extends JRBaseElementDataset implements JRCrosstabDataset
Base implementation of crosstab input dataset.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  • Field Details

    • dataPreSorted

      protected boolean dataPreSorted
  • Constructor Details

  • Method Details

    • collectExpressions

      public void collectExpressions(JRExpressionCollector collector)
      Specified by:
      collectExpressions in interface JRElementDataset
      Overrides:
      collectExpressions in class JRBaseElementDataset
    • isDataPreSorted

      public boolean isDataPreSorted()
      Description copied from interface: JRCrosstabDataset
      Returns whether the crosstab data is pre-sorted according to the crosstab's groups.

      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.

      Specified by:
      isDataPreSorted in interface JRCrosstabDataset
      Returns:
      whether the crosstab data is pre-sorted