Class MlJobParameters

java.lang.Object
org.gridgain.ml.model.ModelInfo
org.gridgain.ml.model.MlJobParameters
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MlBatchJobParameters, MlSimpleJobParameters, MlSqlJobParameters

public abstract class MlJobParameters extends ModelInfo
Machine Learning Job parameters that extends ModelInfo to include operation-specific configuration. This class provides common functionality for all ML inference operations.
See Also:
  • Constructor Details

    • MlJobParameters

      protected MlJobParameters(MlJobParameters.Builder builder)
      Protected constructor for subclasses.
      Parameters:
      builder - Builder instance
  • Method Details

    • operationType

      public MlJobParameters.OperationType operationType()
      Gets the operation type.
      Returns:
      Operation type
    • operationType

      public void operationType(MlJobParameters.OperationType operationType)
      Sets the operation type.
      Parameters:
      operationType - Operation type
    • timeoutSeconds

      public long timeoutSeconds()
      Gets the timeout in seconds.
      Returns:
      timeout in seconds
    • timeoutSeconds

      public void timeoutSeconds(long timeoutSeconds)
      Sets the timeout in seconds.
      Parameters:
      timeoutSeconds - timeout in seconds
    • customJobClass

      public Class<? extends ComputeJob<?,?>> customJobClass()
      Gets the custom compute job class.
      Returns:
      Custom compute job class, or null if not set
    • customJobClass

      public void customJobClass(Class customJobClass)
      Sets the custom compute job class.
      Parameters:
      customJobClass - Custom compute job class
    • customInputMarshaller

      public <T> Marshaller<T,byte[]> customInputMarshaller()
      Gets the custom input marshaller.
      Type Parameters:
      T - input type
      Returns:
      Custom input marshaller, or null if not set
    • customInputMarshaller

      public void customInputMarshaller(Marshaller<?,byte[]> customInputMarshaller)
      Sets the custom input marshaller.
      Parameters:
      customInputMarshaller - Custom input marshaller instance
    • customOutputMarshaller

      public <T> Marshaller<T,byte[]> customOutputMarshaller()
      Gets the custom output marshaller.
      Type Parameters:
      T - output type
      Returns:
      Custom output marshaller, or null if not set
    • customOutputMarshaller

      public void customOutputMarshaller(Marshaller<?,byte[]> customOutputMarshaller)
      Sets the custom output marshaller.
      Parameters:
      customOutputMarshaller - Custom output marshaller instance
    • hasCustomComponents

      public boolean hasCustomComponents()
      Checks if custom components (job or marshallers) are configured.
      Returns:
      true if any custom component is configured, false otherwise
    • hasUrl

      public boolean hasUrl()
      Checks if url is configured.
      Returns:
      true if url is configured, false otherwise
    • validate

      public void validate()
      Validates the common parameters. Subclasses should override this method to add specific validation.
    • validateOperationSpecific

      protected abstract void validateOperationSpecific()
      Abstract method for operation-specific validation. Subclasses must implement this method to validate their specific fields.
    • toString

      public String toString()
      Creates and returns a string representation of only the key fields.
      Overrides:
      toString in class Object
      Returns:
      string representation