org.apache.lens.ml.task
Class MLTask.Builder
java.lang.Object
org.apache.lens.ml.task.MLTask.Builder
- Enclosing class:
- MLTask
public static class MLTask.Builder
- extends Object
Builder to create an example task
MLTask.Builder
public MLTask.Builder()
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.