◆ TrackerBase()
Construct a new instance.
- Parameters
-
- config - the cache configuration to use when building the cache that is used internally by the tracker
\r\n
The abstract base class for trackers.
A tracker is a data structure that stores meta-data relating to a key derived from a given FlowData instance. The details of key creation and the specifics of the meta-data are determined by the tracker implementation. The key will always be a FlowData instance as defined by DataKeyedCacheBase. The meta-data can be any type and is specified using the generic type parameter T.
As an example, a tracker could create a key using the source IP address from the FlowData evidence and use the associated meta-data to store a count of the number of times a given source IP has been seen.
TrackerBase (CacheConfiguration config)
Construct a new instance. More...
| |
boolean | track (FlowData flowData) |
Public Member Functions inherited from fiftyone.pipeline.engines.caching.DataKeyedCacheBase< V > | |
DataKeyedCacheBase (CacheConfiguration configuration)
Construct a new instance. More...
| |
V | get (FlowData flowData) |
abstract T | newValue (FlowData data)
Create a tracker value instance. More...
|
abstract boolean | match (FlowData data, T value)
Update the tracker value with relevant details. More...
|
Protected Member Functions inherited from fiftyone.pipeline.engines.caching.DataKeyedCacheBase< V > | |
abstract EvidenceKeyFilter | getFilter () |
Construct a new instance.
abstract boolean fiftyone.pipeline.engines.trackers.TrackerBase< T >.match | ( | FlowData | data, |
T | value | ||
) |
Update the tracker value with relevant details.
Called when a tracked item matches an instance already in the tracker.
abstract T fiftyone.pipeline.engines.trackers.TrackerBase< T >.newValue | ( | FlowData | data | ) |
boolean fiftyone.pipeline.engines.trackers.TrackerBase< T >.track | ( | FlowData | flowData | ) |
Track the specified FlowData instance.
If the key created from the data does not yet exist in the tracker then it will be added. If it does already exist then the meta-data will be updated according to the tracker implementation's logic.
Implements fiftyone.pipeline.engines.trackers.Tracker.