Class

org.mongodb.scala

MapReduceObservable

Related Doc: package scala

Permalink

case class MapReduceObservable[TResult](wrapped: MapReduceIterable[TResult]) extends Observable[TResult] with Product with Serializable

Observable for map reduce.

Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MapReduceObservable
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Observable
  7. Observable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapReduceObservable(wrapped: MapReduceIterable[TResult])

    Permalink

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. def action(action: MapReduceAction): MapReduceObservable[TResult]

    Permalink

    Specify the MapReduceAction to be used when writing to a collection.

    Specify the MapReduceAction to be used when writing to a collection.

    action

    an model.MapReduceAction to perform on the collection

    returns

    this

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bypassDocumentValidation(bypassDocumentValidation: Boolean): MapReduceObservable[TResult]

    Permalink

    Sets the bypass document level validation flag.

    Sets the bypass document level validation flag.

    Note:: This only applies when an $out stage is specified.

    output with an action

    bypassDocumentValidation

    If true, allows the write to opt-out of document level validation.

    returns

    this

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collectionName(collectionName: String): MapReduceObservable[TResult]

    Permalink

    Sets the collectionName for the output of the MapReduce

    Sets the collectionName for the output of the MapReduce

    The default action is replace the collection if it exists, to change this use action.

    collectionName

    the name of the collection that you want the map-reduce operation to write its output.

    returns

    this

  9. def databaseName(databaseName: String): MapReduceObservable[TResult]

    Permalink

    Sets the name of the database to output into.

    Sets the name of the database to output into.

    output with an action

    databaseName

    the name of the database to output into.

    returns

    this

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

    Permalink
    Definition Classes
    AnyRef
  11. def filter(filter: Bson): MapReduceObservable[TResult]

    Permalink

    Sets the query filter to apply to the query.

    Sets the query filter to apply to the query.

    Filter

    filter

    the filter to apply to the query.

    returns

    this

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def finalizeFunction(finalizeFunction: String): MapReduceObservable[TResult]

    Permalink

    Sets the JavaScript function that follows the reduce method and modifies the output.

    Sets the JavaScript function that follows the reduce method and modifies the output.

    Requirements for the finalize Function

    finalizeFunction

    the JavaScript function that follows the reduce method and modifies the output.

    returns

    this

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def jsMode(jsMode: Boolean): MapReduceObservable[TResult]

    Permalink

    Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.

    Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions. Defaults to false.

    mapReduce

    jsMode

    the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions

    returns

    jsMode

  17. def limit(limit: Int): MapReduceObservable[TResult]

    Permalink

    Sets the limit to apply.

    Sets the limit to apply.

    Limit

    limit

    the limit, which may be null

    returns

    this

  18. def maxTime(duration: Duration): MapReduceObservable[TResult]

    Permalink

    Sets the maximum execution time on the server for this operation.

    Sets the maximum execution time on the server for this operation.

    Max Time

    duration

    the duration

    returns

    this

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def nonAtomic(nonAtomic: Boolean): MapReduceObservable[TResult]

    Permalink

    Sets if the post-processing step will prevent MongoDB from locking the database.

    Sets if the post-processing step will prevent MongoDB from locking the database.

    Valid only with the MapReduceAction.MERGE or MapReduceAction.REDUCE actions.

    Output with an action

    nonAtomic

    if the post-processing step will prevent MongoDB from locking the database.

    returns

    this

  21. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def scope(scope: Bson): MapReduceObservable[TResult]

    Permalink

    Sets the global variables that are accessible in the map, reduce and finalize functions.

    Sets the global variables that are accessible in the map, reduce and finalize functions.

    mapReduce

    scope

    the global variables that are accessible in the map, reduce and finalize functions.

    returns

    this

  24. def sharded(sharded: Boolean): MapReduceObservable[TResult]

    Permalink

    Sets if the output database is sharded

    Sets if the output database is sharded

    output with an action

    sharded

    if the output database is sharded

    returns

    this

  25. def sort(sort: Bson): MapReduceObservable[TResult]

    Permalink

    Sets the sort criteria to apply to the query.

    Sets the sort criteria to apply to the query.

    Sort

    sort

    the sort criteria, which may be null.

    returns

    this

  26. def subscribe(observer: Observer[_ >: TResult]): Unit

    Permalink

    Request Observable to start streaming data.

    Request Observable to start streaming data.

    This is a "factory method" and can be called multiple times, each time starting a new Subscription. Each Subscription will work for only a single Observer.

    If the Observable rejects the subscription attempt or otherwise fails it will signal the error via Observer.onError.

    observer

    the Observer that will consume signals from this Observable

    Definition Classes
    MapReduceObservableObservable
  27. def subscribe(observer: com.mongodb.async.client.Observer[_ >: TResult]): Unit

    Permalink

    Handles the automatic boxing of a Java Observable so it conforms to the interface.

    Handles the automatic boxing of a Java Observable so it conforms to the interface.

    observer

    the Observer that will consume signals from this Observable

    Definition Classes
    Observable → Observable
    Note

    Users should not have to implement this method but rather use the Scala Observable.

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

    Permalink
    Definition Classes
    AnyRef
  29. def toCollection(): Observable[Completed]

    Permalink

    Aggregates documents to a collection according to the specified map-reduce function with the given options, which must specify a non-inline result.

    Aggregates documents to a collection according to the specified map-reduce function with the given options, which must specify a non-inline result.

    returns

    a Observable with a single element indicating when the operation has completed Aggregation

  30. def verbose(verbose: Boolean): MapReduceObservable[TResult]

    Permalink

    Sets whether to include the timing information in the result information.

    Sets whether to include the timing information in the result information.

    verbose

    whether to include the timing information in the result information.

    returns

    this

  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. val wrapped: MapReduceIterable[TResult]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Observable[TResult]

Inherited from com.mongodb.async.client.Observable[TResult]

Inherited from AnyRef

Inherited from Any

Ungrouped