public class IARestClient extends Object
| Constructor and Description |
|---|
IARestClient(String host,
String port,
String user,
String password)
Default constructor used by the IARestClient.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnect from IGC REST API and invalidate the session.
|
Map<String,ColumnAnalysisResults> |
getColumnAnalysisResultsForTable(String projectName,
String tableName)
Retrieve the column analysis results for a table as a Map, keyed by the name of the column.
|
List<String> |
getColumnsInProject(Project details)
Retrieve a list of all the (qualified) names of columns within the specified project.
|
Map<String,List<DataQualityProblem>> |
getDataQualityAnalysisResultsForTable(String projectName,
String tableName)
Retrieve the data quality analysis results for a table as a Map, keyed by the name of the column.
|
Project |
getFormatDistribution(String projectName,
String columnName)
Retrieve the column analysis results for the specified IA project and column.
|
Project |
getFrequencyDistribution(String projectName,
String columnName)
Retrieve the frequency distribution of values for the specified IA project and column.
|
Project |
getProjectDetails(String projectName)
Retrieve the project details for the specified IA project.
|
List<Project> |
getProjectList()
Retrieve the list of projects defined in the IA environment.
|
Map<String,Date> |
getPublishedResults(String projectName)
Retrieve information on results that have been published for the specified IA project.
|
List<String> |
getTablesInProject(Project details)
Retrieve a list of all the (qualified) names of tables within the specified project.
|
TaskExecutionSchedule |
getTaskStatus(String scheduleId)
Retrieve the status of a task from its scheduled ID.
|
List<TaskExecutionSchedule> |
getTaskStatus(TaskExecutionReport taskExecutionReport)
Retrieve the status of each task within a running request.
|
void |
publishResults(String projectName,
String tableName)
Publish analysis results from the specified project's specified table.
|
TaskExecutionReport |
runColumnAnalysis(String projectName,
String columnName)
Run a column analysis within the specified project, against the specified column(s).
|
TaskExecutionReport |
runDataQualityAnalysis(String projectName,
String tableName)
Run a data quality analysis within the specified project, against the specified table.
|
public IARestClient(String host, String port, String user, String password)
host - the services (domain) tier hostport - the services (domain) tier port numberuser - the username with which to open and retain the sessionpassword - the password for the userpublic void disconnect()
public List<Project> getProjectList()
List<Project>public Project getProjectDetails(String projectName)
projectName - the name of the IA project for which to retrieve detailspublic List<String> getTablesInProject(Project details)
details - the project details as retrieved from getProjectDetailsList<String>getProjectDetails(String)public List<String> getColumnsInProject(Project details)
details - the project details as retrieved from getProjectDetailsList<String>getProjectDetails(String)public Map<String,ColumnAnalysisResults> getColumnAnalysisResultsForTable(String projectName, String tableName)
projectName - the name of the project from which to retrieve resultstableName - the name of the table for which to retrieve resultsMap<String, ColumnAnalysisResults> - a map from column name to analysis resultspublic Map<String,List<DataQualityProblem>> getDataQualityAnalysisResultsForTable(String projectName, String tableName)
projectName - the name of the project from which to retrieve resultstableName - the name of the table for which to retrieve resultsMap<String, List<DataQualityProblem>> - a map from column name to analysis resultspublic Project getFormatDistribution(String projectName, String columnName)
projectName - the name of the IA project for which to retrieve format distribution resultscolumnName - the qualified name of the column for which to retrieve analysis resultspublic Project getFrequencyDistribution(String projectName, String columnName)
projectName - the name of the IA project for which to retrieve format distribution resultscolumnName - the qualified name of the column for which to retrieve analysis resultspublic Map<String,Date> getPublishedResults(String projectName)
projectName - the name of the IA project for which to retrieve the published resultsMap<String, Date> - a map from table name to last publication date, empty if nothing publishedpublic TaskExecutionReport runColumnAnalysis(String projectName, String columnName)
projectName - the name of the project in which to run the column analysiscolumnName - the fully-qualified name of the column(s) to run analysis againstpublic TaskExecutionReport runDataQualityAnalysis(String projectName, String tableName)
projectName - the name of the project in which to run the data quality analysistableName - the fully-qualified name of the table to run analysis againstpublic void publishResults(String projectName, String tableName)
projectName - the name of the project from which to publish analysis resultstableName - the fully-qualified name of the table for which to publish resultspublic List<TaskExecutionSchedule> getTaskStatus(TaskExecutionReport taskExecutionReport)
taskExecutionReport - the response of a running request containing task informationList<TaskExecutionSchedule>public TaskExecutionSchedule getTaskStatus(String scheduleId)
scheduleId - the scheduleId of the task for which to retrieve the statusCopyright © 2018–2019 ODPi. All rights reserved.