- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<String,Void>
public class UserMetricFunction
extends Object
implements org.apache.pulsar.functions.api.Function<String,Void>
Example function that wants to keep track of the rate of letters
seen in input.
-
Constructor Summary
Constructors
-
Method Summary
process(String input,
org.apache.pulsar.functions.api.Context context)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.functions.api.Function
close, initialize
-
Constructor Details
-
UserMetricFunction
public UserMetricFunction()
-
Method Details
-
process
public Void process(String input,
org.apache.pulsar.functions.api.Context context)
- Specified by:
process in interface org.apache.pulsar.functions.api.Function<String,Void>