class_docstr: A parallel PrefixSpan algorithm to mine frequent sequential patterns.
  The PrefixSpan algorithm is described in J. Pei, et al., PrefixSpan: Mining Sequential Patterns
  Efficiently by Prefix-Projected Pattern Growth
  (see `here <https://doi.org/10.1109/ICDE.2001.914830>`_).
  This class is not yet an Estimator/Transformer, use :py:func:`findFrequentSequentialPatterns`
  method to run the PrefixSpan algorithm.
  
  .. versionadded:: 2.4.0
  
  Notes
  -----
  See `Sequential Pattern Mining (Wikipedia)       <https://en.wikipedia.org/wiki/Sequential_Pattern_Mining>`_
  
  Examples
  --------
  >>> from pyspark.ml.fpm import PrefixSpan
  >>> from pyspark.sql import Row
  >>> df = sc.parallelize([Row(sequence=[[1, 2], [3]]),
  ...                      Row(sequence=[[1], [3, 2], [1, 2]]),
  ...                      Row(sequence=[[1, 2], [5]]),
  ...                      Row(sequence=[[6]])]).toDF()
  >>> prefixSpan = PrefixSpan()
  >>> prefixSpan.getMaxLocalProjDBSize()
  32000000
  >>> prefixSpan.getSequenceCol()
  'sequence'
  >>> prefixSpan.setMinSupport(0.5)
  PrefixSpan...
  >>> prefixSpan.setMaxPatternLength(5)
  PrefixSpan...
  >>> prefixSpan.findFrequentSequentialPatterns(df).sort("sequence").show(truncate=False)
  +----------+----+
  |sequence  |freq|
  +----------+----+
  |[[1]]     |3   |
  |[[1], [3]]|2   |
  |[[2]]     |3   |
  |[[2, 1]]  |3   |
  |[[3]]     |2   |
  +----------+----+
  ...
class_docstr_tok: ["A","parallel","PrefixSpan","algorithm","to","mine","frequent","sequential","patterns",".","The","PrefixSpan","algorithm","is","described","in","J.","Pei",",","et","al.",",","PrefixSpan",":","Mining","Sequential","Patterns","Efficiently","by","Prefix-Projected","Pattern","Growth","(","see","`","here","<","https",":","\/\/doi.org\/10.1109\/ICDE.2001.914830",">","`","_",")",".","This","class","is","not","yet","an","Estimator\/Transformer",",","use",":","py",":","func",":","`","findFrequentSequentialPatterns","`","method","to","run","the","PrefixSpan","algorithm",".","..","versionadded",":",":","2.4.0","Notes","--","--","-","See","`","Sequential","Pattern","Mining","(","Wikipedia",")","<","https",":","\/\/en.wikipedia.org\/wiki\/Sequential_Pattern_Mining",">","`","_","Examples","--","--","--","--",">",">",">","from","pyspark.ml.fpm","import","PrefixSpan",">",">",">","from","pyspark.sql","import","Row",">",">",">","df","=","sc.parallelize","(","[","Row","(","sequence=","[","[","1",",","2","]",",","[","3","]","]",")",",","...","Row","(","sequence=","[","[","1","]",",","[","3",",","2","]",",","[","1",",","2","]","]",")",",","...","Row","(","sequence=","[","[","1",",","2","]",",","[","5","]","]",")",",","...","Row","(","sequence=","[","[","6","]","]",")","]",")",".toDF","(",")",">",">",">","prefixSpan","=","PrefixSpan","(",")",">",">",">","prefixSpan.getMaxLocalProjDBSize","(",")","32000000",">",">",">","prefixSpan.getSequenceCol","(",")","'sequence'",">",">",">","prefixSpan.setMinSupport","(","0.5",")","PrefixSpan","...",">",">",">","prefixSpan.setMaxPatternLength","(","5",")","PrefixSpan","...",">",">",">","prefixSpan.findFrequentSequentialPatterns","(","df",")",".sort","(","``","sequence","''",")",".show","(","truncate=False",")","+","--","--","--","--","--","+","--","--","+","|sequence","|freq|","+","--","--","--","--","--","+","--","--","+","|","[","[","1","]","]","|3","|","|","[","[","1","]",",","[","3","]","]","|2","|","|","[","[","2","]","]","|3","|","|","[","[","2",",","1","]","]","|3","|","|","[","[","3","]","]","|2","|","+","--","--","--","--","--","+","--","--","+","..."]
docstr: Gets the value of maxPatternLength or its default value.
docstr_tok: ["Gets","the","value","of","maxPatternLength","or","its","default","value","."]
code: def getMaxPatternLength(self) -> int:
      """
      Gets the value of maxPatternLength or its default value.
      """
      return self.getOrDefault(self.maxPatternLength)
  
imports: import sys
  from typing import Any, Dict, Optional, TYPE_CHECKING
  from pyspark import keyword_only, since
  from pyspark.sql import DataFrame
  from pyspark.ml.util import JavaMLWritable, JavaMLReadable
  from pyspark.ml.wrapper import JavaEstimator, JavaModel, JavaParams
  from pyspark.ml.param.shared import HasPredictionCol, Param, TypeConverters, Params
label_desc: Use image node_id 6 for calling the PrefixSpan obj's underlying member method code with example usage: obj.getMaxPatternLength() and returns: self