flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Ewen <se...@apache.org>
Subject Re: DataSource vs DataSet
Date Mon, 17 Aug 2015 09:28:01 GMT
Hi!

They are really the same. The DataSource is the subclass of DataSet which
is used when sou do a source operation (env.readTextFile(...) returns a
DataSource for example).

Greetings,
Stephan


On Mon, Aug 17, 2015 at 11:23 AM, Flavio Pompermaier <pompermaier@okkam.it>
wrote:

> Hi flinkers,
> I have a very simple question for you after the reading of the amazing
> blog page posted by Nezih Yigitbasi at http://t.co/dCDfFf6DhW (that shows
> how to integrate Flink and Avro-Parquet through Kite SDK).
>
> Is there any code style policy about when to use DataSource or when to use
> DataSet as the type of an input source? I usually use DataSet but I could
> use DataSource as well..is there any reason to prefer the first over the
> second?
>
> Best,
> Flavio
>

Mime
View raw message