Dhinesh
Dhinesh

Reputation: 325

How to convert the data stream to data set in flink?

I need to convert the datastream to data set so that I could perform sorting operation on the data set. How to convert the data stream to dataset? Is it possible in flink?

Upvotes: 1

Views: 2719

Answers (1)

Fabian Hueske
Fabian Hueske

Reputation: 18987

It is not possible to convert a DataSet into a DataStream. The APIs for batch and stream processing are separate. You can however, write the DataStream into a file and read the file as a DataSet.

Upvotes: 1

Related Questions