flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bunk <stefan.b...@googlemail.com>
Subject Re: Get 1 element of DataSet
Date Thu, 05 Feb 2015 14:27:16 GMT
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.htv@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.
>

Mime
View raw message