public final class KMeansSpeedModelManager extends AbstractSpeedModelManager<String,String,String>
SpeedModelManager that maintains and
updates an k-means clustering model in memory.| Constructor and Description |
|---|
KMeansSpeedModelManager(com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<String> |
buildUpdates(org.apache.spark.api.java.JavaPairRDD<String,String> newData) |
void |
consumeKeyMessage(String key,
String message,
org.apache.hadoop.conf.Configuration hadoopConf) |
consumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic KMeansSpeedModelManager(com.typesafe.config.Config config)
public void consumeKeyMessage(String key, String message, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
consumeKeyMessage in class AbstractSpeedModelManager<String,String,String>IOExceptionCopyright © 2014–2018. All rights reserved.