◆ TrackerBase()
| FiftyOne.Pipeline.Engines.Trackers.TrackerBase< TValue >.TrackerBase | ( | CacheConfiguration | configuration | ) |
Constructor
- Parameters
-
- configuration - The cache configuration to use when building the cache that is used internally by the tracker.
Member Function Documentation
◆ Match()
abstract bool FiftyOne.Pipeline.Engines.Trackers.TrackerBase< TValue >.Match ( IFlowData data, TValue value ) protected pure virtualUpdate the tracker value with relevant details.
Called when a tracked item matches an instance already in the tracker.
- Parameters
-
- data - The IFlowData that has matched an existing entry in the tracker.
- value - The meta-data instance that the tracker holds for the key generated from the data.
- Returns
- True if the tracker's logic allows further processing of this flow data instance. False otherwise.
◆ NewValue()
abstract TValue FiftyOne.Pipeline.Engines.Trackers.TrackerBase< TValue >.NewValue ( IFlowData data ) protected pure virtualCreate a tracker value instance.
Called when a new key is added to the tracker.
- Parameters
-
- data - The IFlowData that is being added to the tracker.
- Returns
- A new meta-data instance to be stored with the DataKey created from the flow data instance.
◆ Track()
bool FiftyOne.Pipeline.Engines.Trackers.TrackerBase< TValue >.Track ( IFlowData data ) Track the specified IFlowData 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.
- Parameters
-
- data - The IFlowData to track.
- Returns
- True if no matching entry existed in the tracker or if the entry existed but further processing is allowed by the tracker's logic. False if a matching entry was found and the tracker's logic does not allow further processing of this flow data instance.
Implements FiftyOne.Pipeline.Engines.Trackers.ITracker.
