Skip to content

Commit

Permalink
[SPARK-9657] Fix return type of getMaxPatternLength
Browse files Browse the repository at this point in the history
mengxr

Author: Feynman Liang <[email protected]>

Closes #7974 from feynmanliang/SPARK-9657 and squashes the following commits:

7ca533f [Feynman Liang] Fix return type of getMaxPatternLength

(cherry picked from commit dac090d)
Signed-off-by: Xiangrui Meng <[email protected]>
  • Loading branch information
Feynman Liang authored and mengxr committed Aug 5, 2015
1 parent 05cbf13 commit 30e9fcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down

0 comments on commit 30e9fcf

Please sign in to comment.