flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From subash basnet <yasub...@gmail.com>
Subject Getting elements from DataStream
Date Mon, 11 Apr 2016 13:42:37 GMT
Hello all,

Getting certain number of elements from DataSet is possible as below:
*DataSet<Centroid> centroids = newDataSet.map(new
TupleCentroidConverter()).first(3);*

How could I get elements as above in DataStream
*DataStream<Centroid> centroids = newDataStream.map(new
TupleCentroidConverter()).???*


Best Regards,
Subash Basnet

Mime
View raw message