Class MlSqlPredictionJob<I extends org.gridgain.ml.model.MlSqlJobParameters,O>

java.lang.Object
org.gridgain.ml.compute.MlComputeJob<I,List<O>>
org.gridgain.internal.ml.compute.MlSqlPredictionJob<I,O>
All Implemented Interfaces:
org.apache.ignite.compute.ComputeJob<I,List<O>>

public class MlSqlPredictionJob<I extends org.gridgain.ml.model.MlSqlJobParameters,O> extends org.gridgain.ml.compute.MlComputeJob<I,List<O>>
Compute job for SQL-based ML predictions using ML_EMBEDDED executor. This job takes MlSqlJobParameters and returns a list of raw prediction results.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <I extends org.gridgain.ml.model.MlSqlJobParameters, O>
    Class<? extends org.apache.ignite.compute.ComputeJob<I,List<O>>>
     
    predictAsync(org.apache.ignite.compute.JobExecutionContext context, @Nullable org.gridgain.ml.model.MlSqlJobParameters arg)
     
    @Nullable org.apache.ignite.marshalling.Marshaller<List<O>,byte[]>
     

    Methods inherited from class org.gridgain.ml.compute.MlComputeJob

    executeAsync, inputMarshaller, updateModelPathFromDeploymentUnits

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MlSqlPredictionJob

      public MlSqlPredictionJob()
  • Method Details

    • jobClass

      public static <I extends org.gridgain.ml.model.MlSqlJobParameters, O> Class<? extends org.apache.ignite.compute.ComputeJob<I,List<O>>> jobClass()
    • predictAsync

      public CompletableFuture<List<O>> predictAsync(org.apache.ignite.compute.JobExecutionContext context, @Nullable @Nullable org.gridgain.ml.model.MlSqlJobParameters arg)
      Specified by:
      predictAsync in class org.gridgain.ml.compute.MlComputeJob<I extends org.gridgain.ml.model.MlSqlJobParameters,List<O>>
    • resultMarshaller

      @Nullable public @Nullable org.apache.ignite.marshalling.Marshaller<List<O>,byte[]> resultMarshaller()