aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorFeynman Liang <fliang@databricks.com>2015-08-05 15:42:18 -0700
committerXiangrui Meng <meng@databricks.com>2015-08-05 15:42:18 -0700
commitdac090d1e9be7dec6c5ebdb2a81105b87e853193 (patch)
tree092229b0911148a639fc617ad23ed8ffae944c51 /mllib
parentf9c2a2af1e883b36c5e51b87ef660a1b9ad0f586 (diff)
downloadspark-dac090d1e9be7dec6c5ebdb2a81105b87e853193.tar.gz
spark-dac090d1e9be7dec6c5ebdb2a81105b87e853193.tar.bz2
spark-dac090d1e9be7dec6c5ebdb2a81105b87e853193.zip
[SPARK-9657] Fix return type of getMaxPatternLength
mengxr Author: Feynman Liang <fliang@databricks.com> Closes #7974 from feynmanliang/SPARK-9657 and squashes the following commits: 7ca533f [Feynman Liang] Fix return type of getMaxPatternLength
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala2
1 files changed, 1 insertions, 1 deletions
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 d5f0c926c6..ad6715b52f 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`).