Class MLEngines

java.lang.Object
mindsdb.services.MLEngines

public class MLEngines extends Object
MLEngines service class for handling ML engines.
  • Constructor Details

    • MLEngines

      public MLEngines(RestAPI api)
      Constructor for MLEngines
      Parameters:
      api - - RestAPI object
  • Method Details

    • list

      public List<MLEngine> list()
      List all ML engines
      Returns:
      List of MLEngine objects
    • get

      public MLEngine get(String name)
      Get a specific ML engine by name
      Parameters:
      name - - name of the engine
      Returns:
      MLEngine object
    • create

      public MLEngine create(String name, Handler handler, kong.unirest.core.json.JSONObject connectionData)
      Create a new ML engine
      Parameters:
      name - - name of the engine
      handler - - handler of the engine
      connectionData - - connection data for the engine
      Returns:
      MLEngine object
    • create

      public MLEngine create(String name, String handlerName, kong.unirest.core.json.JSONObject connectionData)
      Create a new ML engine
      Parameters:
      name - - name of the engine
      handlerName - - handler of the engine
      connectionData - - connection data for the engine
      Returns:
      MLEngine object
    • create

      public MLEngine create(String name, Handler handler)
      Create a new ML engine
      Parameters:
      name - - name of the engine
      handler - - handler of the engine
      Returns:
      MLEngine object
    • create

      public MLEngine create(String name, String handlerName)
      Create a new ML engine
      Parameters:
      name - - name of the engine
      handlerName - - handler of the engine
      Returns:
      MLEngine object
    • drop

      public void drop(String name)
      Drop an ML engine
      Parameters:
      name - - name of the engine