Skip to content
Snippets Groups Projects
Commit ecac2835 authored by Reynold Xin's avatar Reynold Xin
Browse files

Fix Aggregator documentation (rename present to finish).

parent 4e81783e
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ import org.apache.spark.sql.{DataFrame, Dataset, Encoder, TypedColumn} ...@@ -34,7 +34,7 @@ import org.apache.spark.sql.{DataFrame, Dataset, Encoder, TypedColumn}
* def zero: Int = 0 * def zero: Int = 0
* def reduce(b: Int, a: Data): Int = b + a.i * def reduce(b: Int, a: Data): Int = b + a.i
* def merge(b1: Int, b2: Int): Int = b1 + b2 * def merge(b1: Int, b2: Int): Int = b1 + b2
* def present(r: Int): Int = r * def finish(r: Int): Int = r
* }.toColumn() * }.toColumn()
* *
* val ds: Dataset[Data] = ... * val ds: Dataset[Data] = ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment