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
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapReduceObservable
  2. Serializable
  3. Product
  4. Equals
  5. Observable
  6. Observable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 batchSize(batchSize: Int): MapReduceObservable[TResult]

    Sets the number of documents to return per batch.

    Sets the number of documents to return per batch.

    batchSize

    the batch size

    returns

    this

    Since

    2.7

  7. 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

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. 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

  10. 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

  11. 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

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. 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

  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. 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

  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. 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

  19. 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

  20. 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

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. 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

  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. 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

  27. 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

  28. 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

  29. 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
  30. 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.

  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. 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

  33. 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

  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. val wrapped: MapReduceIterable[TResult]

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