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
ConstructorsConstructorDescriptionFileModelLoader(PgxSession session, oracle.pgx.api.internal.Core core, Supplier<String> keystorePathSupplier, Supplier<char[]> keystorePasswordSupplier, ModelKind modelKind, ModelLoader.ModelConstructor<ModelType> constructor) -
Method Summary
Modifier and TypeMethodDescriptionConfigures the encryption key of the model file.Trigger the load, once all the parameters have been set (async version)Configures the path to the model fileMethods inherited from class oracle.pgx.api.mllib.ModelLoader
load
-
Constructor Details
-
FileModelLoader
public FileModelLoader(PgxSession session, oracle.pgx.api.internal.Core core, Supplier<String> keystorePathSupplier, Supplier<char[]> keystorePasswordSupplier, ModelKind modelKind, ModelLoader.ModelConstructor<ModelType> constructor)
-
-
Method Details
-
path
Configures the path to the model file- Parameters:
path- the path to the model file- Returns:
- this instance
- Since:
- 21.1
-
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
Description copied from class:ModelLoaderTrigger the load, once all the parameters have been set (async version)- Specified by:
loadAsyncin classModelLoader<ModelType extends Model<?>,FileModelLoader<ModelType extends Model<?>>> - Returns:
- future to the loaded model
-