public class KMeansIterationsJobRunner<T> extends Object implements MapReduceJobRunner, IndependentJobRunner
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
KMeansIterationsJobRunner() |
Modifier and Type | Method and Description |
---|---|
protected int |
computeCostAndCleanUp(String groupID,
List<AnalyticItemWrapper<T>> centroids,
CentroidManager<T> centroidManager,
DistanceFn<T> distanceFunction) |
protected CentroidManager<T> |
constructCentroidManager(org.apache.hadoop.conf.Configuration config,
PropertyManagement runTimeProperties) |
Collection<ParameterEnum<?>> |
getParameters() |
int |
run(org.apache.hadoop.conf.Configuration config,
PropertyManagement runTimeProperties) |
int |
run(PropertyManagement runTimeProperties) |
protected int |
runJob(org.apache.hadoop.conf.Configuration config,
PropertyManagement runTimeProperties) |
void |
setInputFormatConfiguration(FormatConfiguration inputFormatConfiguration) |
void |
setReducerCount(int reducerCount) |
protected CentroidManager<T> constructCentroidManager(org.apache.hadoop.conf.Configuration config, PropertyManagement runTimeProperties) throws IOException
IOException
public void setInputFormatConfiguration(FormatConfiguration inputFormatConfiguration)
public void setReducerCount(int reducerCount)
public int run(org.apache.hadoop.conf.Configuration config, PropertyManagement runTimeProperties) throws Exception
run
in interface MapReduceJobRunner
Exception
protected int runJob(org.apache.hadoop.conf.Configuration config, PropertyManagement runTimeProperties) throws Exception
Exception
protected int computeCostAndCleanUp(String groupID, List<AnalyticItemWrapper<T>> centroids, CentroidManager<T> centroidManager, DistanceFn<T> distanceFunction)
public Collection<ParameterEnum<?>> getParameters()
getParameters
in interface IndependentJobRunner
public int run(PropertyManagement runTimeProperties) throws Exception
run
in interface IndependentJobRunner
Exception
Copyright © 2013–2020. All rights reserved.