Class FilterByTimestampAction
- 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.FilterByTimestampAction
-
- All Implemented Interfaces:
Action,IgorComponent
public class FilterByTimestampAction extends BaseUtilAction
Filters the supplied data by a timestamp.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFORMAT_EPOCH_MILLISFormat value for epoch timestamps in milliseconds.static StringFORMAT_EPOCH_SECONDSFormat value for epoch timestamps in seconds.-
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
-
Fields inherited from class com.arassec.igor.core.model.BaseIgorComponent
id
-
-
Constructor Summary
Constructors Constructor Description FilterByTimestampAction()Creates a new component instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>process(Map<String,Object> data, JobExecution jobExecution)Filters data according to the configured timestamp settings.-
Methods inherited from class com.arassec.igor.core.model.action.BaseAction
clone, complete, getJobId, getName, getNumThreads, getString, isActive, isSimulation, reset, setActive, 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
-
-
-
-
Field Detail
-
FORMAT_EPOCH_MILLIS
public static final String FORMAT_EPOCH_MILLIS
Format value for epoch timestamps in milliseconds.- See Also:
- Constant Field Values
-
FORMAT_EPOCH_SECONDS
public static final String FORMAT_EPOCH_SECONDS
Format value for epoch timestamps in seconds.- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public List<Map<String,Object>> process(Map<String,Object> data, JobExecution jobExecution)
Filters data according to the configured timestamp settings.- Parameters:
data- The data the action will work with.jobExecution- The job's execution log.- Returns:
- The supplied data, if the timestamp under the configured
inputmatches the configured criteria.nullotherwise.
-
-