org.apache.ignite.ml.inference.storage.model

## Interface ModelStorageProvider

- All Known Implementing Classes:
    IgniteModelStorageProvider, LocalModelStorageProvider

      public interface ModelStorageProvider

  Model storage provider that keeps files and directories presented as `FileOrDirectory` files and correspondent locks.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `FileOrDirectory` | `get(String path)` Returns file or directory associated with the specified path.
    `Lock` | `lock(String path)` Locks the specified path.
    `void` | `put(String path, FileOrDirectory file)` Saves file or directory associated with the specified path.
    `void` | `remove(String path)` Removes file or directory associated with the specified path.

- - ### Method Detail

    - #### get

          FileOrDirectory get(String path)

      Returns file or directory associated with the specified path.
      Parameters:
        `path` - Path of file or directory.
      Returns:
        File or directory associated with the specified path.

    - #### put

          void put(String path,
                   FileOrDirectory file)

      Saves file or directory associated with the specified path.
      Parameters:
        `path` - Path to the file or directory.
        `file` - File or directory to be saved.

    - #### remove

          void remove(String path)

      Removes file or directory associated with the specified path.
      Parameters:
        `path` - Path to the file or directory.

    - #### lock

          Lock lock(String path)

      Locks the specified path.
      Parameters:
        `path` - Path to be locked.

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.1
Release Date | : December 9 2020