flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From subash basnet <yasub...@gmail.com>
Subject Retrieve elements from the Dataset without using collect
Date Sun, 06 Mar 2016 18:10:36 GMT
Hello all,

My requirement is to get suppose top '10' elements from the DataSet as
another DataSet. How would I do that without using collect.
*DataSet<Tuple2<Integer, Double[]>> counts =* *data.flatMap(new

I want a new DataSet containing 10 elements of *counts*.

And, what would be the way to retrieve individual elements of DataSet
without using list via collect?

Best Regards,
Subash Basnet

View raw message