spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynold Xin <r...@databricks.com>
Subject Re: Question on Spark code
Date Mon, 24 Jul 2017 03:19:39 GMT
It means the same object ("this") is returned.

On Sun, Jul 23, 2017 at 8:16 PM, tao zhan <zhantao92@gmail.com> wrote:

> Hello,
>
> I am new to scala and spark.
> What does the "this.type" in set function for?
>
>
> ‚Äč
> https://github.com/apache/spark/blob/481f0792944d9a77f0fe8b5e2596da
> 1d600b9d0a/mllib/src/main/scala/org/apache/spark/mllib/
> optimization/GradientDescent.scala#L48
>
> Thanks!
>
> Zhan
>

Mime
View raw message