public interface DatabaseService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAnalysis(int tenantId,
String userName,
long analysisId)
Delete an analysis.
|
void |
deleteDataset(long datasetId)
Delete the dataset schema.
|
void |
deleteDatasetVersion(long datasetVersionId)
Delete the dataset version.
|
void |
deleteModel(int tenantId,
String userName,
long modelId)
Delete the model from the database.
|
void |
deleteProject(int tenantId,
String userName,
long projectId)
Delete the project.
|
boolean |
getABooleanModelConfiguration(long analysisId,
String configKey)
Get a boolean value of model configuration.
|
double |
getADoubleModelConfiguration(long analysisId,
String configKey)
Get a double value of model configuration.
|
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> |
getAllAnalyses(int tenantId,
String userName)
Get all the analyses of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> |
getAllAnalysesOfProject(int tenantId,
String userName,
long projectId)
Get all the analyses of a project.
|
List<org.wso2.carbon.ml.commons.domain.MLDataset> |
getAllDatasets(int tenantId,
String userName)
Get all the dataset schemas of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
getAllModels(int tenantId,
String userName)
Get all models of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
getAllModels(int tenantId,
String userName,
long analysisId)
Get all models of a given analysis.
|
List<org.wso2.carbon.ml.commons.domain.MLProject> |
getAllProjects(int tenantId,
String userName)
Get all the projects of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> |
getAllVersionsetsOfDataset(int tenantId,
String userName,
long datasetId)
Get all the dataset-versions of the given dataset schema.
|
org.wso2.carbon.ml.commons.domain.MLAnalysis |
getAnalysis(int tenantId,
String userName,
long analysisId)
Get analysis by id.
|
org.wso2.carbon.ml.commons.domain.MLAnalysis |
getAnalysisOfProject(int tenantId,
String userName,
long projectId,
String analysisName)
Returns an analysis of a given name in a given project.
|
String |
getAStringModelConfiguration(long analysisId,
String configKey)
Get a string value of model configuration.
|
List<Object> |
getChartSamplePoints(int tenantId,
String user,
long versionsetId,
String featureListString)
Returns sample data for selected features.
|
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> |
getCustomizedFeatures(int tenantId,
String userName,
long analysisId,
int startIndex,
int numberOfFeatures)
Returns the customized set of features of an analysis in a given range, from the alphabetically ordered set
of features, of a dataset.
|
org.wso2.carbon.ml.commons.domain.MLDataset |
getDataset(int tenantId,
String userName,
long datasetId)
Get the dataset schema identified by the given dataset schema id.
|
long |
getDatasetId(long datasetVersionId)
Get the dataset schema ID of the dataset version.
|
long |
getDatasetId(String datasetName,
int tenantId,
String userName)
Get the dataset id.
|
long |
getDatasetSchemaIdFromAnalysisId(long analysisId)
Get the dataset schema ID of a given analysis.
|
String |
getDatasetUri(long datasetId)
Retrieves the path of the value-set having the given ID, from the
database.
|
long |
getDatasetVersionIdOfModel(long modelId)
Get the ID of the dataset version used to generate the model.
|
String |
getDatasetVersionUri(long datasetVersionId)
Retrieves the path of the value-set having the given ID, from the
database.
|
String |
getDataTypeOfModel(long modelId)
Get the data type of the model.
|
int |
getFeatureCount(long datasetVersionId)
Returns the number of features of a given data-set version.
|
List<String> |
getFeatureNames(long datasetId)
Get feature names of a dataset.
|
List<String> |
getFeatureNames(long datasetId,
String featureType)
Returns the names of the features, belongs to a particular type
(Categorical/Numerical), of a dataset.
|
List<String> |
getFeatureNames(String analysisId)
Returns all the feature names of an analysis.
|
List<String> |
getFeatureNames(String analysisId,
String featureType)
Returns the names of the features, belongs to a particular type
(Categorical/Numerical), of the analysis.
|
String |
getFeatureNamesInOrder(long datasetId,
String columnSeparator)
Get feature names of a dataset ordered by feature index.
|
String |
getFeatureNamesInOrderUsingDatasetVersion(long datasetVersionId,
String columnSeparator)
Get feature names of a dataset version ordered by feature index.
|
List<org.wso2.carbon.ml.commons.domain.FeatureSummary> |
getFeatures(int tenantId,
String userName,
long analysisId,
int startIndex,
int numberOfFeatures)
Returns a set of features in a given range, from the alphabetically ordered set
of features, of a dataset.
|
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> |
getHyperParametersOfModel(long analysisId,
String algorithmName)
Get the list of Hyper-parameters of the model.
|
Map<String,String> |
getHyperParametersOfModelAsMap(long modelId)
Get the Hyper-parameters of the model as a Map.
|
org.wso2.carbon.ml.commons.domain.config.MLConfiguration |
getMlConfiguration()
Returns ML Configuration.
|
org.wso2.carbon.ml.commons.domain.MLModelData |
getModel(int tenantId,
String userName,
long modelId)
Get the model name identified by the given model id.
|
org.wso2.carbon.ml.commons.domain.MLModelData |
getModel(int tenantId,
String userName,
String modelName)
Get the Model having the given model name.
|
org.wso2.carbon.ml.commons.domain.MLStorage |
getModelStorage(long modelId)
Get the Model storage of the model.
|
org.wso2.carbon.ml.commons.domain.ModelSummary |
getModelSummary(long modelId)
Retrieve summary of the model.
|
org.wso2.carbon.ml.commons.domain.MLProject |
getProject(int tenantId,
String userName,
long projectId)
Returns project object for a given project ID from the database.
|
org.wso2.carbon.ml.commons.domain.MLProject |
getProject(int tenantId,
String userName,
String projectName)
Get the project having the given project name.
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
getProjectModels(int tenantId,
String userName,
long projectId)
Get all models of a given project.
|
List<Object> |
getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
Returns data points of the selected sample as coordinates of three
features, needed for the scatter plot.
|
String |
getSummaryStats(int tenantId,
String user,
long analysisId,
String featureName)
Retrieve and returns the Summary statistics for a given feature of a
given data-set version, from the database.
|
Map<String,String> |
getSummaryStats(long datasetVersionId)
Get the summary stats of the dataset version.
|
String |
getSummaryStats(long datasetId,
String featureName)
Retrieve and returns summary statistics for a given feature of a given dataset.
|
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
getVersionset(int tenantId,
String userName,
long datasetVersionId)
Get the dataset-version identified by the given dataset-version id.
|
long |
getVersionsetId(String datasetVersionName,
int tenantId,
String userName)
Get the dataset-version id.
|
org.wso2.carbon.ml.commons.domain.SamplePoints |
getVersionsetSample(int tenantId,
String user,
long versionsetId)
Retrieve the SamplePoints object for a given version-set.
|
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
getVersionSetWithVersion(long datasetId,
String version,
int tenantId,
String userName)
Get the unique identifier of the dataset version given the dataset schema and the version.
|
org.wso2.carbon.ml.commons.domain.Workflow |
getWorkflow(long analysisId)
Get the workflow of the analysis.
|
void |
insertAnalysis(org.wso2.carbon.ml.commons.domain.MLAnalysis analysis)
Insert a new analysis into the database.
|
void |
insertDatasetSchema(org.wso2.carbon.ml.commons.domain.MLDataset dataset)
Insert a new dataset-schema into the database.
|
void |
insertDatasetVersion(org.wso2.carbon.ml.commons.domain.MLDatasetVersion datasetVersion)
Insert a new dataset-version into the database.
|
void |
insertDefaultsIntoFeatureCustomized(long analysisId,
org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedValues)
Insert the default feature attributes into the relevant customized feature attributes of a given analysis.
|
void |
insertFeatureCustomized(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> customizedFeatures,
int tenantId,
String userName)
Insert a list of Customized-Features into the database.
|
void |
insertHyperParameters(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> hyperParameters,
String algorithmName)
Insert a list of HyperParameters into the database.
|
void |
insertModel(org.wso2.carbon.ml.commons.domain.MLModelData model)
Insert a new model into the database.
|
void |
insertModelConfigurations(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLModelConfiguration> modelConfigs)
Insert a list of ModelConfiguration into the database.
|
void |
insertProject(org.wso2.carbon.ml.commons.domain.MLProject project)
Insert a new project to the database.
|
boolean |
isValidModelId(int tenantId,
String userName,
long modelId)
Check whether the given modelId is valid.
|
boolean |
isValidModelStatus(long modelId,
int tenantId,
String userName)
Check whether the model is in a valid state.
|
void |
shutdown()
Executes the SHUTDOWN statement.
|
void |
updateModelError(long modelId,
String error)
Update model error.
|
void |
updateModelStatus(long modelId,
String status)
Update model status.
|
void |
updateModelStorage(long modelId,
String storageType,
String location)
Update the storage details of a model.
|
void |
updateModelSummary(long modelId,
org.wso2.carbon.ml.commons.domain.ModelSummary modelSummary)
Update the model summary of a given model.
|
void |
updateSamplePoints(long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SamplePoints samplePoints)
Update the database with the sample points of data-set-version.
|
void |
updateSummaryStatistics(long datasetSchemaId,
long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SummaryStats summaryStats)
Update the database with the summary stats of data-set-version.
|
org.wso2.carbon.ml.commons.domain.config.MLConfiguration getMlConfiguration()
void insertDatasetSchema(org.wso2.carbon.ml.commons.domain.MLDataset dataset)
throws DatabaseHandlerException
dataset - MLDataset to be insertedDatabaseHandlerExceptionvoid insertDatasetVersion(org.wso2.carbon.ml.commons.domain.MLDatasetVersion datasetVersion)
throws DatabaseHandlerException
datasetVersion - MLDatasetVersion to be insertedDatabaseHandlerExceptionvoid insertProject(org.wso2.carbon.ml.commons.domain.MLProject project)
throws DatabaseHandlerException
project - MLProject to be insertedDatabaseHandlerExceptionvoid insertAnalysis(org.wso2.carbon.ml.commons.domain.MLAnalysis analysis)
throws DatabaseHandlerException
analysis - MLAnalysis to be insertedDatabaseHandlerExceptionvoid insertModel(org.wso2.carbon.ml.commons.domain.MLModelData model)
throws DatabaseHandlerException
model - MLModelNew to be insertedDatabaseHandlerExceptionString getDatasetVersionUri(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId - Unique Identifier of the dataset-versionDatabaseHandlerExceptionString getDatasetUri(long datasetId) throws DatabaseHandlerException
datasetId - Unique Identifier of the datasetDatabaseHandlerExceptionlong getDatasetId(String datasetName, int tenantId, String userName) throws DatabaseHandlerException
datasetName - Name of the data-settenantId - Tenant IduserName - Tenant user nameDatabaseHandlerExceptionlong getVersionsetId(String datasetVersionName, int tenantId, String userName) throws DatabaseHandlerException
datasetVersionName - Name of the dataset versiontenantId - ID of the tenantuserName - Username of the tenantDatabaseHandlerExceptionList<Object> getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints) throws DatabaseHandlerException
scatterPlotPoints - Scatter plot pointsDatabaseHandlerExceptionList<Object> getChartSamplePoints(int tenantId, String user, long versionsetId, String featureListString) throws DatabaseHandlerException
tenantId - Tenant iduser - Tenant user nameversionsetId - Unique Identifier of the value-setfeatureListString - String containing feature name listDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.FeatureSummary> getFeatures(int tenantId, String userName, long analysisId, int startIndex, int numberOfFeatures) throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Tenant user nameanalysisId - ID of the analysisstartIndex - Starting index of the set of features needednumberOfFeatures - Number of features needed, from the starting indexDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> getCustomizedFeatures(int tenantId, String userName, long analysisId, int startIndex, int numberOfFeatures) throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantanalysisId - Unique ID of the analysisstartIndex - Starting index of the set of features needednumberOfFeatures - Number of features needed, from the starting indexDatabaseHandlerExceptionList<String> getFeatureNames(String analysisId, String featureType) throws DatabaseHandlerException
analysisId - Unique identifier of the current analysisfeatureType - Type of the featureDatabaseHandlerExceptionList<String> getFeatureNames(String analysisId) throws DatabaseHandlerException
analysisId - Unique identifier of the current analysisDatabaseHandlerExceptionList<String> getFeatureNames(long datasetId, String featureType) throws DatabaseHandlerException
datasetId - Unique identifier of a datasetfeatureType - Type of the featureDatabaseHandlerExceptionString getSummaryStats(int tenantId, String user, long analysisId, String featureName) throws DatabaseHandlerException
tenantId - Tenant iduser - Tenant user nameanalysisId - Unique identifier of the data-setfeatureName - Name of the feature of which summary statistics are neededDatabaseHandlerExceptionString getSummaryStats(long datasetId, String featureName) throws DatabaseHandlerException
datasetId - Unique identifier of a datasetfeatureName - Name of the feature of which summary statistics are neededDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.SamplePoints getVersionsetSample(int tenantId,
String user,
long versionsetId)
throws DatabaseHandlerException
tenantId - Tenant iduser - Tenant user nameversionsetId - ID of the dataset versionSamplePoints object of the dataset versionDatabaseHandlerExceptionint getFeatureCount(long datasetVersionId)
throws DatabaseHandlerException
datasetVersionId - Unique identifier of the dataset versionDatabaseHandlerExceptionvoid updateSummaryStatistics(long datasetSchemaId,
long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SummaryStats summaryStats)
throws DatabaseHandlerException
datasetSchemaId - Unique id of the dataset schemadatasetVersionId - Unique Id of the data-set-versionsummaryStats - Summary statsDatabaseHandlerExceptionvoid updateSamplePoints(long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SamplePoints samplePoints)
throws DatabaseHandlerException
datasetVersionId - Unique Id of the data-set-versionsamplePoints - Sample points of this dataset versionDatabaseHandlerExceptionvoid deleteProject(int tenantId,
String userName,
long projectId)
throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantprojectId - ID of the projectDatabaseHandlerExceptionvoid insertFeatureCustomized(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> customizedFeatures,
int tenantId,
String userName)
throws DatabaseHandlerException
analysisId - Analysis IdcustomizedFeatures - MLCustomizedFeature listtenantId - Tenant IduserName - UsernameDatabaseHandlerExceptionvoid insertModelConfigurations(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLModelConfiguration> modelConfigs)
throws DatabaseHandlerException
analysisId - Analysis IDmodelConfigs - MLModelConfiguration listDatabaseHandlerExceptionvoid insertHyperParameters(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> hyperParameters,
String algorithmName)
throws DatabaseHandlerException
analysisId - Analysis IDhyperParameters - MLHyperParameter listalgorithmName - Algorithm nameDatabaseHandlerExceptionvoid updateModelSummary(long modelId,
org.wso2.carbon.ml.commons.domain.ModelSummary modelSummary)
throws DatabaseHandlerException
modelId - model idmodelSummary - ModelSummaryDatabaseHandlerExceptionvoid updateModelStorage(long modelId,
String storageType,
String location)
throws DatabaseHandlerException
modelId - Model IdstorageType - Storage typelocation - Storage locationDatabaseHandlerExceptionboolean isValidModelId(int tenantId,
String userName,
long modelId)
throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantmodelId - ID of the modelDatabaseHandlerExceptionboolean isValidModelStatus(long modelId,
int tenantId,
String userName)
throws DatabaseHandlerException
modelId - ID of the modeltenantId - Tenant iduserName - Tenant user nameDatabaseHandlerExceptionlong getDatasetVersionIdOfModel(long modelId)
throws DatabaseHandlerException
modelId - ID of the modelDatabaseHandlerExceptionlong getDatasetId(long datasetVersionId)
throws DatabaseHandlerException
datasetVersionId - Unique ID of the dataset versionDatabaseHandlerExceptionString getDataTypeOfModel(long modelId) throws DatabaseHandlerException
modelId - ID of the modelDatabaseHandlerExceptionString getAStringModelConfiguration(long analysisId, String configKey) throws DatabaseHandlerException
analysisId - Unique ID of the analysisconfigKey - Model configuration keyDatabaseHandlerExceptiondouble getADoubleModelConfiguration(long analysisId,
String configKey)
throws DatabaseHandlerException
analysisId - unique id of the analysisconfigKey - model configuration keyDatabaseHandlerExceptionboolean getABooleanModelConfiguration(long analysisId,
String configKey)
throws DatabaseHandlerException
analysisId - unique id of the analysisconfigKey - model configuration keyDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLHyperParameter> getHyperParametersOfModel(long analysisId, String algorithmName) throws DatabaseHandlerException
analysisId - Unique ID of the analysisalgorithmName - Algorithm nameMLHyperParameter objectsDatabaseHandlerExceptionMap<String,String> getHyperParametersOfModelAsMap(long modelId) throws DatabaseHandlerException
modelId - unique id of the modelDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.Workflow getWorkflow(long analysisId)
throws DatabaseHandlerException
analysisId - unique id of the analysisWorkflow objectDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLStorage getModelStorage(long modelId)
throws DatabaseHandlerException
modelId - unique id of the modelMLStorage objectDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLProject getProject(int tenantId,
String userName,
String projectName)
throws DatabaseHandlerException
tenantId - tenant iduserName - usernameprojectName - project nameMLProject objectDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLProject getProject(int tenantId,
String userName,
long projectId)
throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantprojectId - ID of the projectMLProject objectDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLProject> getAllProjects(int tenantId, String userName) throws DatabaseHandlerException
tenantId - tenant iduserName - usernameMLProject objectsDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLModelData> getProjectModels(int tenantId, String userName, long projectId) throws DatabaseHandlerException
tenantId - tenant IDuserName - usernameprojectId - Project IDMLModelData objectsDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLAnalysis> getAllAnalyses(int tenantId, String userName) throws DatabaseHandlerException
tenantId - tenant iduserName - usernameMLAnalysis objectsDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLModelData getModel(int tenantId,
String userName,
String modelName)
throws DatabaseHandlerException
tenantId - tenant iduserName - usernamemodelName - model nameMLModelData objectDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLModelData getModel(int tenantId,
String userName,
long modelId)
throws DatabaseHandlerException
tenantId - tenant iduserName - usernamemodelId - model idMLModelData objectDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLModelData> getAllModels(int tenantId, String userName) throws DatabaseHandlerException
tenantId - tenant iduserName - usernameMLModelData objectsDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> getAllVersionsetsOfDataset(int tenantId, String userName, long datasetId) throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantdatasetId - dataset schema idMLDatasetVersion objectsDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLDataset> getAllDatasets(int tenantId, String userName) throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantMLDataset objectsDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLDataset getDataset(int tenantId,
String userName,
long datasetId)
throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantdatasetId - Dataset schema IDMLDataset objectDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLDatasetVersion getVersionset(int tenantId,
String userName,
long datasetVersionId)
throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantdatasetVersionId - ID of the dataset versionMLDatasetVersion objectDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLDatasetVersion getVersionSetWithVersion(long datasetId,
String version,
int tenantId,
String userName)
throws DatabaseHandlerException
datasetId - ID of the datasetversion - Version of the dataset versiontenantId - ID of the tenantuserName - Username of the tenantMLDatasetVersion objectDatabaseHandlerExceptionvoid insertDefaultsIntoFeatureCustomized(long analysisId,
org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedValues)
throws DatabaseHandlerException
analysisId - ID of the analysiscustomizedValues - customized featureDatabaseHandlerExceptionlong getDatasetSchemaIdFromAnalysisId(long analysisId)
throws DatabaseHandlerException
analysisId - ID of the analysisDatabaseHandlerExceptionvoid deleteModel(int tenantId,
String userName,
long modelId)
throws DatabaseHandlerException
tenantId - tenant iduserName - usernamemodelId - model idDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLAnalysis> getAllAnalysesOfProject(int tenantId, String userName, long projectId) throws DatabaseHandlerException
tenantId - tenant iduserName - user nameprojectId - project idMLAnalysis objectsDatabaseHandlerExceptionList<org.wso2.carbon.ml.commons.domain.MLModelData> getAllModels(int tenantId, String userName, long analysisId) throws DatabaseHandlerException
tenantId - ID of the tenantuserName - Username of the tenantanalysisId - ID of the analysisMLModelData objectsDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.ModelSummary getModelSummary(long modelId)
throws DatabaseHandlerException
modelId - ID of the modelModelSummary objectDatabaseHandlerExceptionvoid updateModelStatus(long modelId,
String status)
throws DatabaseHandlerException
modelId - Unique id of the modelstatus - Status to be updatedDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLAnalysis getAnalysis(int tenantId,
String userName,
long analysisId)
throws DatabaseHandlerException
tenantId - Tenant iduserName - Tenant user nameanalysisId - Unique id of the analysisMLAnalysis objectDatabaseHandlerExceptionvoid deleteDataset(long datasetId)
throws DatabaseHandlerException
datasetId - unique id of dataset schemaDatabaseHandlerExceptionvoid deleteDatasetVersion(long datasetVersionId)
throws DatabaseHandlerException
datasetVersionId - unique id of dataset versionDatabaseHandlerExceptionorg.wso2.carbon.ml.commons.domain.MLAnalysis getAnalysisOfProject(int tenantId,
String userName,
long projectId,
String analysisName)
throws DatabaseHandlerException
tenantId - Tenant iduserName - Tenant user nameprojectId - Unique id of the projectanalysisName - Name of the analysisMLAnalysis objectDatabaseHandlerExceptionvoid deleteAnalysis(int tenantId,
String userName,
long analysisId)
throws DatabaseHandlerException
tenantId - Tenant iduserName - Tenant user nameanalysisId - Unique id of the analysisDatabaseHandlerExceptionvoid updateModelError(long modelId,
String error)
throws DatabaseHandlerException
modelId - Unique id of the modelerror - Error value to be updatedDatabaseHandlerExceptionString getFeatureNamesInOrder(long datasetId, String columnSeparator) throws DatabaseHandlerException
datasetId - Unique id of datasetcolumnSeparator - Column separator (CSV or TSV)DatabaseHandlerExceptionString getFeatureNamesInOrderUsingDatasetVersion(long datasetVersionId, String columnSeparator) throws DatabaseHandlerException
datasetVersionId - Unique id of the dataset versioncolumnSeparator - Column separator (CSV or TSV)DatabaseHandlerExceptionMap<String,String> getSummaryStats(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId - Unique id of the dataset versionDatabaseHandlerExceptionList<String> getFeatureNames(long datasetId) throws DatabaseHandlerException
datasetId - Unique id of the dataset.DatabaseHandlerExceptionvoid shutdown()
throws DatabaseHandlerException
DatabaseHandlerExceptionCopyright © 2018 WSO2, Inc.. All rights reserved.