public class ExternalSortPreparationStep extends AbstractReportStep<List<File>,String,String>
GRAND_TOTAL_GROUPING_LEVEL
Constructor and Description |
---|
ExternalSortPreparationStep() |
ExternalSortPreparationStep(int maxRowsInMemory) |
Modifier and Type | Method and Description |
---|---|
StepResult<String> |
execute(NewRowEvent newRow,
StepInput stepInput)
callback method called for each row
|
StepResult<String> |
exit(StepInput stepInput)
called when finishing the algorithm execution
|
StepResult<List<File>> |
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.
|
File |
saveToFile(List<NewRowEvent> rowsList)
saves the given list into a temporary file
|
computeAggLevelForCalcRowNumber, computeCalcRowNumberForAggLevel, getCalcIntermResultsMatrix, getCalculatorDistributionInColumnDataArray, getDataColumns, getDataColumnsLength, getDataRowCount, getGroupColumns, getGroupColumnsCount, getGroupingLevel, getPreviousRowOfGroupValues, getShowGrandTotal, getShowTotals, getTotalStringForGroupingLevel, getTotalStringForGroupingLevelAndPredecessors, getTotalStringForGroupingLevelAndPredecessors
public ExternalSortPreparationStep()
public ExternalSortPreparationStep(int maxRowsInMemory)
maxRowsInMemory
- public StepResult<List<File>> init(StepInput stepInput)
AlgorithmMainStep
stepInput
- TODOpublic StepResult<String> execute(NewRowEvent newRow, StepInput stepInput)
AlgorithmMainStep
stepInput
- TODOpublic StepResult<String> exit(StepInput stepInput)
AlgorithmMainStep
public File saveToFile(List<NewRowEvent> rowsList) throws IOException
rowsList
- list of input rowsIOException
- when serialization IOException occursCopyright © 2006–2015. All rights reserved.