flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Ewen <se...@apache.org>
Subject Re: Getting elements from DataStream
Date Mon, 11 Apr 2016 16:28:27 GMT
Hi!

The equivalent does not yet exist on DataStream.

Stephan


On Mon, Apr 11, 2016 at 3:42 PM, subash basnet <yasubash@gmail.com> wrote:

> 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