public class IntermedRowMangerStep extends AbstractCrosstabStep<IntermediateReportRow,String,String>
GRAND_TOTAL_GROUPING_LEVEL
Constructor and Description |
---|
IntermedRowMangerStep() |
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
|
StepResult<String> |
execute(NewRowEvent rowEvent,
StepInput stepInput)
callback method called for each row
|
StepResult<String> |
exit(StepInput stepInput)
called when finishing the algorithm execution
|
StepResult<IntermediateReportRow> |
init(StepInput stepInput)
this method is called only once for a report
and represents the construction step where you can define the keys and
values used inside the execute method.
|
getCrosstabData, getCrosstabHeaderRows, getCrosstabHeaderRowsLength, getDistinctValuesHolder, getIntermCrosstabOutput, getIntermediateCrosstabDataInfo, getIntermediateRow, getPositionOfTotal, getShowTotalsInHeader
getCalcIntermResultsMatrix, getCalculatorDistributionInColumnDataArray, getDataColumns, getDataColumnsLength, getDataRowCount, getGroupColumns, getGroupColumnsCount, getGroupingLevel, getPreviousRowOfGroupValues, getShowGrandTotal, getShowTotals, getTotalStringForGroupingLevel, getTotalStringForGroupingLevelAndPredecessors, getTotalStringForGroupingLevelAndPredecessors
public StepResult<IntermediateReportRow> init(StepInput stepInput)
AlgorithmMainStep
stepInput
- TODOpublic int computeCalcRowNumberForAggLevel(StepInput stepInput, int level)
computeCalcRowNumberForAggLevel
in class AbstractReportStep<IntermediateReportRow,String,String>
level
- the aggregation levelpublic int computeAggLevelForCalcRowNumber(StepInput stepInput, int calcRowNumber)
computeAggLevelForCalcRowNumber
in class AbstractReportStep<IntermediateReportRow,String,String>
calcRowNumber
- public StepResult<String> execute(NewRowEvent rowEvent, StepInput stepInput)
AlgorithmMainStep
stepInput
- TODOpublic StepResult<String> exit(StepInput stepInput)
AlgorithmMainStep
Copyright © 2006–2015. All rights reserved.