Package mindsdb.models
Class Project
java.lang.Object
mindsdb.models.Project
- Direct Known Subclasses:
Server
Project class for handling project.
-
Field Summary
Modifier and TypeFieldDescriptionfinal KnowledgeBases
The KnowledgeBases service for managing knowledge bases.final Models
The Models service for managing models. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate job with only nameCreate job with name and query stringcreateJob
(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt) Create job with name, query string, start time, and end timecreateJob
(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, query string, start time, end time, and repeat stringcreateJob
(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create a jobcreateJob
(String name, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create job without query stringCreate job with name and list of query stringscreateJob
(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt) Create job with name, list of query strings, start time, and end timecreateJob
(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, Integer repeatMin) Create job with name, list of query strings, start time, end time, and repeat minutescreateJob
(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, list of query strings, start time, end time, and repeat stringcreateView
(String name, String sql) Create a viewcreateView
(String name, Query query) Create a viewvoid
Drop a jobvoid
Drop a Modelvoid
dropModelVersion
(String modelName, int version) Drop a model versionvoid
Drop a viewGet a job by namegetKnowledgeBase
(String name) Get a knowledge base by nameGet a model by namegetModelWithVersion
(String name, int version) Get a model with a specific name and versiongetName()
Get the name of the projectGet a view by namelistJobs()
List all jobsList all knowledge basesList all modelslistModelsWithVersion
(String name, Integer version) List all models with a specific name and versionList all viewsCreate a Query objecttoString()
-
Field Details
-
models
The Models service for managing models. -
knowledgeBases
The KnowledgeBases service for managing knowledge bases.
-
-
Constructor Details
-
Project
Constructor for Project- Parameters:
api
- - RestAPI objectname
- - name of the project
-
-
Method Details
-
getName
Get the name of the project- Returns:
- name of the project
-
query
Create a Query object- Parameters:
sql
- SQL string- Returns:
- Query object
-
toString
-
listJobs
List all jobs- Returns:
- list of Job objects
-
getJob
Get a job by name- Parameters:
name
- name of the job- Returns:
- Job object
-
createJob
public Job createJob(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create a job- Parameters:
name
- name of the jobqueryStr
- query stringstartAt
- start timeendAt
- end timerepeatStr
- repeat stringrepeatMin
- repeat minutes- Returns:
- Job object
-
createJob
Create job with only name- Parameters:
name
- name of the job- Returns:
- Job object
-
createJob
public Job createJob(String name, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create job without query string- Parameters:
name
- - name of the jobstartAt
- - start timeendAt
- - end timerepeatStr
- - repeat stringrepeatMin
- - repeat minutes- Returns:
- Job object
-
createJob
Create job with name and query string- Parameters:
name
- name of the jobqueryStr
- query string- Returns:
- Job object
-
createJob
Create job with name, query string, start time, and end time- Parameters:
name
- name of the jobqueryStr
- query stringstartAt
- start timeendAt
- end time- Returns:
- Job object
-
createJob
public Job createJob(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, query string, start time, end time, and repeat string- Parameters:
name
- name of the jobqueryStr
- query stringstartAt
- start timeendAt
- end timerepeatStr
- repeat string- Returns:
- Job object
-
createJob
Create job with name and list of query strings- Parameters:
name
- name of the jobqueryStr
- list of query strings- Returns:
- Job object
-
createJob
public Job createJob(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt) Create job with name, list of query strings, start time, and end time- Parameters:
name
- name of the jobqueryStr
- list of query stringsstartAt
- start timeendAt
- end time- Returns:
- Job object
-
createJob
public Job createJob(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, list of query strings, start time, end time, and repeat string- Parameters:
name
- name of the jobqueryStr
- list of query stringsstartAt
- start timeendAt
- end timerepeatStr
- repeat string- Returns:
- Job object
-
createJob
public Job createJob(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, Integer repeatMin) Create job with name, list of query strings, start time, end time, and repeat minutes- Parameters:
name
- name of the jobqueryStr
- list of query stringsstartAt
- start timeendAt
- end timerepeatMin
- repeat minutes- Returns:
- Job object
-
dropJob
Drop a job- Parameters:
name
- name of the job
-
listViews
List all views- Returns:
- list of View objects
-
getView
Get a view by name- Parameters:
name
- name of the view- Returns:
- View object
-
createView
Create a view- Parameters:
name
- name of the viewquery
- Query object- Returns:
- View object
-
createView
Create a view- Parameters:
name
- name of the viewsql
- SQL string- Returns:
- View object
-
dropView
Drop a view- Parameters:
name
- name of the view
-
listModels
List all models- Returns:
- list of Model objects
-
listModelsWithVersion
List all models with a specific name and version- Parameters:
name
- name of the modelversion
- version of the model- Returns:
- list of ModelVersion objects
-
getModelWithVersion
Get a model with a specific name and version- Parameters:
name
- name of the modelversion
- version of the model- Returns:
- ModelVersion object
-
getModel
Get a model by name- Parameters:
name
- name of the model- Returns:
- Model object
-
dropModel
Drop a Model- Parameters:
modelName
- - Name of the model
-
dropModelVersion
Drop a model version- Parameters:
modelName
- Name of the modelversion
- Version of the model
-
listKnowledgeBases
List all knowledge bases- Returns:
- list of KnowledgeBase objects
-
getKnowledgeBase
Get a knowledge base by name- Parameters:
name
- name of the knowledge base- Returns:
- KnowledgeBase object
-