public abstract class AbstractReportStep<T,U,V> extends AbstractAlgoMainStep<T,U,V>
Default implementation for a step in the algorithm
| Modifier and Type | Field and Description |
|---|---|
static int |
GRAND_TOTAL_GROUPING_LEVEL
constant for grand total grouping level
|
| Constructor and Description |
|---|
AbstractReportStep() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeAggLevelForCalcRowNumber(StepInput stepInput,
int calcRowNumber)
computes the aggregation level for the given row of the calculators matrix
|
int |
computeCalcRowNumberForAggLevel(StepInput stepInput,
int level)
computes the row number (from the calculators matrix) where the totals are for the given level
|
CalcIntermResult[][] |
getCalcIntermResultsMatrix(StepInput stepInput)
returns the calculator within context
|
ArrayList<Integer> |
getCalculatorDistributionInColumnDataArray(StepInput stepInput)
getter for the distribution of calculators in data columns array
|
List<DataColumn> |
getDataColumns(StepInput stepInput)
ATTENTION : changing the implementation of this method will have effect on the
following methods:
#getDataColumnsLength() |
int |
getDataColumnsLength(StepInput stepInput) |
Integer |
getDataRowCount(StepInput stepInput)
returns the data row count from the report context
|
List<GroupColumn> |
getGroupColumns(StepInput stepInput)
ATTENTION : changing the implementation of this method will have effect on the
following methods:
#getGroupColumnsCount()
#computeAggLevelForCalcRowNumber(int)
#computeCalcRowNumberForAggLevel(int) |
int |
getGroupColumnsCount(StepInput stepInput) |
int |
getGroupingLevel(StepInput stepInput) |
Object[] |
getPreviousRowOfGroupValues(StepInput stepInput) |
boolean |
getShowGrandTotal(StepInput stepInput) |
boolean |
getShowTotals(StepInput stepInput) |
String |
getTotalStringForGroupingLevel(StepInput stepInput,
String calculatorLabels,
int groupingLevel) |
Object[] |
getTotalStringForGroupingLevelAndPredecessors(StepInput stepInput,
int groupingLevel) |
Object[] |
getTotalStringForGroupingLevelAndPredecessors(StepInput stepInput,
int from,
int groupingLevel) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, exit, initpublic static final int GRAND_TOTAL_GROUPING_LEVEL
public int getGroupingLevel(StepInput stepInput)
public CalcIntermResult[][] getCalcIntermResultsMatrix(StepInput stepInput)
public ArrayList<Integer> getCalculatorDistributionInColumnDataArray(StepInput stepInput)
public List<DataColumn> getDataColumns(StepInput stepInput)
#getDataColumnsLength()public int getDataColumnsLength(StepInput stepInput)
public List<GroupColumn> getGroupColumns(StepInput stepInput)
#getGroupColumnsCount()
#computeAggLevelForCalcRowNumber(int)
#computeCalcRowNumberForAggLevel(int)public int getGroupColumnsCount(StepInput stepInput)
public boolean getShowGrandTotal(StepInput stepInput)
public boolean getShowTotals(StepInput stepInput)
public int computeCalcRowNumberForAggLevel(StepInput stepInput, int level)
level - the aggregation levelpublic int computeAggLevelForCalcRowNumber(StepInput stepInput, int calcRowNumber)
calcRowNumber - public Object[] getPreviousRowOfGroupValues(StepInput stepInput)
public String getTotalStringForGroupingLevel(StepInput stepInput, String calculatorLabels, int groupingLevel)
groupingLevel - public Object[] getTotalStringForGroupingLevelAndPredecessors(StepInput stepInput, int groupingLevel)
groupingLevel - public Object[] getTotalStringForGroupingLevelAndPredecessors(StepInput stepInput, int from, int groupingLevel)
from - groupingLevel - Copyright © 2006–2015. All rights reserved.