Class DbModelStorer<ModelType extends Model<ModelType>>
java.lang.Object
oracle.pgx.api.mllib.ModelStorer<ModelType, DbModelStorer<ModelType>>
oracle.pgx.api.mllib.DbModelStorer<ModelType>
public class DbModelStorer<ModelType extends Model<ModelType>>
extends ModelStorer<ModelType, DbModelStorer<ModelType>>
A model storer to store models in an Oracle database, inside a modelstore table.
- Since:
- 21.1
-
Constructor Summary
ConstructorsConstructorDescriptionDbModelStorer(PgxSession session, oracle.pgx.api.internal.Core core, ModelType model, Supplier<String> keystorePathSupplier, Supplier<char[]> keystorePasswordSupplier) -
Method Summary
Modifier and TypeMethodDescriptiondataSourceId(String dataSourceId) Configures the datasource ID (not required if using the user from the realm)description(String desc) Configures the description to attach to the model.Configures the jdbc url of the database to connect to (not required if using the user from the realm)keystoreAlias(String keystore) Configures the keystore alias to get the password for the connectionConfigures the name of the model to load in the modelstore tablemodelstore(String modelStoreName) Configures the name of the modelstore table to store to.Configures the owner of the modelstore table in the databaseConfigures the password of the database user to store the model (not required if using the user from the realm)Configures the schema in which the modelstore table in the database isTrigger the storing, once all the parameters have been set (async version)Configures the database username to store the model with (not required if using the user from the realm)Methods inherited from class ModelStorer
overwrite, store
-
Constructor Details
-
DbModelStorer
public DbModelStorer(PgxSession session, oracle.pgx.api.internal.Core core, ModelType model, Supplier<String> keystorePathSupplier, Supplier<char[]> keystorePasswordSupplier)
-
-
Method Details
-
jdbcUrl
Configures the jdbc url of the database to connect to (not required if using the user from the realm)- Parameters:
jdbcUrl- the jdbc url of the database- Returns:
- this instance
- Since:
- 21.1
-
dataSourceId
Configures the datasource ID (not required if using the user from the realm)- Parameters:
dataSourceId- the datasource ID- Returns:
- this instance
- Since:
- 21.1
-
username
Configures the database username to store the model with (not required if using the user from the realm)- Parameters:
username- the database username- Returns:
- this instance
- Since:
- 21.1
-
schema
Configures the schema in which the modelstore table in the database is- Parameters:
schema- the schema in which the modelstore table is- Returns:
- this instance
- Since:
- 21.1
-
owner
Configures the owner of the modelstore table in the database- Parameters:
owner- the database owner of the modelstore table- Returns:
- this instance
- Since:
- 21.1
-
password
Configures the password of the database user to store the model (not required if using the user from the realm)- Parameters:
password- the password of the database user- Returns:
- this instance
- Since:
- 21.1
-
keystoreAlias
Configures the keystore alias to get the password for the connection- Parameters:
keystore- the keystore alias- Returns:
- this instance
- Since:
- 21.1
-
modelstore
Configures the name of the modelstore table to store to. If the table doesn't exist yet, it will be created.- Parameters:
modelStoreName- the name of the modelstore table to store to- Returns:
- this instance
- Since:
- 21.1
-
modelname
Configures the name of the model to load in the modelstore table- Parameters:
modelName- the name of the model to load- Returns:
- this instance
- Since:
- 21.1
-
description
Configures the description to attach to the model. (not mandatory)- Parameters:
desc- the description of the model- Returns:
- this instance
- Since:
- 21.1
-
storeAsync
Description copied from class:ModelStorerTrigger the storing, once all the parameters have been set (async version)- Specified by:
storeAsyncin classModelStorer<ModelType extends Model<ModelType>, DbModelStorer<ModelType extends Model<ModelType>>>
-