| Constructor and Description |
|---|
DiffCounterStoreMapper() |
| 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
|
String |
toString() |
org.apache.kafka.streams.KeyValue<String,Map<String,Object>> |
window(long timestamp)
This method allow implement window calls
|
close, getAvailableStores, getStore, init, init, punctuate, transformpublic 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()
Functionpublic org.apache.kafka.streams.KeyValue<String,Map<String,Object>> window(long timestamp)
MapperStoreFunctionwindow in class MapperStoreFunctiontimestamp - where the window must be calledCopyright © 2017–2018. All rights reserved.