Package oracle.pgx.api.mllib
Class Model<ModelType extends Model<ModelType>>
- java.lang.Object
-
- oracle.pgx.api.mllib.Model<ModelType>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
DeepWalkModel
,EdgeWiseModel
,GraphWiseModel
,Pg2vecModel
public abstract class Model<ModelType extends Model<ModelType>> extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description Model(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
CallsdestroyAsync()
and wait for completion.abstract PgxFuture<java.lang.Void>
destroyAsync()
Requests destruction of this object.GenericModelStorer<ModelType>
export()
ReturnsGenericModelStorer
to configure where to store the model and then trigger it.
-
-
-
Constructor Detail
-
Model
public Model(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
-
Method Detail
-
export
public GenericModelStorer<ModelType> export()
ReturnsGenericModelStorer
to configure where to store the model and then trigger it.- Returns:
- a
GenericModelStorer
to configure where to store the model - Since:
- 21.1
-
destroyAsync
public abstract PgxFuture<java.lang.Void> destroyAsync()
Requests destruction of this object. After this method returns, the behavior of any method of this class becomes undefined.- Returns:
- a future which will be completed once the destruction request finishes.
-
close
public void close()
CallsdestroyAsync()
and wait for completion.- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-