CloseableIterator

slick.util.CloseableIterator
See theCloseableIterator companion object
trait CloseableIterator[+T] extends Iterator[T], Closeable

An Iterator with a close method to close the underlying data source. Implementers must close the data source when hasNext returns false.

Attributes

Companion
object
Source
CloseableIterator.scala
Graph
Supertypes
trait Closeable
trait AutoCloseable
trait Iterator[T]
trait IterableOnceOps[T, Iterator, Iterator[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class Single[T]
Self type

Members list

Type members

Inherited classlikes

class GroupedIterator[B >: A](self: Iterator[B], size: Int, step: Int)

Attributes

Inherited from:
Iterator
Supertypes
class AbstractIterator[Seq[B]]
trait Iterator[Seq[B]]
trait IterableOnceOps[Seq[B], Iterator, Iterator[Seq[B]]]
trait IterableOnce[Seq[B]]
class Object
trait Matchable
class Any
Show all

Value members

Abstract methods

override def close(): Unit

Close the underlying data source. The behaviour of any methods of this object after closing it is undefined.

Close the underlying data source. The behaviour of any methods of this object after closing it is undefined.

Attributes

Definition Classes
Closeable -> AutoCloseable
Source
CloseableIterator.scala

Concrete methods

override def map[B](f: T => B): CloseableIterator[B]

Attributes

Definition Classes
Iterator -> IterableOnceOps
Source
CloseableIterator.scala
final def thenClose(c: Closeable): CloseableIterator[T]

Return a new CloseableIterator which also closes the supplied Closeable object when itself gets closed.

Return a new CloseableIterator which also closes the supplied Closeable object when itself gets closed.

Attributes

Source
CloseableIterator.scala
final def use[R](f: Iterator[T] => R): R

Attributes

Source
CloseableIterator.scala
final def use[R](f: => R): R

Attributes

Source
CloseableIterator.scala

Inherited methods

final def ++[B >: T](xs: => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
final def addString(b: StringBuilder): StringBuilder

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): StringBuilder

Attributes

Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

Attributes

Inherited from:
IterableOnceOps
def buffered: BufferedIterator[A]

Attributes

Inherited from:
Iterator
def collect[B](pf: PartialFunction[T, B]): Iterator[B]

Attributes

Inherited from:
Iterator
def collectFirst[B](pf: PartialFunction[T, B]): Option[B]

Attributes

Inherited from:
IterableOnceOps
def concat[B >: T](xs: => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def contains(elem: Any): Boolean

Attributes

Inherited from:
Iterator
def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: T](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: T](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (T, B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def count(p: T => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def distinct: Iterator[A]

Attributes

Inherited from:
Iterator
def distinctBy[B](f: T => B): Iterator[A]

Attributes

Inherited from:
Iterator
def drop(n: Int): Iterator[A]

Attributes

Inherited from:
Iterator
def dropWhile(p: T => Boolean): Iterator[A]

Attributes

Inherited from:
Iterator
def duplicate: (Iterator[A], Iterator[A])

Attributes

Inherited from:
Iterator
def exists(p: T => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(p: T => Boolean): Iterator[A]

Attributes

Inherited from:
Iterator
def filterNot(p: T => Boolean): Iterator[A]

Attributes

Inherited from:
Iterator
def find(p: T => Boolean): Option[A]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: T => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def flatten[B](implicit ev: T => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def fold[A1 >: T](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, T) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (T, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: T => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: T => U): Unit

Attributes

Inherited from:
IterableOnceOps
def grouped[B >: T](size: Int): GroupedIterator[B]

Attributes

Inherited from:
Iterator
def hasNext: Boolean

Attributes

Inherited from:
Iterator
def indexOf[B >: T](elem: B, from: Int): Int

Attributes

Inherited from:
Iterator
def indexOf[B >: T](elem: B): Int

Attributes

Inherited from:
Iterator
def indexWhere(p: T => Boolean, from: Int): Int

Attributes

Inherited from:
Iterator
override def isEmpty: Boolean

Attributes

Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def isTraversableAgain: Boolean

Attributes

Inherited from:
IterableOnceOps
final def iterator: Iterator[A]

Attributes

Inherited from:
Iterator
def knownSize: Int

Attributes

Inherited from:
IterableOnce
final def length: Int

Attributes

Inherited from:
Iterator
def max[B >: T](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: T => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: T => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: T](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def min[B >: T](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: T => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: T => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: T](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String

Attributes

Inherited from:
IterableOnceOps
def next(): A

Attributes

Inherited from:
Iterator
def nextOption(): Option[A]

Attributes

Inherited from:
Iterator
def nonEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
def padTo[B >: T](len: Int, elem: B): Iterator[B]

Attributes

Inherited from:
Iterator
def partition(p: T => Boolean): (Iterator[A], Iterator[A])

Attributes

Inherited from:
Iterator
def patch[B >: T](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

Attributes

Inherited from:
Iterator
def product[B >: T](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: T](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: T](op: (B, T) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: T](op: (B, T) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: T](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: T](op: (T, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: T](op: (T, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
protected def reversed: Iterable[A]

Attributes

Inherited from:
IterableOnceOps
def sameElements[B >: T](that: IterableOnce[B]): Boolean

Attributes

Inherited from:
Iterator
def scanLeft[B](z: B)(op: (B, T) => B): Iterator[B]

Attributes

Inherited from:
Iterator
def size: Int

Attributes

Inherited from:
IterableOnceOps
def slice(from: Int, until: Int): Iterator[A]

Attributes

Inherited from:
Iterator
def sliding[B >: T](size: Int, step: Int): GroupedIterator[B]

Attributes

Inherited from:
Iterator
def span(p: T => Boolean): (Iterator[A], Iterator[A])

Attributes

Inherited from:
Iterator
def splitAt(n: Int): (C, C)

Attributes

Inherited from:
IterableOnceOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[T, S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: T](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def take(n: Int): Iterator[A]

Attributes

Inherited from:
Iterator
def takeWhile(p: T => Boolean): Iterator[A]

Attributes

Inherited from:
Iterator
override def tapEach[U](f: T => U): Iterator[A]

Attributes

Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def to[C1](factory: Factory[T, C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: T : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: T]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[A]

Attributes

Inherited from:
IterableOnceOps
def toList: List[A]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: T <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[A]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: T]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Iterator -> Any
Inherited from:
Iterator
def toVector: Vector[A]

Attributes

Inherited from:
IterableOnceOps
def withFilter(p: T => Boolean): Iterator[A]

Attributes

Inherited from:
Iterator
def zip[B](that: IterableOnce[B]): Iterator[(A, B)]

Attributes

Inherited from:
Iterator
def zipAll[A1 >: T, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]

Attributes

Inherited from:
Iterator
def zipWithIndex: Iterator[(A, Int)]

Attributes

Inherited from:
Iterator

Deprecated and Inherited methods

final def /:[B](z: B)(op: (B, T) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (T, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, T) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
final def copyToBuffer[B >: T](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
final override def hasDefiniteSize: Boolean

Attributes

Deprecated
[Since version 2.13.0] hasDefiniteSize on Iterator is the same as isEmpty
Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def scanRight[B](z: B)(op: (T, B) => B): Iterator[B]

Attributes

Deprecated
[Since version 2.13.0] Call scanRight on an Iterable instead.
Inherited from:
Iterator
def seq: Iterator.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterator.seq always returns the iterator itself
Inherited from:
Iterator
final def toIterator: Iterator[A]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps