Package oracle.pgx.api.mllib
Class FileModelLoader<ModelType extends Model<?>>
- java.lang.Object
-
- oracle.pgx.api.mllib.ModelLoader<ModelType,FileModelLoader<ModelType>>
-
- oracle.pgx.api.mllib.FileModelLoader<ModelType>
-
public class FileModelLoader<ModelType extends Model<?>> extends ModelLoader<ModelType,FileModelLoader<ModelType>>
A model loader for models stored in files- Since:
- 21.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class oracle.pgx.api.mllib.ModelLoader
ModelLoader.ModelConstructor<LoadedModelType>
-
-
Constructor Summary
Constructors Constructor Description FileModelLoader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier, ModelKind modelKind, ModelLoader.ModelConstructor<ModelType> constructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileModelLoader<ModelType>
key(java.lang.String key)
Configures the encryption key of the model file.PgxFuture<ModelType>
loadAsync()
Trigger the load, once all the parameters have been set (async version)FileModelLoader<ModelType>
path(java.lang.String path)
Configures the path to the model file-
Methods inherited from class oracle.pgx.api.mllib.ModelLoader
load
-
-
-
-
Constructor Detail
-
FileModelLoader
public FileModelLoader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier, ModelKind modelKind, ModelLoader.ModelConstructor<ModelType> constructor)
-
-
Method Detail
-
path
public FileModelLoader<ModelType> path(java.lang.String path)
Configures the path to the model file- Parameters:
path
- the path to the model file- Returns:
- this instance
- Since:
- 21.1
-
key
public FileModelLoader<ModelType> key(java.lang.String key)
Configures the encryption key of the model file. Should be specified if the model was stored encrypted.- Parameters:
key
- the encryption key- Returns:
- this instance
- Since:
- 21.1
-
loadAsync
public PgxFuture<ModelType> loadAsync()
Description copied from class:ModelLoader
Trigger the load, once all the parameters have been set (async version)- Specified by:
loadAsync
in classModelLoader<ModelType extends Model<?>,FileModelLoader<ModelType extends Model<?>>>
- Returns:
- future to the loaded model
-
-