public class LocalModelDescriptorStorage extends Object implements ModelDescriptorStorage
Constructor and Description |
---|
LocalModelDescriptorStorage() |
Modifier and Type | Method and Description |
---|---|
ModelDescriptor |
get(String name)
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 name,
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 name)
Removes model descriptor for the specified model descriptor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void put(String name, ModelDescriptor mdl)
put
in interface ModelDescriptorStorage
name
- Model identifier.mdl
- Model descriptor.public boolean putIfAbsent(String mdlId, ModelDescriptor mdl)
putIfAbsent
in interface ModelDescriptorStorage
mdlId
- Model identifier.mdl
- Model descriptor.true
if model descriptor has been successfully saved, otherwise false
.public ModelDescriptor get(String name)
get
in interface ModelDescriptorStorage
name
- Model identifier.public void remove(String name)
remove
in interface ModelDescriptorStorage
name
- Model identifier.public Iterator<IgniteBiTuple<String,ModelDescriptor>> iterator()
iterator
in interface Iterable<IgniteBiTuple<String,ModelDescriptor>>
iterator
in interface ModelDescriptorStorage
GridGain In-Memory Computing Platform : ver. 8.9.19 Release Date : April 10 2025