Reputation: 325
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
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