class GroupConsecutiveIterator[T, R] extends Iterator[(R, Iterator[T])]

Groups consecutive records that share a projection from an iterator to form an iterator of iterators.

You can think of this as Iterator equivalent of.groupBy that only works on consecutive records.

Linear Supertypes
Iterator[(R, Iterator[T])], TraversableOnce[(R, Iterator[T])], GenTraversableOnce[(R, Iterator[T])], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GroupConsecutiveIterator
  2. Iterator
  3. TraversableOnce
  4. GenTraversableOnce
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GroupConsecutiveIterator(iter: Iterator[T])(f: (T) ⇒ R)

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
    Definition Classes
    Iterator

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: (R, Iterator[T])](that: ⇒ GenTraversableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  6. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  8. def aggregate[B](z: ⇒ B)(seqop: (B, (R, Iterator[T])) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def buffered: BufferedIterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def collect[B](pf: PartialFunction[(R, Iterator[T]), B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.

  13. def collectFirst[B](pf: PartialFunction[(R, Iterator[T]), B]): Option[B]
    Definition Classes
    TraversableOnce
  14. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  15. def copyToArray[B >: (R, Iterator[T])](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  16. def copyToArray[B >: (R, Iterator[T])](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  17. def copyToArray[B >: (R, Iterator[T])](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  18. def copyToBuffer[B >: (R, Iterator[T])](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  19. def corresponds[B](that: GenTraversableOnce[B])(p: ((R, Iterator[T]), B) ⇒ Boolean): Boolean
    Definition Classes
    Iterator
  20. def count(p: ((R, Iterator[T])) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def drop(n: Int): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  22. def dropWhile(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  23. def duplicate: (Iterator[(R, Iterator[T])], Iterator[(R, Iterator[T])])
    Definition Classes
    Iterator
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. def exists(p: ((R, Iterator[T])) ⇒ Boolean): Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  27. def filter(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  28. def filterNot(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  29. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def find(p: ((R, Iterator[T])) ⇒ Boolean): Option[(R, Iterator[T])]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  31. def flatMap[B](f: ((R, Iterator[T])) ⇒ GenTraversableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  32. def fold[A1 >: (R, Iterator[T])](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  33. def foldLeft[B](z: B)(op: (B, (R, Iterator[T])) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  34. def foldRight[B](z: B)(op: ((R, Iterator[T]), B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  35. def forall(p: ((R, Iterator[T])) ⇒ Boolean): Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  36. def foreach[U](f: ((R, Iterator[T])) ⇒ U): Unit
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def grouped[B >: (R, Iterator[T])](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  39. def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  40. def hasNext: Boolean
    Definition Classes
    GroupConsecutiveIterator → Iterator
  41. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. def indexOf[B >: (R, Iterator[T])](elem: B, from: Int): Int
    Definition Classes
    Iterator
  43. def indexOf[B >: (R, Iterator[T])](elem: B): Int
    Definition Classes
    Iterator
  44. def indexWhere(p: ((R, Iterator[T])) ⇒ Boolean, from: Int): Int
    Definition Classes
    Iterator
  45. def indexWhere(p: ((R, Iterator[T])) ⇒ Boolean): Int
    Definition Classes
    Iterator
  46. def isEmpty: Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. def isTraversableAgain: Boolean
    Definition Classes
    Iterator → GenTraversableOnce
  49. def length: Int
    Definition Classes
    Iterator
  50. def map[B](f: ((R, Iterator[T])) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  51. def max[B >: (R, Iterator[T])](implicit cmp: Ordering[B]): (R, Iterator[T])
    Definition Classes
    TraversableOnce → GenTraversableOnce
  52. def maxBy[B](f: ((R, Iterator[T])) ⇒ B)(implicit cmp: Ordering[B]): (R, Iterator[T])
    Definition Classes
    TraversableOnce → GenTraversableOnce
  53. def min[B >: (R, Iterator[T])](implicit cmp: Ordering[B]): (R, Iterator[T])
    Definition Classes
    TraversableOnce → GenTraversableOnce
  54. def minBy[B](f: ((R, Iterator[T])) ⇒ B)(implicit cmp: Ordering[B]): (R, Iterator[T])
    Definition Classes
    TraversableOnce → GenTraversableOnce
  55. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  56. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  57. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. def next(): (R, Iterator[T])
    Definition Classes
    GroupConsecutiveIterator → Iterator
  60. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  63. def padTo[A1 >: (R, Iterator[T])](len: Int, elem: A1): Iterator[A1]
    Definition Classes
    Iterator
  64. def partition(p: ((R, Iterator[T])) ⇒ Boolean): (Iterator[(R, Iterator[T])], Iterator[(R, Iterator[T])])
    Definition Classes
    Iterator
  65. def patch[B >: (R, Iterator[T])](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  66. def product[B >: (R, Iterator[T])](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def reduce[A1 >: (R, Iterator[T])](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def reduceLeft[B >: (R, Iterator[T])](op: (B, (R, Iterator[T])) ⇒ B): B
    Definition Classes
    TraversableOnce
  69. def reduceLeftOption[B >: (R, Iterator[T])](op: (B, (R, Iterator[T])) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. def reduceOption[A1 >: (R, Iterator[T])](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. def reduceRight[B >: (R, Iterator[T])](op: ((R, Iterator[T]), B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  72. def reduceRightOption[B >: (R, Iterator[T])](op: ((R, Iterator[T]), B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  73. def reversed: List[(R, Iterator[T])]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  74. def sameElements(that: Iterator[_]): Boolean
    Definition Classes
    Iterator
  75. def scanLeft[B](z: B)(op: (B, (R, Iterator[T])) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  76. def scanRight[B](z: B)(op: ((R, Iterator[T]), B) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  77. def seq: Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  78. def size: Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def sizeHintIfCheap: Int
    Attributes
    protected[collection]
    Definition Classes
    GenTraversableOnce
  80. def slice(from: Int, until: Int): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  81. def sliceIterator(from: Int, until: Int): Iterator[(R, Iterator[T])]
    Attributes
    protected
    Definition Classes
    Iterator
  82. def sliding[B >: (R, Iterator[T])](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  83. def span(p: ((R, Iterator[T])) ⇒ Boolean): (Iterator[(R, Iterator[T])], Iterator[(R, Iterator[T])])
    Definition Classes
    Iterator
  84. def sum[B >: (R, Iterator[T])](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  86. def take(n: Int): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  87. def takeWhile(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  88. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (R, Iterator[T]), Col[(R, Iterator[T])]]): Col[(R, Iterator[T])]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  89. def toArray[B >: (R, Iterator[T])](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  90. def toBuffer[B >: (R, Iterator[T])]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. def toIndexedSeq: IndexedSeq[(R, Iterator[T])]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  92. def toIterable: Iterable[(R, Iterator[T])]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def toIterator: Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator → GenTraversableOnce
  94. def toList: List[(R, Iterator[T])]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. def toMap[T, U](implicit ev: <:<[(R, Iterator[T]), (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def toSeq: Seq[(R, Iterator[T])]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. def toSet[B >: (R, Iterator[T])]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def toStream: Stream[(R, Iterator[T])]
    Definition Classes
    Iterator → GenTraversableOnce
  99. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  100. def toTraversable: Traversable[(R, Iterator[T])]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  101. def toVector: Vector[(R, Iterator[T])]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  104. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  105. def withFilter(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]
    Definition Classes
    Iterator
  106. def zip[B](that: Iterator[B]): Iterator[((R, Iterator[T]), B)]
    Definition Classes
    Iterator
  107. def zipAll[B, A1 >: (R, Iterator[T]), B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]
    Definition Classes
    Iterator
  108. def zipWithIndex: Iterator[((R, Iterator[T]), Int)]
    Definition Classes
    Iterator

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, (R, Iterator[T])) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldLeft instead of /:

  2. def :\[B](z: B)(op: ((R, Iterator[T]), B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldRight instead of :\

Inherited from Iterator[(R, Iterator[T])]

Inherited from TraversableOnce[(R, Iterator[T])]

Inherited from GenTraversableOnce[(R, Iterator[T])]

Inherited from AnyRef

Inherited from Any

Ungrouped