Detailed Description
A tracker is an instance of datakeyed cache which, if a result is found in the cache, calls an additional boolean match method.
Inheritance diagram for fiftyone_pipeline_engines.tracker.Tracker:
Collaboration diagram for fiftyone_pipeline_engines.tracker.Tracker:
Public Member Functions | |
| track (self, key) | |
| The track method calls the DataKeyedCache get method, if it receives a result it sends it onto a match function. | |
| match (self, result) | |
| If object is found in cache, the match function is called. | |
Public Member Functions inherited from fiftyone_pipeline_engines.datakeyed_cache.DataKeyedCache | |
| get_cache_value (self, cachekey) | |
| Get data from the cache @type key : string. | |
| set_cache_value (self, cachekey, value) | |
| Place data in the cache @type key : string. | |
Member Function Documentation
◆ match()
| fiftyone_pipeline_engines.tracker.Tracker.match | ( | self, | |
| result ) |
If object is found in cache, the match function is called.
@type key : result of the track function @rtype bool
- Returns
- whether a match has been made
Reimplemented in fiftyone_pipeline_engines_fiftyone.share_usage_tracker.ShareUsageTracker.
◆ track()
| fiftyone_pipeline_engines.tracker.Tracker.track | ( | self, | |
| key ) |
The track method calls the DataKeyedCache get method, if it receives a result it sends it onto a match function.
@type key : cache key to run through tracker @rtype bool
- Returns
- result of tracking
