{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/86517044","pull_request_review_id":7172230,"id":86517044,"diff_hunk":"@@ -0,0 +1,256 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with 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.operators.async;\n+\n+import org.apache.flink.annotation.Internal;\n+import org.apache.flink.api.common.typeutils.TypeSerializer;\n+import org.apache.flink.core.fs.FSDataInputStream;\n+import org.apache.flink.core.fs.FSDataOutputStream;\n+import org.apache.flink.core.memory.DataInputViewStreamWrapper;\n+import org.apache.flink.runtime.util.DataOutputSerializer;\n+import org.apache.flink.streaming.api.datastream.AsyncDataStream;\n+import org.apache.flink.streaming.api.functions.async.AsyncFunction;\n+import org.apache.flink.streaming.api.graph.StreamConfig;\n+import org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator;\n+import org.apache.flink.streaming.api.operators.ChainingStrategy;\n+import org.apache.flink.streaming.api.operators.OneInputStreamOperator;\n+import org.apache.flink.streaming.api.operators.Output;\n+import org.apache.flink.streaming.api.operators.TimestampedCollector;\n+import org.apache.flink.streaming.api.watermark.Watermark;\n+import org.apache.flink.streaming.runtime.streamrecord.LatencyMarker;\n+import org.apache.flink.streaming.runtime.streamrecord.StreamElement;\n+import org.apache.flink.streaming.runtime.streamrecord.StreamRecord;\n+import org.apache.flink.streaming.runtime.tasks.StreamTask;\n+import org.apache.flink.util.Preconditions;\n+\n+import java.io.IOException;\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+@Internal\n+public class AsyncWaitOperator<IN, OUT>\n+\textends AbstractUdfStreamOperator<OUT, AsyncFunction<IN, OUT>>\n+\timplements OneInputStreamOperator<IN, OUT>\n+{\n+\tprivate final int DEFAULT_BUFFER_SIZE = 1000;\n+\n+\tprivate static final long serialVersionUID = 1L;\n+\n+\t/**\n+\t * {@link TypeSerializer} for inputs while making snapshots.\n+\t */\n+\tprivate transient TypeSerializer<IN> inTypeSerializer;\n+\tprivate transient DataOutputSerializer outputSerializer;\n+\n+\t/**\n+\t * input stream elements from the state\n+\t */\n+\tprivate transient List<StreamElement> inputsFromState;\n+\n+\tprivate transient TimestampedCollector<OUT> collector;\n+\n+\tprivate transient AsyncCollectorBuffer<IN, OUT> buffer;\n+\n+\tprivate int bufferSize = DEFAULT_BUFFER_SIZE;\n+\tprivate AsyncDataStream.OutputMode mode;\n+\n+\tpublic AsyncWaitOperator(AsyncFunction<IN, OUT> asyncFunction) {\n+\t\tsuper(asyncFunction);\n+\t\tchainingStrategy = ChainingStrategy.ALWAYS;\n+\t}\n+\n+\tpublic void setBufferSize(int size) {\n+\t\tPreconditions.checkArgument(size > 0, \"The number of concurrent async operation should be greater than 0.\");\n+\t\tbufferSize = size;\n+\t}\n+\n+\tpublic void setMode(AsyncDataStream.OutputMode mode) {\n+\t\tthis.mode = mode;\n+\t}\n+\n+\tpublic void init() {\n+\t\tthis.buffer = new AsyncCollectorBuffer<>(bufferSize, mode, this);\n+\t\tthis.collector = new TimestampedCollector<>(output);\n+\t\tthis.buffer.setOutput(collector, output);\n+\n+\t\tthis.outputSerializer = new DataOutputSerializer(128);\n+\t}\n+\n+\t@Override\n+\tpublic void setup(StreamTask<?, ?> containingTask, StreamConfig config, Output<StreamRecord<OUT>> output) {\n+\t\tsuper.setup(containingTask, config, output);\n+\n+\t\tthis.inTypeSerializer = this.getOperatorConfig().getTypeSerializerIn1(getUserCodeClassloader());\n+\n+\t\tinit();\n+\t}\n+\n+\t@Override\n+\tpublic void open() throws Exception {\n+\t\tsuper.open();\n+\n+\t\t// process stream elements from state\n+\t\tif (this.inputsFromState != null) {\n+\t\t\tfor (StreamElement element : this.inputsFromState) {\n+\t\t\t\tif (element.isRecord()) {\n+\t\t\t\t\tprocessElement(element.<IN>asRecord());\n+\t\t\t\t} else {\n+\t\t\t\t\tprocessWatermark(element.asWatermark());\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tthis.inputsFromState = null;\n+\t\t}\n+\n+\t\tbuffer.startEmitterThread();\n+\t}\n+\n+\t@Override\n+\tpublic void processElement(StreamRecord<IN> element) throws Exception {\n+\t\tAsyncCollector<IN, OUT> collector = buffer.add(element);\n+\t\tuserFunction.asyncInvoke(element.getValue(), collector);\n+\t}\n+\n+\t@Override\n+\tpublic void processWatermark(Watermark mark) throws Exception {\n+\t\tbuffer.add(mark);\n+\t}\n+\n+\t@Override\n+\tpublic void processLatencyMarker(LatencyMarker latencyMarker) throws Exception {\n+\t\tbuffer.add(latencyMarker);\n+\t}\n+\n+\t@Override\n+\tpublic void snapshotState(FSDataOutputStream out, long checkpointId, long timestamp) throws Exception {\n+\t\tList<StreamElement> elements = buffer.getStreamElementsInBuffer();\n+\n+\t\tserializeStreamElements(elements, out);\n+\t}\n+\n+\t@Override\n+\tpublic void restoreState(FSDataInputStream in) throws Exception {\n+\t\tthis.inputsFromState = deserializeStreamElements(in);\n+\t}\n+\n+\t@Override\n+\tpublic void close() throws Exception {\n+\t\tsuper.close();\n+\n+\t\tbuffer.waitEmpty();\n+\t\tbuffer.stopEmitterThread();\n+\t}\n+\n+\t@Override\n+\tpublic void dispose() throws Exception {\n+\t\tsuper.dispose();\n+\n+\t\tbuffer.stopEmitterThread();\n+\t}\n+\n+\tpublic void sendLatencyMarker(LatencyMarker marker) throws Exception {\n+\t\tsuper.processLatencyMarker(marker);\n+\t}\n+\n+\tprivate void serializeStreamElements(List<StreamElement> input,\n+\t\t\t\t\t\t\t\t\t\tFSDataOutputStream stream) throws IOException {\n+\t\tstream.write(input.size());\n+\n+\t\tfor (StreamElement element : input) {\n+\t\t\tif (element.isRecord()) {\n+\t\t\t\tstream.write(1);\n+\n+\t\t\t\tStreamRecord<IN> record = element.asRecord();\n+\n+\t\t\t\toutputSerializer.clear();\n+\t\t\t\tinTypeSerializer.serialize(record.getValue(), outputSerializer);\n+\t\t\t\toutputSerializer.writeLong(record.getTimestamp());\n+\t\t\t\toutputSerializer.writeBoolean(record.hasTimestamp());\n+\n+\t\t\t\tstream.write(outputSerializer.getCopyOfBuffer());\n+\t\t\t}\n+\t\t\telse if (element.isWatermark()) {\n+\t\t\t\tstream.write(0);\n+\n+\t\t\t\tWatermark watermark = element.asWatermark();\n+\n+\t\t\t\toutputSerializer.clear();\n+\t\t\t\toutputSerializer.writeLong(watermark.getTimestamp());\n+\n+\t\t\t\tstream.write(outputSerializer.getCopyOfBuffer());\n+\t\t\t}\n+\t\t\telse if (element.isLatencyMarker()) {\n+\t\t\t\tstream.write(2);\n+\n+\t\t\t\tLatencyMarker marker = element.asLatencyMarker();\n+\n+\t\t\t\toutputSerializer.clear();\n+\t\t\t\toutputSerializer.writeLong(marker.getMarkedTime());\n+\t\t\t\toutputSerializer.writeInt(marker.getVertexID());\n+\t\t\t\toutputSerializer.writeInt(marker.getSubtaskIndex());\n+\n+\t\t\t\tstream.write(outputSerializer.getCopyOfBuffer());\n+\t\t\t}\n+\t\t\telse {\n+\t\t\t\tthrow new IOException(\"Unknown element type: \"+element);\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\tprivate List<StreamElement> deserializeStreamElements(FSDataInputStream stream) throws IOException {\n+\t\tDataInputViewStreamWrapper wrapper = new DataInputViewStreamWrapper(stream);\n+\n+\t\tint size = wrapper.read();\n+\n+\t\tList<StreamElement> ret = new ArrayList<>(size);\n+\t\tfor (int i = 0; i < size; ++i) {\n+\t\t\tint flag = wrapper.read();\n+\n+\t\t\tif (flag == 1) {","path":"flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java","position":224,"original_position":224,"commit_id":"f53c4f37bc094b60ba039a91a3ad106e55e61644","original_commit_id":"f53c4f37bc094b60ba039a91a3ad106e55e61644","user":{"login":"bjlovegithub","id":243084,"avatar_url":"https://avatars.githubusercontent.com/u/243084?v=3","gravatar_id":"","url":"https://api.github.com/users/bjlovegithub","html_url":"https://github.com/bjlovegithub","followers_url":"https://api.github.com/users/bjlovegithub/followers","following_url":"https://api.github.com/users/bjlovegithub/following{/other_user}","gists_url":"https://api.github.com/users/bjlovegithub/gists{/gist_id}","starred_url":"https://api.github.com/users/bjlovegithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjlovegithub/subscriptions","organizations_url":"https://api.github.com/users/bjlovegithub/orgs","repos_url":"https://api.github.com/users/bjlovegithub/repos","events_url":"https://api.github.com/users/bjlovegithub/events{/privacy}","received_events_url":"https://api.github.com/users/bjlovegithub/received_events","type":"User","site_admin":false},"body":"Reply to the serialize and deserialize part. StreamElementSerializer is so cool :-)","created_at":"2016-11-04T10:11:27Z","updated_at":"2016-11-04T10:11:27Z","html_url":"https://github.com/apache/flink/pull/2629#discussion_r86517044","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/2629","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/86517044"},"html":{"href":"https://github.com/apache/flink/pull/2629#discussion_r86517044"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/2629"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/2629","id":89178102,"html_url":"https://github.com/apache/flink/pull/2629","diff_url":"https://github.com/apache/flink/pull/2629.diff","patch_url":"https://github.com/apache/flink/pull/2629.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/2629","number":2629,"state":"open","locked":false,"title":"[FLINK-4391] Provide support for asynchronous operations over streams","user":{"login":"bjlovegithub","id":243084,"avatar_url":"https://avatars.githubusercontent.com/u/243084?v=3","gravatar_id":"","url":"https://api.github.com/users/bjlovegithub","html_url":"https://github.com/bjlovegithub","followers_url":"https://api.github.com/users/bjlovegithub/followers","following_url":"https://api.github.com/users/bjlovegithub/following{/other_user}","gists_url":"https://api.github.com/users/bjlovegithub/gists{/gist_id}","starred_url":"https://api.github.com/users/bjlovegithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjlovegithub/subscriptions","organizations_url":"https://api.github.com/users/bjlovegithub/orgs","repos_url":"https://api.github.com/users/bjlovegithub/repos","events_url":"https://api.github.com/users/bjlovegithub/events{/privacy}","received_events_url":"https://api.github.com/users/bjlovegithub/received_events","type":"User","site_admin":false},"body":"PR for [FLIP 12](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=65870673) - Implementation for Async I/O in FLINK.\n\nBasically, the newly added operator supports async operation while streaming. By implementing AsyncFunction, we can easily do i/o access, like fetching data from HBase, in async way.\n\nPlease refer to AsyncIOExample.java about how to use it.\n","created_at":"2016-10-13T10:48:57Z","updated_at":"2016-11-04T10:11:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af466b85efe92bfa45c42717ce83b3ad9e7a9232","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/2629/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/2629/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/2629/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/f53c4f37bc094b60ba039a91a3ad106e55e61644","head":{"label":"bjlovegithub:master","ref":"master","sha":"f53c4f37bc094b60ba039a91a3ad106e55e61644","user":{"login":"bjlovegithub","id":243084,"avatar_url":"https://avatars.githubusercontent.com/u/243084?v=3","gravatar_id":"","url":"https://api.github.com/users/bjlovegithub","html_url":"https://github.com/bjlovegithub","followers_url":"https://api.github.com/users/bjlovegithub/followers","following_url":"https://api.github.com/users/bjlovegithub/following{/other_user}","gists_url":"https://api.github.com/users/bjlovegithub/gists{/gist_id}","starred_url":"https://api.github.com/users/bjlovegithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjlovegithub/subscriptions","organizations_url":"https://api.github.com/users/bjlovegithub/orgs","repos_url":"https://api.github.com/users/bjlovegithub/repos","events_url":"https://api.github.com/users/bjlovegithub/events{/privacy}","received_events_url":"https://api.github.com/users/bjlovegithub/received_events","type":"User","site_admin":false},"repo":{"id":70549932,"name":"flink","full_name":"bjlovegithub/flink","owner":{"login":"bjlovegithub","id":243084,"avatar_url":"https://avatars.githubusercontent.com/u/243084?v=3","gravatar_id":"","url":"https://api.github.com/users/bjlovegithub","html_url":"https://github.com/bjlovegithub","followers_url":"https://api.github.com/users/bjlovegithub/followers","following_url":"https://api.github.com/users/bjlovegithub/following{/other_user}","gists_url":"https://api.github.com/users/bjlovegithub/gists{/gist_id}","starred_url":"https://api.github.com/users/bjlovegithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjlovegithub/subscriptions","organizations_url":"https://api.github.com/users/bjlovegithub/orgs","repos_url":"https://api.github.com/users/bjlovegithub/repos","events_url":"https://api.github.com/users/bjlovegithub/events{/privacy}","received_events_url":"https://api.github.com/users/bjlovegithub/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjlovegithub/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/bjlovegithub/flink","forks_url":"https://api.github.com/repos/bjlovegithub/flink/forks","keys_url":"https://api.github.com/repos/bjlovegithub/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjlovegithub/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjlovegithub/flink/teams","hooks_url":"https://api.github.com/repos/bjlovegithub/flink/hooks","issue_events_url":"https://api.github.com/repos/bjlovegithub/flink/issues/events{/number}","events_url":"https://api.github.com/repos/bjlovegithub/flink/events","assignees_url":"https://api.github.com/repos/bjlovegithub/flink/assignees{/user}","branches_url":"https://api.github.com/repos/bjlovegithub/flink/branches{/branch}","tags_url":"https://api.github.com/repos/bjlovegithub/flink/tags","blobs_url":"https://api.github.com/repos/bjlovegithub/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjlovegithub/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjlovegithub/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjlovegithub/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjlovegithub/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/bjlovegithub/flink/languages","stargazers_url":"https://api.github.com/repos/bjlovegithub/flink/stargazers","contributors_url":"https://api.github.com/repos/bjlovegithub/flink/contributors","subscribers_url":"https://api.github.com/repos/bjlovegithub/flink/subscribers","subscription_url":"https://api.github.com/repos/bjlovegithub/flink/subscription","commits_url":"https://api.github.com/repos/bjlovegithub/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjlovegithub/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjlovegithub/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjlovegithub/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjlovegithub/flink/contents/{+path}","compare_url":"https://api.github.com/repos/bjlovegithub/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjlovegithub/flink/merges","archive_url":"https://api.github.com/repos/bjlovegithub/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjlovegithub/flink/downloads","issues_url":"https://api.github.com/repos/bjlovegithub/flink/issues{/number}","pulls_url":"https://api.github.com/repos/bjlovegithub/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/bjlovegithub/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/bjlovegithub/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjlovegithub/flink/labels{/name}","releases_url":"https://api.github.com/repos/bjlovegithub/flink/releases{/id}","deployments_url":"https://api.github.com/repos/bjlovegithub/flink/deployments","created_at":"2016-10-11T02:55:09Z","updated_at":"2016-10-11T02:55:32Z","pushed_at":"2016-10-27T08:29:22Z","git_url":"git://github.com/bjlovegithub/flink.git","ssh_url":"git@github.com:bjlovegithub/flink.git","clone_url":"https://github.com/bjlovegithub/flink.git","svn_url":"https://github.com/bjlovegithub/flink","homepage":null,"size":99091,"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":"b5938b052dfd1b4e9450c430446062852bca8850","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}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2016-11-03T19:50:30Z","pushed_at":"2016-11-04T10:04:29Z","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":137602,"stargazers_count":1707,"watchers_count":1707,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1165,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":152,"forks":1165,"open_issues":152,"watchers":1707,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/2629"},"html":{"href":"https://github.com/apache/flink/pull/2629"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/2629"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/2629/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/2629/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/2629/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/f53c4f37bc094b60ba039a91a3ad106e55e61644"}}}}
{"actor":{"display_login":"bjlovegithub"}}