spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject spark git commit: [SPARK-9657] Fix return type of getMaxPatternLength
Date Wed, 05 Aug 2015 22:42:27 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.5 05cbf133d -> 30e9fcfb3


[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

(cherry picked from commit dac090d1e9be7dec6c5ebdb2a81105b87e853193)
Signed-off-by: Xiangrui Meng <meng@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 <fliang@databricks.com>
Authored: Wed Aug 5 15:42:18 2015 -0700
Committer: Xiangrui Meng <meng@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message