Packages

class MongoSink[Doc] extends MongoSinkImpl

Source
MongoSink.scala
Linear Supertypes
MongoSinkImpl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoSink
  2. MongoSinkImpl
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MongoSink(collection: MongoCollection[Doc])

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def deleteMany(deleteOptions: DeleteOptions = DefaultDeleteOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Bson, Unit]

    Provides a sink implementation for MongoSingle.deleteMany that per each element removes all documents from the collection that matched the given query filter.

    Provides a sink implementation for MongoSingle.deleteMany that per each element removes all documents from the collection that matched the given query filter.

    deleteOptions

    the options to apply to the delete operation, it will use default ones in case it is not passed by the user.

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects query filters to apply the delete many operations.

    See also

    com.mongodb.client.model.Filters

  7. def deleteMany[Doc](collection: MongoCollection[Doc], deleteOptions: DeleteOptions, retryStrategy: RetryStrategy): Consumer[Bson, Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  8. def deleteManyPar(deleteOptions: DeleteOptions = DefaultDeleteOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[Bson], Unit]

    Provides a sink implementation for MongoSingle.deleteMany that per each element removes all documents from the collection that matched the given query filter.

    Provides a sink implementation for MongoSingle.deleteMany that per each element removes all documents from the collection that matched the given query filter. The sink requires a sequence of elements, whereas elements from a single sequence will be executed in parallel as a batch operation.

    deleteOptions

    the options to apply to the delete operation, it will use default ones in case it is not passed by the user.

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects query filter sequences to apply the delete many operations.

    See also

    com.mongodb.client.model.Filters

  9. def deleteManyPar[Doc](collection: MongoCollection[Doc], deleteOptions: DeleteOptions, retryStrategy: RetryStrategy): Consumer[Seq[Bson], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  10. def deleteOne(deleteOptions: DeleteOptions = DefaultDeleteOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Bson, Unit]

    Provides a sink implementation for MongoSingle.deleteOne that for each incoming element will remove at most one document from the collection that matches the given filter.

    Provides a sink implementation for MongoSingle.deleteOne that for each incoming element will remove at most one document from the collection that matches the given filter.

    deleteOptions

    the options to apply to all the delete operations, it will use default ones in case it is not passed by the user

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects query filters to apply the delete operations.

    See also

    com.mongodb.client.model.Filters and com.mongodb.client.model.Updates

  11. def deleteOne[Doc](collection: MongoCollection[Doc], deleteOptions: DeleteOptions, retryStrategy: RetryStrategy): Consumer[Bson, Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  12. def deleteOnePar(deleteOptions: DeleteOptions = DefaultDeleteOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[Bson], Unit]

    Provides a sink implementation for MongoSingle.deleteOne that consumes a sequence of elements.

    Provides a sink implementation for MongoSingle.deleteOne that consumes a sequence of elements. The elements inside a single sequence will be executed in parallel as a batch operation. For each incoming element will remove at most one document from the collection that matches the given filter.

    deleteOptions

    the options to apply to all the delete operations, it will use default ones in case it is not passed by the user

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects sequences of query filters to apply the delete operations.

    See also

    com.mongodb.client.model.Filters and com.mongodb.client.model.Updates

  13. def deleteOnePar[Doc](collection: MongoCollection[Doc], deleteOptions: DeleteOptions, retryStrategy: RetryStrategy): Consumer[Seq[Bson], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def insertMany(insertManyOptions: InsertManyOptions = DefaultInsertManyOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[Doc], Unit]

    Provides a sink implementation for MongoSingle.insertMany that expects batches of documents to be inserted at once.

    Provides a sink implementation for MongoSingle.insertMany that expects batches of documents to be inserted at once. If the documents is missing an identifier, the driver should generate one.

    insertManyOptions

    the options to apply to the insert operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects documents in batches of type Doc to be inserted.

  20. def insertMany[Doc](collection: MongoCollection[Doc], insertManyOptions: InsertManyOptions, retryStrategy: RetryStrategy): Consumer[Seq[Doc], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  21. def insertOne(insertOneOptions: InsertOneOptions = DefaultInsertOneOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Doc, Unit]

    Provides a sink implementation for MongoSingle.insertOne that expects documents to be passed and inserts them one by one.

    Provides a sink implementation for MongoSingle.insertOne that expects documents to be passed and inserts them one by one. If the document is missing an identifier, the driver should generate one.

    insertOneOptions

    the options to apply all the insert operations

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects single documents of type Doc to be inserted.

  22. def insertOne[Doc](collection: MongoCollection[Doc], insertOneOptions: InsertOneOptions, retryStrategy: RetryStrategy): Consumer[Doc, Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  23. def insertOnePar(insertOneOptions: InsertOneOptions = DefaultInsertOneOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[Doc], Unit]

    Provides a sink implementation for MongoSingle.insertOne that expects sequences of documents to be passed and inserts all documents from a single sequence in parallel as a batch operation.

    Provides a sink implementation for MongoSingle.insertOne that expects sequences of documents to be passed and inserts all documents from a single sequence in parallel as a batch operation. If the document is missing an identifier, the driver should generate one.

    insertOneOptions

    the options to apply all the insert operations

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects documents in batches of type Doc to be inserted.

  24. def insertOnePar[Doc](collection: MongoCollection[Doc], insertOneOptions: InsertOneOptions, retryStrategy: RetryStrategy): Consumer[Seq[Doc], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def replaceOne(replaceOptions: ReplaceOptions = DefaultReplaceOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[(Bson, Doc), Unit]

    Provides a sink implementation for MongoSingle.replaceOne that expects Tuple2 of a filter and the document replacement that for each element will execute the replace operation to a single filtered element.

    Provides a sink implementation for MongoSingle.replaceOne that expects Tuple2 of a filter and the document replacement that for each element will execute the replace operation to a single filtered element.

    replaceOptions

    the options to apply to the replace operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects a Tuple2 of a filter and a document of type Doc to be replaced.

    See also

    com.mongodb.client.model.Filters If the documents is missing an identifier, the driver should generate one.

  30. def replaceOne[Doc](collection: MongoCollection[Doc], replaceOptions: ReplaceOptions, retryStrategy: RetryStrategy): Consumer[(Bson, Doc), Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  31. def replaceOnePar(replaceOptions: ReplaceOptions = DefaultReplaceOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[(Bson, Doc)], Unit]

    Provides a sink implementation for MongoSingle.replaceOne that expects sequences of Tuple2 of a filter and the document replacement that for each element will execute the replace operation to a single filtered element.

    Provides a sink implementation for MongoSingle.replaceOne that expects sequences of Tuple2 of a filter and the document replacement that for each element will execute the replace operation to a single filtered element. All elements inside a single sequence will be executed in parallel as a batch operation.

    replaceOptions

    the options to apply to the replace operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that expects Tuple2 of filters and documents in batches of type Doc to be replaced.

    See also

    com.mongodb.client.model.Filters If the documents is missing an identifier, the driver should generate one.

  32. def replaceOnePar[Doc](collection: MongoCollection[Doc], replaceOptions: ReplaceOptions, retryStrategy: RetryStrategy): Consumer[Seq[(Bson, Doc)], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def updateMany(updateOptions: UpdateOptions = DefaultUpdateOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[(Bson, Bson), Unit]

    Provides a sink implementation for MongoSingle.updateOne that expects Tuple2 of a filter and update that will be executed against all the filtered elements.

    Provides a sink implementation for MongoSingle.updateOne that expects Tuple2 of a filter and update that will be executed against all the filtered elements.

    updateOptions

    the options to apply to the update operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that per each element expects Tuple2 of a filter and the update in form of Bson.

    See also

    com.mongodb.client.model.Filters and com.mongodb.client.model.Updates If the documents is missing an identifier, the driver should generate one.

  36. def updateMany[Doc](collection: MongoCollection[Doc], updateOptions: UpdateOptions, retryStrategy: RetryStrategy): Consumer[(Bson, Bson), Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  37. def updateManyPar(updateOptions: UpdateOptions = DefaultUpdateOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[(Bson, Bson)], Unit]

    Provides a sink implementation for MongoSingle.updateOne that expects sequences of Tuple2 of a filter and update that will be executed against all the filtered elements.

    Provides a sink implementation for MongoSingle.updateOne that expects sequences of Tuple2 of a filter and update that will be executed against all the filtered elements. All elements inside a single sequence will be executed in parallel as a batch operation.

    updateOptions

    the options to apply to the update operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that per each element expects a batch of Tuple2 of a filter and the update in form of Bson.

    See also

    com.mongodb.client.model.Filters and com.mongodb.client.model.Updates If the documents is missing an identifier, the driver should generate one.

  38. def updateManyPar[Doc](collection: MongoCollection[Doc], updateOptions: UpdateOptions, retryStrategy: RetryStrategy): Consumer[Seq[(Bson, Bson)], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  39. def updateOne(updateOptions: UpdateOptions = DefaultUpdateOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[(Bson, Bson), Unit]

    Provides a sink implementation for MongoSingle.updateOne that expects Tuple2 of a filter and a update that will be executed against the single filtered element.

    Provides a sink implementation for MongoSingle.updateOne that expects Tuple2 of a filter and a update that will be executed against the single filtered element.

    updateOptions

    the options to apply to the update operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that per each element expects a Tuple2 of a filter and the update in form of Bson.

    See also

    com.mongodb.client.model.Filters and com.mongodb.client.model.Updates If the documents is missing an identifier, the driver should generate one.

  40. def updateOne[Doc](collection: MongoCollection[Doc], updateOptions: UpdateOptions, retryStrategy: RetryStrategy): Consumer[(Bson, Bson), Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  41. def updateOnePar(updateOptions: UpdateOptions = DefaultUpdateOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Consumer[Seq[(Bson, Bson)], Unit]

    Provides a sink implementation for MongoSingle.updateOne that expects sequences of Tuple2 of a filter and a update that will be executed against the single filtered element.

    Provides a sink implementation for MongoSingle.updateOne that expects sequences of Tuple2 of a filter and a update that will be executed against the single filtered element. All elements inside a single sequence will be executed in parallel as a batch operation.

    updateOptions

    the options to apply to the update operation

    retryStrategy

    defines the amount of retries and backoff delays for failed requests.

    returns

    a Consumer that per each element expects a batch of Tuple2 of a filter and the update in form of Bson.

    See also

    com.mongodb.client.model.Filters and com.mongodb.client.model.Updates If the documents is missing an identifier, the driver should generate one.

  42. def updateOnePar[Doc](collection: MongoCollection[Doc], updateOptions: UpdateOptions, retryStrategy: RetryStrategy): Consumer[Seq[(Bson, Bson)], Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSinkImpl
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MongoSinkImpl

Inherited from AnyRef

Inherited from Any

Ungrouped