{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/33129995","id":33129995,"diff_hunk":"@@ -0,0 +1,78 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.flink.streaming.api.datastream;\n+\n+import org.apache.flink.api.common.typeinfo.TypeInformation;\n+import org.apache.flink.api.java.functions.KeySelector;\n+import org.apache.flink.streaming.api.operators.OneInputStreamOperator;\n+import org.apache.flink.streaming.runtime.partitioner.StreamPartitioner;\n+\n+/**\n+ * A KeyedDataStream represents a {@link DataStream} on which operator state is\n+ * partitioned by key using a provided {@link KeySelector}. Usual DataStream\n+ * operations on KeyedDataStreams as with simple DataStreams with the exception\n+ * of partitioning methods such as shuffle, forward and groupBy.","path":"flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/datastream/KeyedDataStream.java","position":29,"original_position":29,"commit_id":"b923949ae29a4dc6afd79eff509b8c3201bac60a","original_commit_id":"b923949ae29a4dc6afd79eff509b8c3201bac60a","user":{"login":"aljoscha","id":68551,"avatar_url":"https://avatars.githubusercontent.com/u/68551?v=3","gravatar_id":"","url":"https://api.github.com/users/aljoscha","html_url":"https://github.com/aljoscha","followers_url":"https://api.github.com/users/aljoscha/followers","following_url":"https://api.github.com/users/aljoscha/following{/other_user}","gists_url":"https://api.github.com/users/aljoscha/gists{/gist_id}","starred_url":"https://api.github.com/users/aljoscha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aljoscha/subscriptions","organizations_url":"https://api.github.com/users/aljoscha/orgs","repos_url":"https://api.github.com/users/aljoscha/repos","events_url":"https://api.github.com/users/aljoscha/events{/privacy}","received_events_url":"https://api.github.com/users/aljoscha/received_events","type":"User","site_admin":false},"body":"I don't get what this explanation is trying to say.","created_at":"2015-06-24T09:11:39Z","updated_at":"2015-06-24T09:11:39Z","html_url":"https://github.com/apache/flink/pull/747#discussion_r33129995","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/747","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/33129995"},"html":{"href":"https://github.com/apache/flink/pull/747#discussion_r33129995"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/747"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/747","id":36493445,"html_url":"https://github.com/apache/flink/pull/747","diff_url":"https://github.com/apache/flink/pull/747.diff","patch_url":"https://github.com/apache/flink/pull/747.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/747","number":747,"state":"open","locked":false,"title":"New operator state interfaces","user":{"login":"gyfora","id":5880972,"avatar_url":"https://avatars.githubusercontent.com/u/5880972?v=3","gravatar_id":"","url":"https://api.github.com/users/gyfora","html_url":"https://github.com/gyfora","followers_url":"https://api.github.com/users/gyfora/followers","following_url":"https://api.github.com/users/gyfora/following{/other_user}","gists_url":"https://api.github.com/users/gyfora/gists{/gist_id}","starred_url":"https://api.github.com/users/gyfora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyfora/subscriptions","organizations_url":"https://api.github.com/users/gyfora/orgs","repos_url":"https://api.github.com/users/gyfora/repos","events_url":"https://api.github.com/users/gyfora/events{/privacy}","received_events_url":"https://api.github.com/users/gyfora/received_events","type":"User","site_admin":false},"body":"This PR contains the proposed changes for the streaming operator state interfaces as described in\r\n\r\nhttps://docs.google.com/document/d/1nTn4Tpafsnt-TCT6L1vlHtGGgRevU90yRsUQEmkRMjk/edit?usp=sharing\r\n\r\nHighlights:\r\n- Added OperatorState interface accessible from RuntimeContext\r\n- System managed checkpointing/restore of the states (no required implementations for Serializable states)\r\n- confirmCheckpoint(..) method in the CheckpointCommitter interface has been changed to return the StateHandle for the checkpointed state\r\n- Updated Persistent Kafka source to work on the new interfaces\r\n- Updated Tests and IT cases\r\n","created_at":"2015-05-29T10:42:10Z","updated_at":"2015-06-24T09:11:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"580e9895cc6ee14894f4d6c342876667af8c69d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/747/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/747/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/747/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/b923949ae29a4dc6afd79eff509b8c3201bac60a","head":{"label":"gyfora:new_state","ref":"new_state","sha":"b923949ae29a4dc6afd79eff509b8c3201bac60a","user":{"login":"gyfora","id":5880972,"avatar_url":"https://avatars.githubusercontent.com/u/5880972?v=3","gravatar_id":"","url":"https://api.github.com/users/gyfora","html_url":"https://github.com/gyfora","followers_url":"https://api.github.com/users/gyfora/followers","following_url":"https://api.github.com/users/gyfora/following{/other_user}","gists_url":"https://api.github.com/users/gyfora/gists{/gist_id}","starred_url":"https://api.github.com/users/gyfora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyfora/subscriptions","organizations_url":"https://api.github.com/users/gyfora/orgs","repos_url":"https://api.github.com/users/gyfora/repos","events_url":"https://api.github.com/users/gyfora/events{/privacy}","received_events_url":"https://api.github.com/users/gyfora/received_events","type":"User","site_admin":false},"repo":{"id":35147510,"name":"flink","full_name":"gyfora/flink","owner":{"login":"gyfora","id":5880972,"avatar_url":"https://avatars.githubusercontent.com/u/5880972?v=3","gravatar_id":"","url":"https://api.github.com/users/gyfora","html_url":"https://github.com/gyfora","followers_url":"https://api.github.com/users/gyfora/followers","following_url":"https://api.github.com/users/gyfora/following{/other_user}","gists_url":"https://api.github.com/users/gyfora/gists{/gist_id}","starred_url":"https://api.github.com/users/gyfora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyfora/subscriptions","organizations_url":"https://api.github.com/users/gyfora/orgs","repos_url":"https://api.github.com/users/gyfora/repos","events_url":"https://api.github.com/users/gyfora/events{/privacy}","received_events_url":"https://api.github.com/users/gyfora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gyfora/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/gyfora/flink","forks_url":"https://api.github.com/repos/gyfora/flink/forks","keys_url":"https://api.github.com/repos/gyfora/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gyfora/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gyfora/flink/teams","hooks_url":"https://api.github.com/repos/gyfora/flink/hooks","issue_events_url":"https://api.github.com/repos/gyfora/flink/issues/events{/number}","events_url":"https://api.github.com/repos/gyfora/flink/events","assignees_url":"https://api.github.com/repos/gyfora/flink/assignees{/user}","branches_url":"https://api.github.com/repos/gyfora/flink/branches{/branch}","tags_url":"https://api.github.com/repos/gyfora/flink/tags","blobs_url":"https://api.github.com/repos/gyfora/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gyfora/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gyfora/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/gyfora/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gyfora/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/gyfora/flink/languages","stargazers_url":"https://api.github.com/repos/gyfora/flink/stargazers","contributors_url":"https://api.github.com/repos/gyfora/flink/contributors","subscribers_url":"https://api.github.com/repos/gyfora/flink/subscribers","subscription_url":"https://api.github.com/repos/gyfora/flink/subscription","commits_url":"https://api.github.com/repos/gyfora/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/gyfora/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/gyfora/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/gyfora/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/gyfora/flink/contents/{+path}","compare_url":"https://api.github.com/repos/gyfora/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gyfora/flink/merges","archive_url":"https://api.github.com/repos/gyfora/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gyfora/flink/downloads","issues_url":"https://api.github.com/repos/gyfora/flink/issues{/number}","pulls_url":"https://api.github.com/repos/gyfora/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/gyfora/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/gyfora/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gyfora/flink/labels{/name}","releases_url":"https://api.github.com/repos/gyfora/flink/releases{/id}","created_at":"2015-05-06T08:21:14Z","updated_at":"2015-05-06T08:21:25Z","pushed_at":"2015-06-24T08:10:31Z","git_url":"git://github.com/gyfora/flink.git","ssh_url":"git@github.com:gyfora/flink.git","clone_url":"https://github.com/gyfora/flink.git","svn_url":"https://github.com/gyfora/flink","homepage":null,"size":50956,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"636a129722154e4ac141e353ebdffdc65e836073","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"name":"flink","full_name":"apache/flink","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","created_at":"2014-06-07T07:00:10Z","updated_at":"2015-06-24T06:13:16Z","pushed_at":"2015-06-24T08:10:32Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":2648238,"stargazers_count":469,"watchers_count":469,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":311,"mirror_url":"git://git.apache.org/incubator-flink.git","open_issues_count":60,"forks":311,"open_issues":60,"watchers":469,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/747"},"html":{"href":"https://github.com/apache/flink/pull/747"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/747"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/747/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/747/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/747/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/b923949ae29a4dc6afd79eff509b8c3201bac60a"}}}}