public class IgniteModelDescriptorStorage extends Object implements ModelDescriptorStorage
| Constructor and Description |
|---|
IgniteModelDescriptorStorage(IgniteCache<String,ModelDescriptor> models)
Constructs a new instance of Ignite model descriptor storage.
|
| Modifier and Type | Method and Description |
|---|---|
ModelDescriptor |
get(String mdlId)
Returns model descriptor saved for the specified model identifier.
|
Iterator<IgniteBiTuple<String,ModelDescriptor>> |
iterator()
Returns iterator of model descriptors stored in this model descriptor storage.
|
void |
put(String mdlId,
ModelDescriptor mdl)
Saves the specified model descriptor with the specified model identifier.
|
boolean |
putIfAbsent(String mdlId,
ModelDescriptor mdl)
Saves the specified model descriptor with the specified model identifier if it's not saved yet.
|
void |
remove(String mdlId)
Removes model descriptor for the specified model descriptor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic IgniteModelDescriptorStorage(IgniteCache<String,ModelDescriptor> models)
models - Ignite cache with model descriptors.public void put(String mdlId, ModelDescriptor mdl)
put in interface ModelDescriptorStoragemdlId - Model identifier.mdl - Model descriptor.public boolean putIfAbsent(String mdlId, ModelDescriptor mdl)
putIfAbsent in interface ModelDescriptorStoragemdlId - Model identifier.mdl - Model descriptor.true if model descriptor has been successfully saved, otherwise false.public ModelDescriptor get(String mdlId)
get in interface ModelDescriptorStoragemdlId - Model identifier.public void remove(String mdlId)
remove in interface ModelDescriptorStoragemdlId - Model identifier.public Iterator<IgniteBiTuple<String,ModelDescriptor>> iterator()
iterator in interface Iterable<IgniteBiTuple<String,ModelDescriptor>>iterator in interface ModelDescriptorStorage
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025