public final class ALSServingModelManager extends AbstractServingModelManager<String>
ServingModelManager
that manages and provides access to an
ALSServingModel
for the ALS Serving Layer application.Constructor and Description |
---|
ALSServingModelManager(com.typesafe.config.Config config) |
Modifier and Type | Method and Description |
---|---|
void |
consumeKeyMessage(String key,
String message,
org.apache.hadoop.conf.Configuration hadoopConf)
Convenience method that is called by the default implementation of
AbstractServingModelManager.consume(Iterator, Configuration) , to process one key-message pair. |
ALSServingModel |
getModel() |
consume, getConfig, isReadOnly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public ALSServingModelManager(com.typesafe.config.Config config)
public void consumeKeyMessage(String key, String message, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
AbstractServingModelManager
AbstractServingModelManager.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 AbstractServingModelManager.consume(Iterator, Configuration)
is not.consumeKeyMessage
in class AbstractServingModelManager<String>
key
- key to process (non-null)message
- message to processhadoopConf
- Hadoop configuration for processIOException
- if an error occurs while processing the messagepublic ALSServingModel getModel()
Copyright © 2014–2018. All rights reserved.