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
|
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) |
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 insertedDatabaseHandlerException
void insertDatasetVersion(org.wso2.carbon.ml.commons.domain.MLDatasetVersion datasetVersion) throws DatabaseHandlerException
datasetVersion
- MLDatasetVersion to be insertedDatabaseHandlerException
void insertProject(org.wso2.carbon.ml.commons.domain.MLProject project) throws DatabaseHandlerException
project
- MLProject to be insertedDatabaseHandlerException
void insertAnalysis(org.wso2.carbon.ml.commons.domain.MLAnalysis analysis) throws DatabaseHandlerException
analysis
- MLAnalysis to be insertedDatabaseHandlerException
void insertModel(org.wso2.carbon.ml.commons.domain.MLModelData model) throws DatabaseHandlerException
model
- MLModelNew to be insertedDatabaseHandlerException
String getDatasetVersionUri(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId
- Unique Identifier of the dataset-versionDatabaseHandlerException
String getDatasetUri(long datasetId) throws DatabaseHandlerException
datasetId
- Unique Identifier of the datasetDatabaseHandlerException
long getDatasetId(String datasetName, int tenantId, String userName) throws DatabaseHandlerException
datasetName
- Name of the data-settenantId
- Tenant IduserName
- Tenant user nameDatabaseHandlerException
long getVersionsetId(String datasetVersionName, int tenantId, String userName) throws DatabaseHandlerException
datasetVersionName
- Name of the dataset versiontenantId
- ID of the tenantuserName
- Username of the tenantDatabaseHandlerException
List<Object> getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints) throws DatabaseHandlerException
scatterPlotPoints
- Scatter plot pointsDatabaseHandlerException
List<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 listDatabaseHandlerException
List<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 indexDatabaseHandlerException
List<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 indexDatabaseHandlerException
List<String> getFeatureNames(String analysisId, String featureType) throws DatabaseHandlerException
analysisId
- Unique identifier of the current analysisfeatureType
- Type of the featureDatabaseHandlerException
List<String> getFeatureNames(String analysisId) throws DatabaseHandlerException
analysisId
- Unique identifier of the current analysisDatabaseHandlerException
List<String> getFeatureNames(long datasetId, String featureType) throws DatabaseHandlerException
datasetId
- Unique identifier of a datasetfeatureType
- Type of the featureDatabaseHandlerException
String 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 neededDatabaseHandlerException
String getSummaryStats(long datasetId, String featureName) throws DatabaseHandlerException
datasetId
- Unique identifier of a datasetfeatureName
- Name of the feature of which summary statistics are neededDatabaseHandlerException
org.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 versionDatabaseHandlerException
int getFeatureCount(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId
- Unique identifier of the dataset versionDatabaseHandlerException
void 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 statsDatabaseHandlerException
void 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 versionDatabaseHandlerException
void deleteProject(int tenantId, String userName, long projectId) throws DatabaseHandlerException
tenantId
- ID of the tenantuserName
- Username of the tenantprojectId
- ID of the projectDatabaseHandlerException
void 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
- UsernameDatabaseHandlerException
void insertModelConfigurations(long analysisId, List<org.wso2.carbon.ml.commons.domain.MLModelConfiguration> modelConfigs) throws DatabaseHandlerException
analysisId
- Analysis IDmodelConfigs
- MLModelConfiguration listDatabaseHandlerException
void insertHyperParameters(long analysisId, List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> hyperParameters, String algorithmName) throws DatabaseHandlerException
analysisId
- Analysis IDhyperParameters
- MLHyperParameter listalgorithmName
- Algorithm nameDatabaseHandlerException
void updateModelSummary(long modelId, org.wso2.carbon.ml.commons.domain.ModelSummary modelSummary) throws DatabaseHandlerException
modelId
- model idmodelSummary
- ModelSummaryDatabaseHandlerException
void updateModelStorage(long modelId, String storageType, String location) throws DatabaseHandlerException
modelId
- Model IdstorageType
- Storage typelocation
- Storage locationDatabaseHandlerException
boolean isValidModelId(int tenantId, String userName, long modelId) throws DatabaseHandlerException
tenantId
- ID of the tenantuserName
- Username of the tenantmodelId
- ID of the modelDatabaseHandlerException
boolean isValidModelStatus(long modelId, int tenantId, String userName) throws DatabaseHandlerException
modelId
- ID of the modeltenantId
- Tenant iduserName
- Tenant user nameDatabaseHandlerException
long getDatasetVersionIdOfModel(long modelId) throws DatabaseHandlerException
modelId
- ID of the modelDatabaseHandlerException
long getDatasetId(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId
- Unique ID of the dataset versionDatabaseHandlerException
String getDataTypeOfModel(long modelId) throws DatabaseHandlerException
modelId
- ID of the modelDatabaseHandlerException
String getAStringModelConfiguration(long analysisId, String configKey) throws DatabaseHandlerException
analysisId
- Unique ID of the analysisconfigKey
- Model configuration keyDatabaseHandlerException
double getADoubleModelConfiguration(long analysisId, String configKey) throws DatabaseHandlerException
analysisId
- unique id of the analysisconfigKey
- model configuration keyDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> getHyperParametersOfModel(long analysisId, String algorithmName) throws DatabaseHandlerException
analysisId
- Unique ID of the analysisalgorithmName
- Algorithm nameMLHyperParameter
objectsDatabaseHandlerException
Map<String,String> getHyperParametersOfModelAsMap(long modelId) throws DatabaseHandlerException
modelId
- unique id of the modelDatabaseHandlerException
org.wso2.carbon.ml.commons.domain.Workflow getWorkflow(long analysisId) throws DatabaseHandlerException
analysisId
- unique id of the analysisWorkflow
objectDatabaseHandlerException
org.wso2.carbon.ml.commons.domain.MLStorage getModelStorage(long modelId) throws DatabaseHandlerException
modelId
- unique id of the modelMLStorage
objectDatabaseHandlerException
org.wso2.carbon.ml.commons.domain.MLProject getProject(int tenantId, String userName, String projectName) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernameprojectName
- project nameMLProject
objectDatabaseHandlerException
org.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
objectDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLProject> getAllProjects(int tenantId, String userName) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernameMLProject
objectsDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLModelData> getProjectModels(int tenantId, String userName, long projectId) throws DatabaseHandlerException
tenantId
- tenant IDuserName
- usernameprojectId
- Project IDMLModelData
objectsDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> getAllAnalyses(int tenantId, String userName) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernameMLAnalysis
objectsDatabaseHandlerException
org.wso2.carbon.ml.commons.domain.MLModelData getModel(int tenantId, String userName, String modelName) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernamemodelName
- model nameMLModelData
objectDatabaseHandlerException
org.wso2.carbon.ml.commons.domain.MLModelData getModel(int tenantId, String userName, long modelId) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernamemodelId
- model idMLModelData
objectDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLModelData> getAllModels(int tenantId, String userName) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernameMLModelData
objectsDatabaseHandlerException
List<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
objectsDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLDataset> getAllDatasets(int tenantId, String userName) throws DatabaseHandlerException
tenantId
- ID of the tenantuserName
- Username of the tenantMLDataset
objectsDatabaseHandlerException
org.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
objectDatabaseHandlerException
org.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
objectDatabaseHandlerException
org.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
objectDatabaseHandlerException
void insertDefaultsIntoFeatureCustomized(long analysisId, org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedValues) throws DatabaseHandlerException
analysisId
- ID of the analysiscustomizedValues
- customized featureDatabaseHandlerException
long getDatasetSchemaIdFromAnalysisId(long analysisId) throws DatabaseHandlerException
analysisId
- ID of the analysisDatabaseHandlerException
void deleteModel(int tenantId, String userName, long modelId) throws DatabaseHandlerException
tenantId
- tenant iduserName
- usernamemodelId
- model idDatabaseHandlerException
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> getAllAnalysesOfProject(int tenantId, String userName, long projectId) throws DatabaseHandlerException
tenantId
- tenant iduserName
- user nameprojectId
- project idMLAnalysis
objectsDatabaseHandlerException
List<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
objectsDatabaseHandlerException
org.wso2.carbon.ml.commons.domain.ModelSummary getModelSummary(long modelId) throws DatabaseHandlerException
modelId
- ID of the modelModelSummary
objectDatabaseHandlerException
void updateModelStatus(long modelId, String status) throws DatabaseHandlerException
modelId
- Unique id of the modelstatus
- Status to be updatedDatabaseHandlerException
org.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
objectDatabaseHandlerException
void deleteDataset(long datasetId) throws DatabaseHandlerException
datasetId
- unique id of dataset schemaDatabaseHandlerException
void deleteDatasetVersion(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId
- unique id of dataset versionDatabaseHandlerException
org.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
objectDatabaseHandlerException
void deleteAnalysis(int tenantId, String userName, long analysisId) throws DatabaseHandlerException
tenantId
- Tenant iduserName
- Tenant user nameanalysisId
- Unique id of the analysisDatabaseHandlerException
void updateModelError(long modelId, String error) throws DatabaseHandlerException
modelId
- Unique id of the modelerror
- Error value to be updatedDatabaseHandlerException
String getFeatureNamesInOrder(long datasetId, String columnSeparator) throws DatabaseHandlerException
datasetId
- Unique id of datasetcolumnSeparator
- Column separator (CSV or TSV)DatabaseHandlerException
String getFeatureNamesInOrderUsingDatasetVersion(long datasetVersionId, String columnSeparator) throws DatabaseHandlerException
datasetVersionId
- Unique id of the dataset versioncolumnSeparator
- Column separator (CSV or TSV)DatabaseHandlerException
Map<String,String> getSummaryStats(long datasetVersionId) throws DatabaseHandlerException
datasetVersionId
- Unique id of the dataset versionDatabaseHandlerException
List<String> getFeatureNames(long datasetId) throws DatabaseHandlerException
datasetId
- Unique id of the datasetDatabaseHandlerException
void shutdown() throws DatabaseHandlerException
DatabaseHandlerException
Copyright © 2015 WSO2, Inc.. All Rights Reserved.