Package oracle.pgx.api.mllib
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
Constructors Constructor Description DbModelStorer(PgxSession session, oracle.pgx.api.internal.Core core, ModelType model, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbModelStorer<ModelType>
dataSourceId(java.lang.String dataSourceId)
Configures the datasource ID (not required if using the user from the realm)DbModelStorer<ModelType>
description(java.lang.String desc)
Configures the description to attach to the model.DbModelStorer<ModelType>
jdbcUrl(java.lang.String jdbcUrl)
Configures the jdbc url of the database to connect to (not required if using the user from the realm)DbModelStorer<ModelType>
keystoreAlias(java.lang.String keystore)
Configures the keystore alias to get the password for the connectionDbModelStorer<ModelType>
modelname(java.lang.String modelName)
Configures the name of the model to load in the modelstore tableDbModelStorer<ModelType>
modelstore(java.lang.String modelStoreName)
Configures the name of the modelstore table to store to.DbModelStorer<ModelType>
owner(java.lang.String owner)
Configures the owner of the modelstore table in the databaseDbModelStorer<ModelType>
password(java.lang.String password)
Configures the password of the database user to store the model (not required if using the user from the realm)DbModelStorer<ModelType>
schema(java.lang.String schema)
Configures the schema in which the modelstore table in the database isPgxFuture<java.lang.Void>
storeAsync()
Trigger the storing, once all the parameters have been set (async version)DbModelStorer<ModelType>
username(java.lang.String username)
Configures the database username to store the model with (not required if using the user from the realm)-
Methods inherited from class oracle.pgx.api.mllib.ModelStorer
overwrite, store
-
-
-
-
Constructor Detail
-
DbModelStorer
public DbModelStorer(PgxSession session, oracle.pgx.api.internal.Core core, ModelType model, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
-
Method Detail
-
jdbcUrl
public DbModelStorer<ModelType> jdbcUrl(java.lang.String 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
public DbModelStorer<ModelType> dataSourceId(java.lang.String 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
public DbModelStorer<ModelType> username(java.lang.String 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
public DbModelStorer<ModelType> schema(java.lang.String 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
public DbModelStorer<ModelType> owner(java.lang.String 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
public DbModelStorer<ModelType> password(java.lang.String 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
public DbModelStorer<ModelType> keystoreAlias(java.lang.String keystore)
Configures the keystore alias to get the password for the connection- Parameters:
keystore
- the keystore alias- Returns:
- this instance
- Since:
- 21.1
-
modelstore
public DbModelStorer<ModelType> modelstore(java.lang.String modelStoreName)
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
public DbModelStorer<ModelType> modelname(java.lang.String 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
public DbModelStorer<ModelType> description(java.lang.String desc)
Configures the description to attach to the model. (not mandatory)- Parameters:
desc
- the description of the model- Returns:
- this instance
- Since:
- 21.1
-
storeAsync
public PgxFuture<java.lang.Void> storeAsync()
Description copied from class:ModelStorer
Trigger the storing, once all the parameters have been set (async version)- Specified by:
storeAsync
in classModelStorer<ModelType extends Model<ModelType>,DbModelStorer<ModelType extends Model<ModelType>>>
-
-