class documentation
class ExecutionStoreRepo(object): (source)
Known subclasses: fiftyone.factory.repos.execution_store.MongoExecutionStoreRepo
Constructor: ExecutionStoreRepo(collection, dataset_id)
Base class for execution store repositories.
Each instance of this repository has a context:
- If a dataset_id is provided, it operates on stores associated with that dataset
- If no dataset_id is provided, it operates on stores that are not associated with a dataset
To operate on all stores across all contexts, use the XXX_global() methods that this class provides.
Method | __init__ |
Undocumented |
Method | cleanup |
Deletes all stores and keys associated with the current context. |
Method | count |
Counts the keys in the specified store. |
Method | count |
Counts the stores associated with the current context. |
Method | count |
Counts stores across all datasets and the global context. |
Method | create |
Creates a store associated with the current context. |
Method | delete |
Deletes the document that matches the store name and key, if one exists. |
Method | delete |
Deletes the specified store. |
Method | delete |
Deletes the specified store across all datasets and the global context. |
Method | get |
Gets a key from the specified store. |
Method | get |
Gets a store associated with the current context. |
Method | has |
Determines whether a key exists in the specified store. |
Method | has |
Checks whether a store with the given name exists in the current context. |
Method | has |
Determines whether a store with the given name exists across all datasets and the global context. |
Method | list |
Lists all keys in the specified store. |
Method | list |
Lists the stores associated with the current context. |
Method | list |
Lists stores across all datasets and the global context. |
Method | set |
Sets or updates a key in the specified store. |
Method | update |
Updates the TTL for a key. |
Constant | COLLECTION |
Undocumented |
Instance Variable | _collection |
Undocumented |
Instance Variable | _dataset |
Undocumented |