public final class KMeansServingModelManager extends AbstractServingModelManager<String>
ServingModelManager
that manages and provides access to an
KMeansServingModel
for the k-means Serving Layer application.Constructor and Description |
---|
KMeansServingModelManager(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. |
KMeansServingModel |
getModel() |
consume, getConfig, isReadOnly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public KMeansServingModelManager(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 KMeansServingModel getModel()
Copyright © 2014–2018. All rights reserved.