Class SortByTimestampPatternAction
- java.lang.Object
-
- com.arassec.igor.core.model.BaseIgorComponent
-
- com.arassec.igor.core.model.action.BaseAction
-
- com.arassec.igor.module.misc.action.util.BaseUtilAction
-
- com.arassec.igor.module.misc.action.util.SortByTimestampPatternAction
-
- All Implemented Interfaces:
Action,IgorComponent
public class SortByTimestampPatternAction extends BaseUtilAction
Sorts data by using a configurable pattern on a data value.
-
-
Field Summary
-
Fields inherited from class com.arassec.igor.module.misc.action.util.BaseUtilAction
DEFAULT_TIME_UNIT, DEFAULT_TIMESTAMP_FORMAT
-
Fields inherited from class com.arassec.igor.core.model.action.BaseAction
active, numThreads, VOID_WIP_MONITOR
-
Fields inherited from class com.arassec.igor.core.model.BaseIgorComponent
id
-
-
Constructor Summary
Constructors Constructor Description SortByTimestampPatternAction()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>complete()Sorts the collected data and returns the result.intgetNumThreads()Returns always 1, because the action needs to collect all data to sort in a single thread.List<Map<String,Object>>process(Map<String,Object> data, JobExecution jobExecution)Collects all data in memory for later sorting.-
Methods inherited from class com.arassec.igor.core.model.action.BaseAction
getJobId, getJsonPathConfiguration, getName, getString, isActive, isQuery, isSimulation, setActive, setJsonPathConfiguration, setName, setNumThreads
-
Methods inherited from class com.arassec.igor.core.model.BaseIgorComponent
getCategoryId, getId, getTypeId, getUnEditableProperties, initialize, setId, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.arassec.igor.core.model.IgorComponent
getCategoryId, getId, getTypeId, getUnEditableProperties, initialize, setId, shutdown
-
-
-
-
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
null.
-
complete
public List<Map<String,Object>> complete()
Sorts the collected data and returns the result.- Specified by:
completein interfaceAction- Overrides:
completein classBaseAction- Returns:
- The sorted list of data to further process.
-
getNumThreads
public int getNumThreads()
Returns always 1, because the action needs to collect all data to sort in a single thread.- Specified by:
getNumThreadsin interfaceAction- Overrides:
getNumThreadsin classBaseAction- Returns:
- Always
1.
-
-