Hi Vinh, have a look at the first function: http://flink.apache.org/docs/0.8/dataset_transformations.html#first-n
Stefan On 5 February 2015 at 15:14, Vinh June <hoangthevinh....@gmail.com> wrote: > Hi, > > Is there any way to get 1 element of a DataSet, for example: > ---------------------------------------- > val stringSet: DataSet[String] = ... > val str: String = stringSet.getFunction() > str > ---------------------------------------- > > > > -- > View this message in context: > http://apache-flink-incubator-user-mailing-list-archive.2336050.n4.nabble.com/Get-1-element-of-DataSet-tp688.html > Sent from the Apache Flink (Incubator) User Mailing List archive. mailing > list archive at Nabble.com. >