 # GroupConsecutiveIterator

### Related Docs: object GroupConsecutiveIterator | package util

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

### 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. #### def /:[B](z: B)(op: (B, (R, Iterator[T])) ⇒ B): B

Definition Classes
TraversableOnce → GenTraversableOnce
5. #### def :\[B](z: B)(op: ((R, Iterator[T]), B) ⇒ B): B

Definition Classes
TraversableOnce → GenTraversableOnce
6. #### final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any
7. #### def addString(b: StringBuilder): StringBuilder

Definition Classes
TraversableOnce
8. #### def addString(b: StringBuilder, sep: String): StringBuilder

Definition Classes
TraversableOnce
9. #### def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

Definition Classes
TraversableOnce
10. #### def aggregate[B](z: ⇒ B)(seqop: (B, (R, Iterator[T])) ⇒ B, combop: (B, B) ⇒ B): B

Definition Classes
TraversableOnce → GenTraversableOnce
11. #### final def asInstanceOf[T0]: T0

Definition Classes
Any
12. #### def buffered: BufferedIterator[(R, Iterator[T])]

Definition Classes
Iterator
13. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
14. #### 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`.

15. #### def collectFirst[B](pf: PartialFunction[(R, Iterator[T]), B]): Option[B]

Definition Classes
TraversableOnce
16. #### def contains(elem: Any): Boolean

Definition Classes
Iterator
17. #### def copyToArray[B >: (R, Iterator[T])](xs: Array[B], start: Int, len: Int): Unit

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
18. #### def copyToArray[B >: (R, Iterator[T])](xs: Array[B]): Unit

Definition Classes
TraversableOnce → GenTraversableOnce
19. #### def copyToArray[B >: (R, Iterator[T])](xs: Array[B], start: Int): Unit

Definition Classes
TraversableOnce → GenTraversableOnce
20. #### def copyToBuffer[B >: (R, Iterator[T])](dest: Buffer[B]): Unit

Definition Classes
TraversableOnce
21. #### def corresponds[B](that: GenTraversableOnce[B])(p: ((R, Iterator[T]), B) ⇒ Boolean): Boolean

Definition Classes
Iterator
22. #### def count(p: ((R, Iterator[T])) ⇒ Boolean): Int

Definition Classes
TraversableOnce → GenTraversableOnce
23. #### def drop(n: Int): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
24. #### def dropWhile(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
25. #### def duplicate: (Iterator[(R, Iterator[T])], Iterator[(R, Iterator[T])])

Definition Classes
Iterator
26. #### final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
27. #### def equals(arg0: Any): Boolean

Definition Classes
AnyRef → Any
28. #### def exists(p: ((R, Iterator[T])) ⇒ Boolean): Boolean

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
29. #### def filter(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
30. #### def filterNot(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
31. #### def finalize(): Unit

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( classOf[java.lang.Throwable] )
32. #### def find(p: ((R, Iterator[T])) ⇒ Boolean): Option[(R, Iterator[T])]

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
33. #### def flatMap[B](f: ((R, Iterator[T])) ⇒ GenTraversableOnce[B]): Iterator[B]

Definition Classes
Iterator
34. #### def fold[A1 >: (R, Iterator[T])](z: A1)(op: (A1, A1) ⇒ A1): A1

Definition Classes
TraversableOnce → GenTraversableOnce
35. #### def foldLeft[B](z: B)(op: (B, (R, Iterator[T])) ⇒ B): B

Definition Classes
TraversableOnce → GenTraversableOnce
36. #### def foldRight[B](z: B)(op: ((R, Iterator[T]), B) ⇒ B): B

Definition Classes
TraversableOnce → GenTraversableOnce
37. #### def forall(p: ((R, Iterator[T])) ⇒ Boolean): Boolean

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
38. #### def foreach[U](f: ((R, Iterator[T])) ⇒ U): Unit

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
39. #### final def getClass(): Class[_]

Definition Classes
AnyRef → Any
40. #### def grouped[B >: (R, Iterator[T])](size: Int): GroupedIterator[B]

Definition Classes
Iterator
41. #### def hasDefiniteSize: Boolean

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
42. #### def hasNext: Boolean

Definition Classes
GroupConsecutiveIterator → Iterator
43. #### def hashCode(): Int

Definition Classes
AnyRef → Any
44. #### def indexOf[B >: (R, Iterator[T])](elem: B): 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
62. #### final def notifyAll(): Unit

Definition Classes
AnyRef
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 slice(from: Int, until: Int): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
80. #### def sliding[B >: (R, Iterator[T])](size: Int, step: Int): GroupedIterator[B]

Definition Classes
Iterator
81. #### def span(p: ((R, Iterator[T])) ⇒ Boolean): (Iterator[(R, Iterator[T])], Iterator[(R, Iterator[T])])

Definition Classes
Iterator
82. #### def sum[B >: (R, Iterator[T])](implicit num: Numeric[B]): B

Definition Classes
TraversableOnce → GenTraversableOnce
83. #### final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
84. #### def take(n: Int): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
85. #### def takeWhile(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
86. #### def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (R, Iterator[T]), Col[(R, Iterator[T])]]): Col[(R, Iterator[T])]

Definition Classes
TraversableOnce → GenTraversableOnce
87. #### def toArray[B >: (R, Iterator[T])](implicit arg0: ClassTag[B]): Array[B]

Definition Classes
TraversableOnce → GenTraversableOnce
88. #### def toBuffer[B >: (R, Iterator[T])]: Buffer[B]

Definition Classes
TraversableOnce → GenTraversableOnce
89. #### def toIndexedSeq: IndexedSeq[(R, Iterator[T])]

Definition Classes
TraversableOnce → GenTraversableOnce
90. #### def toIterable: Iterable[(R, Iterator[T])]

Definition Classes
TraversableOnce → GenTraversableOnce
91. #### def toIterator: Iterator[(R, Iterator[T])]

Definition Classes
Iterator → GenTraversableOnce
92. #### def toList: List[(R, Iterator[T])]

Definition Classes
TraversableOnce → GenTraversableOnce
93. #### def toMap[T, U](implicit ev: <:<[(R, Iterator[T]), (T, U)]): Map[T, U]

Definition Classes
TraversableOnce → GenTraversableOnce
94. #### def toSeq: Seq[(R, Iterator[T])]

Definition Classes
TraversableOnce → GenTraversableOnce
95. #### def toSet[B >: (R, Iterator[T])]: Set[B]

Definition Classes
TraversableOnce → GenTraversableOnce
96. #### def toStream: Stream[(R, Iterator[T])]

Definition Classes
Iterator → GenTraversableOnce
97. #### def toString(): String

Definition Classes
Iterator → AnyRef → Any
98. #### def toTraversable: Traversable[(R, Iterator[T])]

Definition Classes
Iterator → TraversableOnce → GenTraversableOnce
99. #### def toVector: Vector[(R, Iterator[T])]

Definition Classes
TraversableOnce → GenTraversableOnce
100. #### final def wait(): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
101. #### final def wait(arg0: Long, arg1: Int): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
102. #### final def wait(arg0: Long): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
103. #### def withFilter(p: ((R, Iterator[T])) ⇒ Boolean): Iterator[(R, Iterator[T])]

Definition Classes
Iterator
104. #### def zip[B](that: Iterator[B]): Iterator[((R, Iterator[T]), B)]

Definition Classes
Iterator
105. #### def zipAll[B, A1 >: (R, Iterator[T]), B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

Definition Classes
Iterator
106. #### def zipWithIndex: Iterator[((R, Iterator[T]), Int)]

Definition Classes
Iterator