flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ches...@apache.org
Subject [02/21] flink git commit: [hotfix][docs] update Checkpoint docs with correct code example
Date Sun, 25 Jun 2017 06:44:45 GMT
[hotfix][docs] update Checkpoint docs with correct code example


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/071524ef
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/071524ef
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/071524ef

Branch: refs/heads/master
Commit: 071524ef837fa902343d9ea157376ac96afe91f1
Parents: af0ced9
Author: Nico Kruber <nico@data-artisans.com>
Authored: Wed May 31 10:50:39 2017 +0200
Committer: zentol <chesnay@apache.org>
Committed: Fri Jun 23 14:14:29 2017 +0200

----------------------------------------------------------------------
 .../org/apache/flink/streaming/api/checkpoint/Checkpointed.java    | 2 +-
 .../flink/streaming/api/checkpoint/CheckpointedAsynchronously.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/071524ef/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java
b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java
index 7dedfbf..cb3c7cc 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java
@@ -42,7 +42,7 @@ import java.io.Serializable;
  *     }
  *
  *     public void restoreState(List<Integer> state) throws Exception {
- *         this.value = state.count.isEmpty() ? 0 : state.get(0);
+ *         this.value = state.isEmpty() ? 0 : state.get(0);
  *     }
  *
  *     public T map(T value) {

http://git-wip-us.apache.org/repos/asf/flink/blob/071524ef/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java
b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java
index 2230f59..5138b49 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java
@@ -43,7 +43,7 @@ import java.io.Serializable;
  *     }
  *
  *     public void restoreState(List<Integer> state) throws Exception {
- *         this.value = state.count.isEmpty() ? 0 : state.get(0);
+ *         this.value = state.isEmpty() ? 0 : state.get(0);
  *     }
  *
  *     public T map(T value) {


Mime
View raw message