Jennifer88huang commented on a change in pull request #5536: Documentation 
updates, mainly for Python API
URL: https://github.com/apache/pulsar/pull/5536#discussion_r341955367
 
 

 ##########
 File path: site2/docs/functions-develop.md
 ##########
 @@ -702,3 +716,192 @@ To access metrics created by Pulsar Functions, refer to 
[Monitoring](deploy-moni
 Pulsar Functions use [Apache BookKeeper](https://bookkeeper.apache.org) as a 
state storage interface. Pulsar installation, including the local standalone 
installation, includes deployment of BookKeeper bookies.
 
 Since Pulsar 2.1.0 release, Pulsar integrates with Apache BookKeeper [table 
service](https://docs.google.com/document/d/155xAwWv5IdOitHh1NVMEwCMGgB28M3FyMiQSxEpjE-Y/edit#heading=h.56rbh52koe3f)
 to store the `State` for functions. For example, a `WordCount` function can 
store its `counters` state into BookKeeper table service via Pulsar Functions 
State API.
+
+States are key-value pairs, where the key is a string and the value is 
arbitrary binary data - counters are stored as 64-bit big-endian binary values. 
 Keys are scoped to an individual Pulsar function, and shared between instances 
of that function.
+
+You can access states within Pulsar functions using the `putState`, 
`getState`, `incrCounter`, `getCounter` and `deleteState` calls on the context 
object.  You can also manage states using the 
[querystate](pulsar-admin.md#querystate) and 
[putstate](pulsar-admin.md#putstate) options to `pulsar-admin functions`.
+
+### API
+
+<!--DOCUSAURUS_CODE_TABS-->
+<!--Java-->
+Currently Pulsar Functions expose following APIs for mutating and accessing 
State. These APIs are available in the [Context](functions-api.md#context) 
object when
 
 Review comment:
   ```suggestion
   Currently Pulsar Functions expose the following APIs for mutating and 
accessing State. These APIs are available in the 
[Context](functions-develop.md#context) object when you are using Java SDK 
functions.
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to