Class CollectionsDataSetSort
- java.lang.Object
-
- org.dashbuilder.dataset.engine.sort.CollectionsDataSetSort
-
- All Implemented Interfaces:
DataSetSortAlgorithm
public class CollectionsDataSetSort extends Object implements DataSetSortAlgorithm
A basic sort algorithm takes relies on the default Collections.sort() implementation.
-
-
Constructor Summary
Constructors Constructor Description CollectionsDataSetSort()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>sort(org.dashbuilder.dataset.DataSet dataSet, List<Integer> rowNumbers, List<org.dashbuilder.dataset.sort.ColumnSort> columnSortList)Sort the specified data set according the sort criteria list specified.List<Integer>sort(org.dashbuilder.dataset.DataSet dataSet, List<org.dashbuilder.dataset.sort.ColumnSort> columnSortList)Sort the specified data set according the sort criteria list specified.
-
-
-
Method Detail
-
sort
public List<Integer> sort(org.dashbuilder.dataset.DataSet dataSet, List<org.dashbuilder.dataset.sort.ColumnSort> columnSortList)
Description copied from interface:DataSetSortAlgorithmSort the specified data set according the sort criteria list specified.- Specified by:
sortin interfaceDataSetSortAlgorithm- Parameters:
dataSet- The data set to sortcolumnSortList- The sort operations to apply- Returns:
- A list of ordered row numbers reflecting the sort results.
-
sort
public List<Integer> sort(org.dashbuilder.dataset.DataSet dataSet, List<Integer> rowNumbers, List<org.dashbuilder.dataset.sort.ColumnSort> columnSortList)
Description copied from interface:DataSetSortAlgorithmSort the specified data set according the sort criteria list specified.- Specified by:
sortin interfaceDataSetSortAlgorithm- Parameters:
dataSet- The data set to sortrowNumbers- The subset of rows to sort.columnSortList- The sort operations to apply- Returns:
- A list of ordered row numbers reflecting the sort results.
-
-