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

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

Github user szape commented on a diff in the pull request:

    https://github.com/apache/flink/pull/521#discussion_r27010053
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-examples/src/main/java/org/apache/flink/streaming/examples/ReadFileExample.java
 ---
    @@ -0,0 +1,37 @@
    +package org.apache.flink.streaming.examples;
    +
    +import org.apache.flink.api.java.io.CsvInputFormat;
    +import org.apache.flink.api.java.io.TextInputFormat;
    +import org.apache.flink.api.java.record.io.FileInputFormat;
    +import org.apache.flink.api.java.record.io.FixedLengthInputFormat;
    +import org.apache.flink.api.java.tuple.Tuple1;
    +import org.apache.flink.api.java.tuple.Tuple2;
    +import org.apache.flink.api.java.typeutils.TypeExtractor;
    +import org.apache.flink.core.fs.Path;
    +import 
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
    +import 
org.apache.flink.streaming.api.function.source.FileMonitoringFunction;
    +import org.apache.flink.util.NumberSequenceIterator;
    +
    +import java.util.ArrayList;
    +import java.util.Collection;
    +
    +public class ReadFileExample {
    +
    +   private static String textPath = "/home/szape/result.txt";
    --- End diff --
    
    Of course. This example is meant to be replaced by a proper test.


> Streaming file source/sink API is not in sync with the batch API
> ----------------------------------------------------------------
>
>                 Key: FLINK-1687
>                 URL: https://issues.apache.org/jira/browse/FLINK-1687
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming
>            Reporter: Gábor Hermann
>            Assignee: Péter Szabó
>
> Streaming environment is missing file inputs like readFile, readCsvFile and 
> also the more general createInput function, and outputs like writeAsCsv and 
> write. Streaming and batch API should be consistent.



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

Reply via email to