Class SortByTimestampPatternAction

  • All Implemented Interfaces:
    Action, IgorComponent

    public class SortByTimestampPatternAction
    extends BaseUtilAction
    Sorts data by using a configurable pattern on a data value.
    • Constructor Detail

      • SortByTimestampPatternAction

        public SortByTimestampPatternAction()
        Creates a new instance.
    • Method Detail

      • process

        public List<Map<String,​Object>> process​(Map<String,​Object> data,
                                                      JobExecution jobExecution)
        Collects all data in memory for later sorting.
        Parameters:
        data - The data the action will work with.
        jobExecution - The job execution log.
        Returns:
        Always an empty list.
      • getNumThreads

        public int getNumThreads()
        Returns always 1, because the action needs to collect all data to sort in a single thread.
        Specified by:
        getNumThreads in interface Action
        Overrides:
        getNumThreads in class BaseAction
        Returns:
        Always 1.
      • reset

        public void reset()
        Deletes all processed data items so that sorting can begin with the next data item.
        Specified by:
        reset in interface Action
        Overrides:
        reset in class BaseAction