public final class ExampleSpeedModelManager extends AbstractSpeedModelManager<String,String,String>
| Constructor and Description |
|---|
ExampleSpeedModelManager() |
| 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. |
consumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic void consumeKeyMessage(String key, String message, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
AbstractSpeedModelManagerAbstractSpeedModelManager.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.