object Cursor
Cursor companion object
- Alphabetic
- By Inheritance
- Cursor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class Cont[T] extends State[T] with Product1[T] with Serializable
Continue with given value
- class Done[T] extends State[T] with Product1[T] with Serializable
Successfully stop processing with given value
- type ErrorHandler[A] = (A, Throwable) => State[A]
- See also
- class Fail[T] extends State[T] with Product1[Throwable] with Serializable
Ends processing due to failure of given
cause
- sealed trait State[T] extends AnyRef
A state of the cursor processing.
- type WithOps[T] = Cursor[T] with CursorOps[T]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ContOnError[A](callback: (A, Throwable) => Unit = (_: A, _: Throwable) => {}): ErrorHandler[A]
Error handler to continue on error (see Cursor.foldWhile and Cont).
Error handler to continue on error (see Cursor.foldWhile and Cont).
- callback
the callback function applied on last (possibily initial) value and the encountered error
- def DoneOnError[A](callback: (A, Throwable) => Unit = (_: A, _: Throwable) => {}): ErrorHandler[A]
Error handler to end on error (see Cursor.foldWhile and Done).
Error handler to end on error (see Cursor.foldWhile and Done).
- callback
the callback function applied on last (possibily initial) value and the encountered error
- def FailOnError[A](callback: (A, Throwable) => Unit = (_: A, _: Throwable) => {}): ErrorHandler[A]
Error handler to fail on error (see Cursor.foldWhile and Fail).
Error handler to fail on error (see Cursor.foldWhile and Fail).
- callback
the callback function applied on last (possibily initial) value and the encountered error
- def Ignore[A](callback: (A) => Unit = (_: A) => {}): (Unit, A) => State[Unit]
Value handler, ignoring the values (see Cursor.foldWhile and Cont).
Value handler, ignoring the values (see Cursor.foldWhile and Cont).
- callback
the callback function applied on each value.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flatten[T, C[_] <: Cursor[_]](future: Future[C[T]])(implicit fs: CursorFlattener[C]): C[T]
Flattens the given future reactivemongo.api.Cursor to a reactivemongo.api.FlattenedCursor.
Flattens the given future reactivemongo.api.Cursor to a reactivemongo.api.FlattenedCursor.
import scala.concurrent.Future import reactivemongo.api.Cursor def flatCursor[T](cursor: Future[Cursor[T]]): Cursor[T] = Cursor.flatten(cursor)
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Cont extends Serializable
- object Done extends Serializable
- object Fail extends Serializable
- object NoSuchResultException extends NoSuchElementException with NoStackTrace with Product with Serializable
Indicates that a required result cannot be found.