You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2022/03/14 14:40:25 UTC

[flink] branch master updated: [FLINK-24274][Documentation] Wrong parameter order in documentation of State Processor API

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

martijnvisser pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 5464618  [FLINK-24274][Documentation] Wrong parameter order in documentation of State Processor API
5464618 is described below

commit 54646188f96ae62d42735c95fe31a3bb3fe5bba7
Author: wangfeifan <zo...@163.com>
AuthorDate: Thu Sep 16 00:23:04 2021 +0800

    [FLINK-24274][Documentation] Wrong parameter order in documentation of State Processor API
---
 docs/content.zh/docs/libs/state_processor_api.md | 2 +-
 docs/content/docs/libs/state_processor_api.md    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/content.zh/docs/libs/state_processor_api.md b/docs/content.zh/docs/libs/state_processor_api.md
index cf7e1b7..42dd32d 100644
--- a/docs/content.zh/docs/libs/state_processor_api.md
+++ b/docs/content.zh/docs/libs/state_processor_api.md
@@ -484,7 +484,7 @@ Besides creating a savepoint from scratch, you can base one off an existing save
 
 ```java
 SavepointWriter
-    .fromExistingSavepoint(env, new HashMapStateBackend(), oldPath)
+    .fromExistingSavepoint(oldPath, new HashMapStateBackend())
     .withOperator("uid", transformation)
     .write(newPath);
 ```
diff --git a/docs/content/docs/libs/state_processor_api.md b/docs/content/docs/libs/state_processor_api.md
index ddeec14..f3be14e 100644
--- a/docs/content/docs/libs/state_processor_api.md
+++ b/docs/content/docs/libs/state_processor_api.md
@@ -483,7 +483,7 @@ Besides creating a savepoint from scratch, you can base one off an existing save
 
 ```java
 SavepointWriter
-    .fromExistingSavepoint(env, new HashMapStateBackend(), oldPath)
+    .fromExistingSavepoint(oldPath, new HashMapStateBackend())
     .withOperator("uid", transformation)
     .write(newPath);
 ```