| Constructor and Description |
|---|
ClassificationMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(Map<String,Object> properties,
io.wizzie.metrics.MetricsManager metricsManager)
Initialize function, this method is implemented by the users to for example:
initiate variables, load config, open DB connections.
|
org.apache.kafka.streams.KeyValue<String,Map<String,Object>> |
process(String key,
Map<String,Object> value)
Main logic of function
|
void |
stop()
Stop function, this method is implemented by the users to for example: close DB connection
|
apply, initpublic void prepare(Map<String,Object> properties, io.wizzie.metrics.MetricsManager metricsManager)
Functionproperties - Properties for functionmetricsManager - MetricsManager object for functionpublic org.apache.kafka.streams.KeyValue<String,Map<String,Object>> process(String key, Map<String,Object> value)
Functionkey - The key of Kafka messagevalue - The value of Kafka messagepublic void stop()
FunctionCopyright © 2017–2018. All rights reserved.