org.apache.ignite.ml.inference.reader

## Class FileSystemModelReader

- java.lang.Object
- - org.apache.ignite.ml.inference.reader.FileSystemModelReader

- All Implemented Interfaces:
    Serializable, ModelReader

      public class FileSystemModelReader
      extends Object
      implements ModelReader

  Model reader that reads directory or file and serializes it using `DirectorySerializer`.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileSystemModelReader(String path)` Constructs a new instance of directory model reader.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `read()` Rads model and returns it in serialized form as byte array.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FileSystemModelReader

          public FileSystemModelReader(String path)

      Constructs a new instance of directory model reader.
      Parameters:
        `path` - Path to the directory.

  - ### Method Detail

    - #### read

          public byte[] read()

      Rads model and returns it in serialized form as byte array.
      Specified by:
        `read` in interface `ModelReader`
      Returns:
        Inference model in serialized form as byte array.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.12.0
Release Date | : January 10 2022