Packages

c

org.mongodb.scala

MapReduceObservable

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

Observable for map reduce.

Linear Supertypes
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])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def action(action: MapReduceAction): MapReduceObservable[TResult]

    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
    Definition Classes
    Any
  6. def bypassDocumentValidation(bypassDocumentValidation: Boolean): MapReduceObservable[TResult]

    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
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def collation(collation: Collation): MapReduceObservable[TResult]

    Sets the collation options

    Sets the collation options

    collation

    the collation options to use

    returns

    this

    Since

    1.2

    Note

    A null value represents the server default.

    ,

    Requires MongoDB 3.4 or greater

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

    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

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

    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

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def filter(filter: Bson): MapReduceObservable[TResult]

    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

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

    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

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def jsMode(jsMode: Boolean): MapReduceObservable[TResult]

    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

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

    Sets the limit to apply.

    Sets the limit to apply.

    Limit

    limit

    the limit, which may be null

    returns

    this

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

    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

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def nonAtomic(nonAtomic: Boolean): MapReduceObservable[TResult]

    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

  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def scope(scope: Bson): MapReduceObservable[TResult]

    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

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

    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

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

    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

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

    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
  28. def subscribe(observer: com.mongodb.async.client.Observer[_ >: TResult]): Unit

    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.

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toCollection(): Observable[Completed]

    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

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

    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

  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  35. val wrapped: MapReduceIterable[TResult]

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