This is an automated email from the ASF dual-hosted git repository.

nkurihar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ebd4f5  Fix the sample code in Metrics for Pulsar Functions document 
(#2270)
5ebd4f5 is described below

commit 5ebd4f5bebe65788a0d5051fb15af81bc3c5555c
Author: Yuta Mochizuki <[email protected]>
AuthorDate: Tue Jul 31 17:51:01 2018 +0900

    Fix the sample code in Metrics for Pulsar Functions document (#2270)
---
 site/docs/latest/functions/metrics.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site/docs/latest/functions/metrics.md 
b/site/docs/latest/functions/metrics.md
index faa8abc..2d0b0f2 100644
--- a/site/docs/latest/functions/metrics.md
+++ b/site/docs/latest/functions/metrics.md
@@ -27,7 +27,7 @@ import org.apache.pulsar.functions.api.Function;
 
 public class MetricRecordingFunction implements Function<String, Void> {
     @Override
-    public void apply(String input, Context context) {
+    public Void process(String input, Context context) {
         context.recordMetric("number-of-characters", input.length());
         return null;
     }

Reply via email to