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

    https://github.com/apache/flink/pull/2198#discussion_r69561347
  
    --- Diff: docs/apis/streaming/index.md ---
    @@ -1357,20 +1364,27 @@ Custom:
     
     <br />
     
    -Sources can by created by using 
`StreamExecutionEnvironment.addSource(sourceFunction)`.
    -You can either use one of the source functions that come with Flink or 
write a custom source
    -by implementing the `SourceFunction` for non-parallel sources, or by 
implementing the
    -`ParallelSourceFunction` interface or extending 
`RichParallelSourceFunction` for parallel sources.
    +Sources are where your program reads its input from. You can attach a 
source to your program by 
    +using `StreamExecutionEnvironment.addSource(sourceFunction)`. Flink comes 
with a number of pre-implemented 
    +source functions, but you can always write your own custom sources by 
implementing the `SourceFunction` 
    +for non-parallel sources, or by implementing the `ParallelSourceFunction` 
interface or extending the 
    +`RichParallelSourceFunction` for parallel sources.
     
     There are several predefined stream sources accessible from the 
`StreamExecutionEnvironment`:
     
     File-based:
     
    -- `readTextFile(path)` / `TextInputFormat` - Reads files line wise and 
returns them as Strings.
    --- End diff --
    
    Well the problem is that the java version that I am including here takes 
also the typeInformation which is implicitly provided in the scala version (one 
argument is different). I suggest we keep this version, as it is the most 
general one. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to