Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2907#discussion_r19642063
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/rdd/SlidingRDD.scala 
---
    @@ -45,15 +45,16 @@ class SlidingRDDPartition[T](val idx: Int, val prev: 
Partition, val tail: Seq[T]
      */
     private[mllib]
     class SlidingRDD[T: ClassTag](@transient val parent: RDD[T], val 
windowSize: Int)
    -  extends RDD[Seq[T]](parent) {
    +  extends RDD[Array[T]](parent) {
     
       require(windowSize > 1, s"Window size must be greater than 1, but got 
$windowSize.")
     
    -  override def compute(split: Partition, context: TaskContext): 
Iterator[Seq[T]] = {
    +  override def compute(split: Partition, context: TaskContext): 
Iterator[Array[T]] = {
         val part = split.asInstanceOf[SlidingRDDPartition[T]]
    -    (firstParent[T].iterator(part.prev, context) ++ part.tail)
    +     (firstParent[T].iterator(part.prev, context) ++ part.tail)
    --- End diff --
    
    2-space indentation


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to