U
- type of update message read/writtenpublic interface ServingModelManager<U> extends Closeable
Modifier and Type | Method and Description |
---|---|
default void |
close() |
void |
consume(Iterator<KeyMessage<String,U>> updateIterator,
org.apache.hadoop.conf.Configuration hadoopConf)
Called by the framework to initiate a continuous process of reading models, and reading
from the input topic and updating model state in memory, and issuing updates to the
update topic.
|
com.typesafe.config.Config |
getConfig() |
ServingModel |
getModel() |
boolean |
isReadOnly() |
void consume(Iterator<KeyMessage<String,U>> updateIterator, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
updateIterator
- iterator to read models fromhadoopConf
- Hadoop context, which may be required for reading from HDFSIOException
- if an error occurs while reading updatescom.typesafe.config.Config getConfig()
ServingModel getModel()
boolean isReadOnly()
default void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2014–2018. All rights reserved.