fromParallelCollection

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

fromParallelCollection

rimin515
Hi,
val env = StreamExecutionEnvironment.getExecutionEnvironment    
      val tr = env.fromParallelCollection(data)

the data i do not know initialize,some one can tell me..
--------------------------------



Reply | Threaded
Open this post in threaded view
|

Re: fromParallelCollection

Maximilian Michels
Please give us a bit more insight on what you're trying to do.

On Sat, Sep 3, 2016 at 5:01 AM,  <[hidden email]> wrote:
> Hi,
> val env = StreamExecutionEnvironment.getExecutionEnvironment
>       val tr = env.fromParallelCollection(data)
>
> the data i do not know initialize,some one can tell me..
> --------------------------------
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: fromParallelCollection

Ranjit
In reply to this post by rimin515
ArrayList<String> list = new ArrayList<String>();
list.add("Apache");
list.add("Flink");
       
DataStreamSource<String> stream = env.fromCollection(list);

This works for me!