{"action":"created","issue":{"url":"https://api.github.com/repos/apache/flink/issues/308","labels_url":"https://api.github.com/repos/apache/flink/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/apache/flink/issues/308/comments","events_url":"https://api.github.com/repos/apache/flink/issues/308/events","html_url":"https://github.com/apache/flink/pull/308","id":54338122,"number":308,"title":"[FLINK-1398] Introduce extractSingleField() in DataSet","user":{"login":"FelixNeutatz","id":5217389,"avatar_url":"https://avatars.githubusercontent.com/u/5217389?v=3","gravatar_id":"","url":"https://api.github.com/users/FelixNeutatz","html_url":"https://github.com/FelixNeutatz","followers_url":"https://api.github.com/users/FelixNeutatz/followers","following_url":"https://api.github.com/users/FelixNeutatz/following{/other_user}","gists_url":"https://api.github.com/users/FelixNeutatz/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixNeutatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixNeutatz/subscriptions","organizations_url":"https://api.github.com/users/FelixNeutatz/orgs","repos_url":"https://api.github.com/users/FelixNeutatz/repos","events_url":"https://api.github.com/users/FelixNeutatz/events{/privacy}","received_events_url":"https://api.github.com/users/FelixNeutatz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-14T15:54:27Z","updated_at":"2015-04-21T19:55:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/308","html_url":"https://github.com/apache/flink/pull/308","diff_url":"https://github.com/apache/flink/pull/308.diff","patch_url":"https://github.com/apache/flink/pull/308.patch"},"body":"This is a prototype how we could implement extractSingleField() for DataSet. Let's discuss :)\r\n\r\nYou would apply the function like this:\r\n\r\nDataSet<?> dataT = env.fromElements(new Tuple2<Integer, Double>(1, 2.0));\r\n\r\ndataT.extractSingleField(1, Double.class).print(); //prints 2.0"},"comment":{"url":"https://api.github.com/repos/apache/flink/issues/comments/94918887","html_url":"https://github.com/apache/flink/pull/308#issuecomment-94918887","issue_url":"https://api.github.com/repos/apache/flink/issues/308","id":94918887,"user":{"login":"StephanEwen","id":1727146,"avatar_url":"https://avatars.githubusercontent.com/u/1727146?v=3","gravatar_id":"","url":"https://api.github.com/users/StephanEwen","html_url":"https://github.com/StephanEwen","followers_url":"https://api.github.com/users/StephanEwen/followers","following_url":"https://api.github.com/users/StephanEwen/following{/other_user}","gists_url":"https://api.github.com/users/StephanEwen/gists{/gist_id}","starred_url":"https://api.github.com/users/StephanEwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephanEwen/subscriptions","organizations_url":"https://api.github.com/users/StephanEwen/orgs","repos_url":"https://api.github.com/users/StephanEwen/repos","events_url":"https://api.github.com/users/StephanEwen/events{/privacy}","received_events_url":"https://api.github.com/users/StephanEwen/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T19:55:39Z","updated_at":"2015-04-21T19:55:39Z","body":"I think this is good in general, modulo two issues:\r\n  - There are going to be more Utils, to I would like to give it a more speaking name, like \"TupleUtils\", or \"TupleExtractors\", or something along these lines.\r\n  - I think we can omit the return type class. Similar as with the projections, this should not be needed."}}