org.apache.lens.ml.task
Class MLTask.Builder

java.lang.Object
  extended by org.apache.lens.ml.task.MLTask.Builder
Enclosing class:
MLTask

public static class MLTask.Builder
extends Object

Builder to create an example task


Constructor Summary
MLTask.Builder()
           
 
Method Summary
 MLTask.Builder addFeatureColumn(String featureColumn)
           
 MLTask.Builder algorithm(String algorithm)
           
 MLTask build()
           
 MLTask.Builder extraParam(String param, String value)
           
 MLTask.Builder hiveConf(org.apache.hadoop.hive.conf.HiveConf hiveConf)
           
 MLTask.Builder labelColumn(String labelColumn)
           
 MLTask.Builder outputTable(String outputTable)
           
 MLTask.Builder partitionSpec(String partitionSpec)
           
 MLTask.Builder password(String password)
           
 MLTask.Builder serverLocation(String serverLocation)
           
 MLTask.Builder sessionHandle(LensSessionHandle sessionHandle)
           
 MLTask.Builder trainingTable(String trainingTable)
           
 MLTask.Builder userName(String userName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLTask.Builder

public MLTask.Builder()
Method Detail

trainingTable

public MLTask.Builder trainingTable(String trainingTable)

algorithm

public MLTask.Builder algorithm(String algorithm)

labelColumn

public MLTask.Builder labelColumn(String labelColumn)

addFeatureColumn

public MLTask.Builder addFeatureColumn(String featureColumn)

hiveConf

public MLTask.Builder hiveConf(org.apache.hadoop.hive.conf.HiveConf hiveConf)

serverLocation

public MLTask.Builder serverLocation(String serverLocation)

sessionHandle

public MLTask.Builder sessionHandle(LensSessionHandle sessionHandle)

extraParam

public MLTask.Builder extraParam(String param,
                                 String value)

partitionSpec

public MLTask.Builder partitionSpec(String partitionSpec)

outputTable

public MLTask.Builder outputTable(String outputTable)

build

public MLTask build()

userName

public MLTask.Builder userName(String userName)

password

public MLTask.Builder password(String password)


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