Class SqlInferenceConfig

  • All Implemented Interfaces:
    Serializable

    public class SqlInferenceConfig
    extends Object
    implements Serializable
    Configuration for SQL-based ML inference operations.

    This class extends the core InferenceConfig with SQL-specific settings including model source configuration, caching policies, and SQL DDL options.

    Since:
    1.0.0
    Author:
    Nestor Martourez Abiangang A.
    See Also:
    Serialized Form
    • Method Detail

      • fromOptions

        public static SqlInferenceConfig fromOptions​(Map<String,​String> options)
        Creates configuration from SQL DDL options.
        Parameters:
        options - map of option key-value pairs from WITH clause
        Returns:
        configured SqlInferenceConfig
        Throws:
        IllegalArgumentException - if required options are missing
      • toCoreConfig

        public InferenceConfig toCoreConfig()
        Converts this config to core InferenceConfig for compatibility.
        Returns:
        InferenceConfig instance
      • getModelName

        public String getModelName()
      • getModelVersion

        public String getModelVersion()
      • getBatchSize

        public int getBatchSize()
      • getBatchTimeoutMs

        public long getBatchTimeoutMs()
      • isAsyncEnabled

        public boolean isAsyncEnabled()
      • getAsyncTimeoutMs

        public long getAsyncTimeoutMs()
      • getMaxRetries

        public int getMaxRetries()
      • getRetryBackoffMs

        public long getRetryBackoffMs()
      • getAdditionalOptions

        public Map<String,​String> getAdditionalOptions()