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

    https://github.com/apache/spark/pull/1165#discussion_r14325606
  
    --- Diff: 
core/src/main/scala/org/apache/spark/util/collection/PrimitiveVector.scala ---
    @@ -50,6 +50,16 @@ class PrimitiveVector[@specialized(Long, Int, Double) V: 
ClassTag](initialSize:
     
       def size: Int = _numElements
     
    +  def iterator: Iterator[V] = new Iterator[V] {
    +    var index = 0
    +    override def hasNext: Boolean = index < _numElements
    +    override def next(): V = {
    +      val value = _array(index)
    --- End diff --
    
    Sure


---
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.
---

Reply via email to