ML handlers in MindsDB act as bridges to various machine learning frameworks. They allow you to create ML engines using the CREATE ML_ENGINE
command, which in turn enables you to expose ML models from supported ML engines as AI tables.
Here is how you can fetch all available ML handlers directly from Java code:
package org.example;
import mindsdb.MindsDB;
import mindsdb.models.Project;
import mindsdb.services.Query;
import mindsdb.services.Server;
import tech.tablesaw.api.Table;
public class Main {
public static void main(String[] args) {
Server server = MindsDB.connect();
Project mindsdb = server.getProject("mindsdb");
Query listMlHandlersQuery = mindsdb.query("SHOW HANDLERS WHERE type = 'ml'");
Table mlHandlers = listMlHandlersQuery.fetch();
System.out.println(mlHandlers);
}
}