Class UserMetricFunction
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.UserMetricFunction
-
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<java.lang.String,java.lang.Void>
public class UserMetricFunction extends java.lang.Object implements org.apache.pulsar.functions.api.Function<java.lang.String,java.lang.Void>Example function that wants to keep track of the rate of letters seen in input.
-
-
Constructor Summary
Constructors Constructor Description UserMetricFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Voidprocess(java.lang.String input, org.apache.pulsar.functions.api.Context context)
-