sealed
trait
ChunkIterator[+A] extends AnyRef
Abstract Value Members
-
abstract
def
hasNextAt(index: Int): Boolean
-
abstract
def
length: Int
-
abstract
def
nextAt(index: Int): A
-
abstract
def
sliceIterator(offset: Int, length: Int): ChunkIterator[A]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
A
ChunkIterator
is a specialized iterator that supports efficient iteration over chunks. Unlike a normal iterator, the caller is responsible for providing anindex
with each call tohasNextAt
andnextAt
. By contract this should be0
initially and incremented by1
each timenextAt
is called. This allows the caller to maintain the current index in local memory rather than the iterator having to do it on the heap for array backed chunks.