You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: site2/docs/client-libraries-cpp.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ If you get an error like "libpulsar.so: cannot open shared object file: No such
108
108
109
109
### Source
110
110
111
-
For how to build Pulsar C++ client on different platforms from source code, see [compliation](https://github.com/apache/pulsar/tree/master/pulsar-client-cpp#compilation).
111
+
For how to build Pulsar C++ client on different platforms from source code, see [compliation](https://github.com/apache/pulsar-client-cpp#compilation).
| Go client |[User doc](client-libraries-go.md)|[Standalone](https://github.com/apache/pulsar-client-go/releases)|[Standalone](https://github.com/apache/pulsar-client-go)|
| Go client |[User doc](client-libraries-go.md)|[Standalone](https://github.com/apache/pulsar-client-go/releases)|[Standalone](https://github.com/apache/pulsar-client-go)|
Copy file name to clipboardexpand all lines: site2/docs/functions-develop-serde.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ SerDe works in the following ways for Java functions.
24
24
- If the input or output topics do not exist, Pulsar Functions adopt the following rules to determine SerDe:
25
25
- If the schema type is specified, Pulsar Functions use the specified schema type.
26
26
- If SerDe is specified, Pulsar Functions use the specified SerDe, and the schema type for input and output topics is `byte`.
27
-
- If neither the schema type nor SerDe is specified, Pulsar Functions use the built-in SerDe. For non-primitive schema types, the built-in SerDe serializes and deserializes objects in the `JSON` format.
27
+
- If neither the schema type nor SerDe is specified, Pulsar Functions use the built-in SerDe. For non-primitive schema types, the built-in SerDe serializes and deserializes objects in the `JSON` format.
28
28
29
29
For example, imagine that you're writing a function that processes tweet objects. You can refer to the following example of the `Tweet` class in Java.
30
30
@@ -87,7 +87,7 @@ Custom SerDe classes must be packaged with your function JARs.
87
87
88
88
In Python, the default SerDe is an identity, meaning that the type is serialized as whatever type the function returns.
89
89
90
-
For example, you can specify the SerDe as follows when deploying a function in [cluster mode](functions-deploy-cluster.md).
90
+
For example, you can specify the SerDe as follows when deploying a function in [cluster mode](functions-deploy-cluster.md).
This case contains two input topics: `input-topic-1` and `input-topic-2`, each of which is mapped to a different SerDe class (the mapping must be specified as a JSON string). The output topic `output-topic-1` uses the `Serde3` class for SerDe.
104
+
This case contains two input topics: `input-topic-1` and `input-topic-2`, each of which is mapped to a different SerDe class (the mapping must be specified as a JSON string). The output topic `output-topic-1` uses the `Serde3` class for SerDe.
105
105
106
106
:::note
107
107
@@ -111,11 +111,11 @@ All function-related logic, including processing and SerDe classes, must be cont
111
111
112
112
The table outlines three SerDe options for Python functions.
113
113
114
-
| SerDe option | Description | Use case|
115
-
| ------------|-----------|-----------|
116
-
|`IdentitySerde` (default) | Use the [`IdentitySerde`](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/python/pulsar/functions/serde.py#L70), which leaves the data unchanged. Creating or running a function without explicitly specifying SerDe means that this option is used. | When you work with simple types like strings, booleans, integers.|
117
-
|`PickleSerDe`| Use the [`PickleSerDe`](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/python/pulsar/functions/serde.py#L62), which uses Python [`pickle`](https://docs.python.org/3/library/pickle.html) for SerDe. | When you work with complex, application-specific types and are comfortable with the "best-effort" approach of `pickle`.|
118
-
|`Custom SerDe`| Create a custom SerDe class by implementing the baseline [`SerDe`](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/python/pulsar/functions/serde.py#L50) class, which has just two methods:<br />*[`serialize`](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/python/pulsar/functions/serde.py#L53) for converting the object into bytes.<br />*[`deserialize`](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/python/pulsar/functions/serde.py#L58) for converting bytes into an object of the required application-specific type. | When you require explicit control over SerDe, potentially for performance or data compatibility purposes.|
114
+
| SerDe option | Description | Use case|
115
+
| ------------|-----------|-----------|
116
+
|`IdentitySerde` (default) | Use the `IdentitySerde`, which leaves the data unchanged. Creating or running a function without explicitly specifying SerDe means that this option is used. | When you work with simple types like strings, booleans, integers.|
117
+
|`PickleSerDe`| Use the `PickleSerDe`, which uses Python [`pickle`](https://docs.python.org/3/library/pickle.html) for SerDe. | When you work with complex, application-specific types and are comfortable with the "best-effort" approach of `pickle`.|
118
+
|`Custom SerDe`| Create a custom SerDe class by implementing the baseline `SerDe` class, which has just two methods:<br />*`serialize` for converting the object into bytes.<br />*`deserialize` for converting bytes into an object of the required application-specific type. | When you require explicit control over SerDe, potentially for performance or data compatibility purposes.|
119
119
120
120
For example, imagine that you are writing a function that processes tweet objects. You can refer to the following example of the `Tweet` class in Python.
>**NOTE**: You can move the latest version under the old version in the `versions.json` file. Make sure the Algolia index works before moving 2.X.0 as the current stable.
@@ -496,7 +496,7 @@ After you run this command, a new folder `version-<release-version>` is added in
496
496
497
497
After your PR is approved and merged to master, the website is published automatically after the new website is built. The website is built every 6 hours.
498
498
499
-
6. Check the new website after the website is built.
499
+
6. Check the new website after the website is built.
500
500
Open https://pulsar.apache.org in your browsers to verify all the changes are alive. If the website build succeeds but the website is not updated, you can try to sync the git repository. Navigate to https://selfserve.apache.org/ and click the "Synchronize Git Repositories" and thenselectapache/pulsar.
501
501
502
502
7. Publish the release on GitHub, and copy the same release notes: https://github.com/apache/pulsar/releases.
0 commit comments