org.apache.lens.ml.dao
Class MLDBUtils

java.lang.Object
  extended by org.apache.lens.ml.dao.MLDBUtils

public class MLDBUtils
extends Object


Constructor Summary
MLDBUtils()
           
 
Method Summary
 void createMLModelTable()
          Create table to save ML Models
 void createMLTaskTable()
          Create table to store ML task workflow data
 void createTestReportTable()
          Create table to store test report data
 MLModel<?> getMLModel(String modelID)
          Get model metadata given ID
 MLTask getMLTask(String taskID)
          Get ML Task given its id
 MLTestReport getTestReport(String testReportID)
          Get test report given its ID
 void saveMLModel(MLModel<?> mlModel)
          Insert model metadata into model table
 void saveMLTask(MLTask task)
          Insert an ML Task into ml task table
 void saveTestReport(MLTestReport testReport)
          Insert test report into test report table
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLDBUtils

public MLDBUtils()
Method Detail

createTestReportTable

public void createTestReportTable()
Create table to store test report data


createMLTaskTable

public void createMLTaskTable()
Create table to store ML task workflow data


createMLModelTable

public void createMLModelTable()
Create table to save ML Models


saveMLTask

public void saveMLTask(MLTask task)
Insert an ML Task into ml task table

Parameters:
task -

getMLTask

public MLTask getMLTask(String taskID)
Get ML Task given its id

Parameters:
taskID -
Returns:

saveTestReport

public void saveTestReport(MLTestReport testReport)
Insert test report into test report table

Parameters:
testReport -

getTestReport

public MLTestReport getTestReport(String testReportID)
Get test report given its ID

Parameters:
testReportID -
Returns:

saveMLModel

public void saveMLModel(MLModel<?> mlModel)
Insert model metadata into model table

Parameters:
mlModel -

getMLModel

public MLModel<?> getMLModel(String modelID)
Get model metadata given ID

Parameters:
modelID -
Returns:


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.