public class DatasetApiV10 extends MLRestAPI
Constructor and Description |
---|
DatasetApiV10() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteDataset(long datasetId)
Delete the dataset for a given dataset ID.
|
javax.ws.rs.core.Response |
deleteDatasetVersion(long versionsetId)
Delete the dataset version for a given dataset version ID.
|
javax.ws.rs.core.Response |
getAllDatasets(String status)
Get all datasets of this tenant and user.
|
javax.ws.rs.core.Response |
getAllDatasetVersions()
Get all datasets with their versions.
|
javax.ws.rs.core.Response |
getAllVersionsets(long datasetId)
Get all versions of a dataset.
|
javax.ws.rs.core.Response |
getChartSamplePoints(long versionsetId,
String featureListString)
Get chart sample points of a dataset version.
|
javax.ws.rs.core.Response |
getChartSamplePointsOfLatestVersion(long datasetId,
String featureListString)
Get chart sample points of the latest version of a dataset.
|
javax.ws.rs.core.Response |
getClusterPoints(long datasetId,
String featureListString,
int noOfClusters)
Get cluster points of a dataset version.
|
javax.ws.rs.core.Response |
getDataset(long datasetId)
Get the dataset of a given dataset ID.
|
javax.ws.rs.core.Response |
getDatasetStatus(long datasetId)
Get the status of a dataset.
|
javax.ws.rs.core.Response |
getFilteredFeatures(long datasetId,
String featureType)
Get filtered feature names of a dataset.
|
javax.ws.rs.core.Response |
getSamplePoints(long versionsetId)
Get sample points of a dataset version.
|
javax.ws.rs.core.Response |
getScatterPlotPoints(long versionsetId,
org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
Get scatter plot points of a dataset version.
|
javax.ws.rs.core.Response |
getScatterPlotPointsOfLatestVersion(long datasetId,
org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
Get scatter plot points of the latest version of a dataset.
|
javax.ws.rs.core.Response |
getSummaryStatistics(long datasetId,
String featureName)
Get summary statistics of a dataset feature.
|
javax.ws.rs.core.Response |
getVersionset(long versionsetId)
Get dataset version for a given dataset version ID.
|
javax.ws.rs.core.Response |
getVersionset(long datasetId,
String version)
Get dataset version for a given dataset ID and version.
|
javax.ws.rs.core.Response |
options() |
javax.ws.rs.core.Response |
uploadDataset(String datasetName,
String version,
String description,
String sourceType,
String destination,
String sourcePath,
String dataFormat,
boolean containsHeader,
InputStream inputStream)
Upload a new dataset.
|
getTenantID
public javax.ws.rs.core.Response options()
public javax.ws.rs.core.Response uploadDataset(String datasetName, String version, String description, String sourceType, String destination, String sourcePath, String dataFormat, boolean containsHeader, InputStream inputStream)
datasetName
- Name of the datasetversion
- Version of the datasetdescription
- Description of the datasetsourceType
- Storage type of the source of the dataset (file/HDFS/WSO2 DAS)destination
- Storage type of the server side copy of the dataset (file/HDFS)sourcePath
- Absolute URI of the dataset if source type is DASdataFormat
- Format of the datasetcontainsHeader
- Header availability of the datasetinputStream
- Input stream of the datasetMLDataset
objectpublic javax.ws.rs.core.Response getAllDatasets(String status)
status
- Status of the datasetMLDatasetBean
objectspublic javax.ws.rs.core.Response getAllDatasetVersions()
MLDatasetBean
objectspublic javax.ws.rs.core.Response getDataset(long datasetId)
datasetId
- ID of the datasetMLDataset
objectpublic javax.ws.rs.core.Response getDatasetStatus(long datasetId)
datasetId
- ID of the datasetpublic javax.ws.rs.core.Response getAllVersionsets(long datasetId)
datasetId
- ID of the datasetMLDatasetVersion
objectspublic javax.ws.rs.core.Response getVersionset(long datasetId, String version)
datasetId
- ID of the datasetversion
- Version of the datasetMLDatasetVersion
objectpublic javax.ws.rs.core.Response getVersionset(long versionsetId)
versionsetId
- ID of the dataset versionMLDatasetVersion
objectpublic javax.ws.rs.core.Response getSamplePoints(long versionsetId)
versionsetId
- ID of the dataset versionSamplePoints
objectpublic javax.ws.rs.core.Response getScatterPlotPointsOfLatestVersion(long datasetId, org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
datasetId
- ID of the datasetscatterPlotPoints
- Scatter plot featurespublic javax.ws.rs.core.Response getScatterPlotPoints(long versionsetId, org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
versionsetId
- ID of the dataset versionscatterPlotPoints
- Scatter plot featurespublic javax.ws.rs.core.Response getChartSamplePointsOfLatestVersion(long datasetId, String featureListString)
datasetId
- ID of the datasetfeatureListString
- List of features (single string containing comma separated features)public javax.ws.rs.core.Response getChartSamplePoints(long versionsetId, String featureListString)
versionsetId
- ID of the dataset versionfeatureListString
- List of features (single string containing comma separated features)public javax.ws.rs.core.Response getClusterPoints(long datasetId, String featureListString, int noOfClusters)
datasetId
- ID of the datasetfeatureListString
- List of features (single string containing comma separated features)noOfClusters
- No of clustersClusterPoint
objectspublic javax.ws.rs.core.Response getFilteredFeatures(long datasetId, String featureType)
datasetId
- ID of the datasetfeatureType
- Feature typepublic javax.ws.rs.core.Response getSummaryStatistics(long datasetId, String featureName)
datasetId
- ID of the datasetfeatureName
- Name of the featurepublic javax.ws.rs.core.Response deleteDataset(long datasetId)
datasetId
- ID of the datasetpublic javax.ws.rs.core.Response deleteDatasetVersion(long versionsetId)
versionsetId
- ID of the dataset versionCopyright © 2015 WSO2, Inc.. All Rights Reserved.