You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/26 15:39:12 UTC

[jira] [Commented] (FLINK-3979) [documentation]add missed import classes in run_example_quickstart

    [ https://issues.apache.org/jira/browse/FLINK-3979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302267#comment-15302267 ] 

ASF GitHub Bot commented on FLINK-3979:
---------------------------------------

GitHub user jiazhai opened a pull request:

    https://github.com/apache/flink/pull/2038

    [FLINK-3979] documentation - add missed import classes in run_example_quickstart

    The classes that need to be imported  for this part of code
    ```
    result
        .map(new MapFunction<Tuple2<String,Long>, String>() {
            @Override
            public String map(Tuple2<String, Long> tuple) {
                return tuple.toString();
            }
        })
        .addSink(new FlinkKafkaProducer08<>("localhost:9092", "wiki-result", new SimpleStringSchema()));
    ```
    
    is 
    
    ```
    import org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer08;
    import org.apache.flink.streaming.util.serialization.SimpleStringSchema;
    import org.apache.flink.api.common.functions.MapFunction;
    ```


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jiazhai/flink f3979

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2038.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2038
    
----
commit 84de7466757c86e968eb9ddce8ba7865821e9091
Author: Zhai Jia <zh...@gmail.com>
Date:   2016-05-26T15:24:40Z

    [FLINK-3979] add import for code

----


> [documentation]add missed import classes in run_example_quickstart
> ------------------------------------------------------------------
>
>                 Key: FLINK-3979
>                 URL: https://issues.apache.org/jira/browse/FLINK-3979
>             Project: Flink
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Jia Zhai
>
> The classes that need to be imported  for this part of code
> {code}
> result
>     .map(new MapFunction<Tuple2<String,Long>, String>() {
>         @Override
>         public String map(Tuple2<String, Long> tuple) {
>             return tuple.toString();
>         }
>     })
>     .addSink(new FlinkKafkaProducer08<>("localhost:9092", "wiki-result", new SimpleStringSchema()));
> {code}
> is 
> {code}
> import org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer08;
> import org.apache.flink.streaming.util.serialization.SimpleStringSchema;
> import org.apache.flink.api.common.functions.MapFunction;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)