This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 9768be26644 Docs sync done from apache/pulsar(#fe19639)
9768be26644 is described below
commit 9768be266449352061983b8fe971ffdb7b5580d4
Author: Pulsar Site Updater <[email protected]>
AuthorDate: Tue Nov 1 12:02:01 2022 +0000
Docs sync done from apache/pulsar(#fe19639)
---
site2/website-next/docs/functions-overview.md | 6 +++---
site2/website-next/docs/functions-package-python.md | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/site2/website-next/docs/functions-overview.md
b/site2/website-next/docs/functions-overview.md
index e017695ddb9..c01a8230855 100644
--- a/site2/website-next/docs/functions-overview.md
+++ b/site2/website-next/docs/functions-overview.md
@@ -26,9 +26,9 @@ Each time a function receives a message, it completes the
following consume-appl
1. Consumes the message from one or more **input topics**.
2. Applies the customized (user-supplied) processing logic to the message.
3. Publishes the output of the message, including:
- a) writes output messages to an **output topic** in Pulsar
- b) writes logs to a **log topic** (if it is configured)for debugging
- c) writes [state](functions-develop-state.md) updates to BookKeeper (if it
is configured)
+ 1. writes output messages to an **output topic** in Pulsar
+ 2. writes logs to a **log topic** (if it is configured)for debugging
+ 3. writes [state](functions-develop-state.md) updates to BookKeeper (if it
is configured)
You can write functions in Java, Python, and Go. For example, you can use
Pulsar Functions to set up the following processing chain:
* A Python function listens for the `raw-sentences` topic and "sanitizes"
incoming strings (removing extraneous white space and converting all characters
to lowercase) and then publishes the results to a `sanitized-sentences` topic.
diff --git a/site2/website-next/docs/functions-package-python.md
b/site2/website-next/docs/functions-package-python.md
index 6caf88e5730..80f09362940 100644
--- a/site2/website-next/docs/functions-package-python.md
+++ b/site2/website-next/docs/functions-package-python.md
@@ -16,7 +16,7 @@ To package a Python function into **one Python file**,
complete the following st
1. Write a Python function.
```python
- from pulsar import Function // import the Function module from Pulsar
+ from pulsar import Function # import the Function module from Pulsar
# The classic ExclamationFunction that appends an exclamation at the end
# of the input
@@ -151,7 +151,7 @@ To package a Python function with **PIP**, complete the
following steps.
pass
def process(self, input, context):
- // add your logic
+ # add your logic
return input + '!'
```