public final class ALSSpeedModelManager extends AbstractSpeedModelManager<String,String,String>
SpeedModelManager
that maintains and
updates an ALS model in memory.Constructor and Description |
---|
ALSSpeedModelManager(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)
Convenience method that is called by the default implementation of
AbstractSpeedModelManager.consume(Iterator, Configuration) , to process one key-message pair. |
consume
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public ALSSpeedModelManager(com.typesafe.config.Config config)
public void consumeKeyMessage(String key, String message, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
AbstractSpeedModelManager
AbstractSpeedModelManager.consume(Iterator, Configuration)
, to process one key-message pair.
It does nothing, except log the message. This should generally be overridden
if and only if AbstractSpeedModelManager.consume(Iterator, Configuration)
is not.consumeKeyMessage
in class AbstractSpeedModelManager<String,String,String>
key
- key to process (non-null)message
- message to processhadoopConf
- Hadoop configuration for processIOException
- if an error occurs while processing the messageCopyright © 2014–2018. All rights reserved.