Class CollectionsDataSetSort

    • Constructor Detail

      • CollectionsDataSetSort

        public CollectionsDataSetSort()
    • Method Detail

      • sort

        public List<Integer> sort​(org.dashbuilder.dataset.DataSet dataSet,
                                  List<org.dashbuilder.dataset.sort.ColumnSort> columnSortList)
        Description copied from interface: DataSetSortAlgorithm
        Sort the specified data set according the sort criteria list specified.
        Specified by:
        sort in interface DataSetSortAlgorithm
        Parameters:
        dataSet - The data set to sort
        columnSortList - 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: DataSetSortAlgorithm
        Sort the specified data set according the sort criteria list specified.
        Specified by:
        sort in interface DataSetSortAlgorithm
        Parameters:
        dataSet - The data set to sort
        rowNumbers - The subset of rows to sort.
        columnSortList - The sort operations to apply
        Returns:
        A list of ordered row numbers reflecting the sort results.