Trait

reactivemongo.akkastream

AkkaStreamCursor

Related Doc: package akkastream

Permalink

sealed trait AkkaStreamCursor[T] extends Cursor[T]

Linear Supertypes
Cursor[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AkkaStreamCursor
  2. Cursor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def bulkSource(maxDocs: Int = Int.MaxValue, err: ErrorHandler[Option[Iterator[T]]] = FailOnError())(implicit m: Materializer): Source[Iterator[T], NotUsed]

    Permalink

    Returns a source of document bulks (see reactivemongo.api.QueryOpts.batchSize).

    Returns a source of document bulks (see reactivemongo.api.QueryOpts.batchSize).

    maxDocs

    the maximum number of documents to be retrieved

    err

    The binary operator to be applied when failing to get the next response. Exception or Fail raised within the suc function cannot be recovered by this error handler.

    m

    the stream materializer

  2. abstract def collect[M[_]](maxDocs: Int, err: ErrorHandler[M[T]])(implicit cbf: CanBuildFrom[M[_], T, M[T]], ec: ExecutionContext): Future[M[T]]

    Permalink
    Definition Classes
    Cursor
  3. abstract def documentSource(maxDocs: Int = Int.MaxValue, err: ErrorHandler[Option[T]] = FailOnError())(implicit m: Materializer): Source[T, NotUsed]

    Permalink

    Returns a source of documents.

    Returns a source of documents.

    maxDocs

    the maximum number of documents to be retrieved

    err

    The binary operator to be applied when failing to get the next response. Exception or Fail raised within the suc function cannot be recovered by this error handler.

    m

    the stream materializer

  4. abstract def foldBulks[A](z: ⇒ A, maxDocs: Int)(suc: (A, Iterator[T]) ⇒ State[A], err: ErrorHandler[A])(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  5. abstract def foldBulksM[A](z: ⇒ A, maxDocs: Int)(suc: (A, Iterator[T]) ⇒ Future[State[A]], err: ErrorHandler[A])(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  6. abstract def foldResponses[A](z: ⇒ A, maxDocs: Int)(suc: (A, Response) ⇒ State[A], err: ErrorHandler[A])(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  7. abstract def foldResponsesM[A](z: ⇒ A, maxDocs: Int)(suc: (A, Response) ⇒ Future[State[A]], err: ErrorHandler[A])(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  8. abstract def foldWhile[A](z: ⇒ A, maxDocs: Int)(suc: (A, T) ⇒ State[A], err: ErrorHandler[A])(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  9. abstract def foldWhileM[A](z: ⇒ A, maxDocs: Int)(suc: (A, T) ⇒ Future[State[A]], err: ErrorHandler[A])(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  10. abstract def head(implicit ctx: ExecutionContext): Future[T]

    Permalink
    Definition Classes
    Cursor
  11. abstract def responseSource(maxDocs: Int = Int.MaxValue, err: ErrorHandler[Option[Response]] = FailOnError())(implicit m: Materializer): Source[Response, NotUsed]

    Permalink

    Returns a source of responses.

    Returns a source of responses.

    maxDocs

    the maximum number of documents to be retrieved

    err

    The binary operator to be applied when failing to get the next response. Exception or Fail raised within the suc function cannot be recovered by this error handler.

    m

    the stream materializer

  12. abstract def enumerate(maxDocs: Int, stopOnError: Boolean)(implicit ctx: ExecutionContext): Enumerator[T]

    Permalink
    Definition Classes
    Cursor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.10) Use .enumerator from Play Iteratees module

  13. abstract def enumerateBulks(maxDocs: Int, stopOnError: Boolean)(implicit ctx: ExecutionContext): Enumerator[Iterator[T]]

    Permalink
    Definition Classes
    Cursor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.10) Use .bulkEnumerator from the Play Iteratees module

  14. abstract def enumerateResponses(maxDocs: Int, stopOnError: Boolean)(implicit ctx: ExecutionContext): Enumerator[Response]

    Permalink
    Definition Classes
    Cursor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.10) Use .responseEnumerator from the Play Iteratees module

  15. abstract def rawEnumerateResponses(maxDocs: Int)(implicit ctx: ExecutionContext): Enumerator[Response]

    Permalink
    Definition Classes
    Cursor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.10) Use the Play Iteratees module

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bulkPublisher(fanout: Boolean = false, maxDocs: Int = Int.MaxValue, err: ErrorHandler[Option[Iterator[T]]] = FailOnError())(implicit m: Materializer): Publisher[Iterator[T]]

    Permalink

    Returns a Reactive Streams publisher of bulks from this cursor.

    Returns a Reactive Streams publisher of bulks from this cursor.

    fanout

    see http://doc.akka.io/api/akka/2.4.7/index.html#akka.stream.scaladsl.Sink$@asPublisher[T](fanout:Boolean):akka.stream.scaladsl.Sink[T,org.reactivestreams.Publisher[T Sink.asPublisher]] (default: false)

    maxDocs

    the maximum number of documents to be retrieved

    err

    The binary operator to be applied when failing to get the next response. Exception or Fail raised within the suc function cannot be recovered by this error handler.

    m

    the stream materializer

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val defaultParallelism: Int

    Permalink

    The default parallelism

  8. def documentPublisher(fanout: Boolean = false, maxDocs: Int = Int.MaxValue, err: ErrorHandler[Option[T]] = FailOnError())(implicit m: Materializer): Publisher[T]

    Permalink

    Returns a Reactive Streams publisher of documents from this cursor.

    Returns a Reactive Streams publisher of documents from this cursor.

    fanout

    see http://doc.akka.io/api/akka/2.4.7/index.html#akka.stream.scaladsl.Sink$@asPublisher[T](fanout:Boolean):akka.stream.scaladsl.Sink[T,org.reactivestreams.Publisher[T Sink.asPublisher]] (default: false)

    maxDocs

    the maximum number of documents to be retrieved

    err

    The binary operator to be applied when failing to get the next response. Exception or Fail raised within the suc function cannot be recovered by this error handler.

    m

    the stream materializer

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fold[A](z: ⇒ A, maxDocs: Int)(suc: (A, T) ⇒ A)(implicit ctx: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    Cursor
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def headOption(implicit ctx: ExecutionContext): Future[Option[T]]

    Permalink
    Definition Classes
    Cursor
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def responsePublisher(fanout: Boolean = false, maxDocs: Int = Int.MaxValue, err: ErrorHandler[Option[Response]] = FailOnError())(implicit m: Materializer): Publisher[Response]

    Permalink

    Returns a Reactive Streams publisher of responses from this cursor.

    Returns a Reactive Streams publisher of responses from this cursor.

    fanout

    see http://doc.akka.io/api/akka/2.4.7/index.html#akka.stream.scaladsl.Sink$@asPublisher[T](fanout:Boolean):akka.stream.scaladsl.Sink[T,org.reactivestreams.Publisher[T Sink.asPublisher]] (default: false)

    maxDocs

    the maximum number of documents to be retrieved

    err

    The binary operator to be applied when failing to get the next response. Exception or Fail raised within the suc function cannot be recovered by this error handler.

    m

    the stream materializer

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def collect[M[_]](maxDocs: Int, stopOnError: Boolean)(implicit cbf: CanBuildFrom[M[_], T, M[T]], ec: ExecutionContext): Future[M[T]]

    Permalink
    Definition Classes
    Cursor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC1) Use collect with an Cursor.ErrorHandler.

  2. def toList(maxDocs: Int, stopOnError: Boolean)(implicit ctx: ExecutionContext): Future[List[T]]

    Permalink
    Definition Classes
    Cursor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) consider using collect[List] instead

Inherited from Cursor[T]

Inherited from AnyRef

Inherited from Any

Ungrouped