Repository: spark Updated Branches: refs/heads/branch-1.5 05cbf133d -> 30e9fcfb3
[SPARK-9657] Fix return type of getMaxPatternLength mengxr Author: Feynman Liang <fli...@databricks.com> Closes #7974 from feynmanliang/SPARK-9657 and squashes the following commits: 7ca533f [Feynman Liang] Fix return type of getMaxPatternLength (cherry picked from commit dac090d1e9be7dec6c5ebdb2a81105b87e853193) Signed-off-by: Xiangrui Meng <m...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/30e9fcfb Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/30e9fcfb Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/30e9fcfb Branch: refs/heads/branch-1.5 Commit: 30e9fcfb321966c09f86eec4e70c579d6dff1cca Parents: 05cbf13 Author: Feynman Liang <fli...@databricks.com> Authored: Wed Aug 5 15:42:18 2015 -0700 Committer: Xiangrui Meng <m...@databricks.com> Committed: Wed Aug 5 15:42:24 2015 -0700 ---------------------------------------------------------------------- mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/30e9fcfb/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala b/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala index d5f0c92..ad6715b5 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala @@ -82,7 +82,7 @@ class PrefixSpan private ( /** * Gets the maximal pattern length (i.e. the length of the longest sequential pattern to consider. */ - def getMaxPatternLength: Double = maxPatternLength + def getMaxPatternLength: Int = maxPatternLength /** * Sets maximal pattern length (default: `10`). --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org