Packages

object MongoSink extends Serializable

Companion object and factory for building a predefined MongoSink.

The current sinks available are (delete, insert, replace and update), all of them available for one and many elements at a time.

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

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[Doc](collection: MongoCollection[Doc], deleteOptions: DeleteOptions = DefaultDeleteOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[Bson, Unit]

    Provides Sink for MongoOp.deleteMany that per each element removes all documents from the collection that matched the given query filter.

    Provides Sink for MongoOp.deleteMany that per each element removes all documents from the collection that matched the given query filter.

    Doc

    the type of the collection

    collection

    the abstraction to work with a determined MongoDB Collection

    deleteOptions

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

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    returns

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

    See also

    com.mongodb.client.model.Filters

  7. def deleteOne[Doc](collection: MongoCollection[Doc], deleteOptions: DeleteOptions = DefaultDeleteOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[Bson, Unit]

    Provides Sink for MongoOp. that for each incoming element will remove at most one document from the collection that matches the given filter.

    Provides Sink for MongoOp. that for each incoming element will remove at most one document from the collection that matches the given filter.

    Doc

    the type of the collection

    collection

    the abstraction to work with a determined MongoDB Collection

    deleteOptions

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

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    returns

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

    See also

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

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def insertMany[Doc](collection: MongoCollection[Doc], insertManyOptions: InsertManyOptions = DefaultInsertManyOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[Seq[Doc], Unit]

    Provides a Sink for MongoOp.insertMany that expects batches of documents to be inserted at once.

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

    Doc

    the type of the collection

    collection

    the abstraction to work with the determined mongodb collection

    insertManyOptions

    the options to apply to the insert operation

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    returns

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

  14. def insertOne[Doc](collection: MongoCollection[Doc], insertOneOptions: InsertOneOptions = DefaultInsertOneOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[Doc, Unit]

    Provides a Sink for MongoOp.insertOne that expects documents to be passed and inserts them one by one.

    Provides a Sink for MongoOp.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.

    Doc

    the type of the collection and the incoming documents

    collection

    the abstraction to work with the determined mongodb collection

    insertOneOptions

    the options to apply all the insert operations

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    returns

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

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def replaceOne[Doc](collection: MongoCollection[Doc], replaceOptions: ReplaceOptions = DefaultReplaceOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[(Bson, Doc), Unit]

    Provides a Sink for MongoOp.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 for MongoOp.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.

    Doc

    the type of the collection

    collection

    the abstraction to work with the determined mongodb collection

    replaceOptions

    the options to apply to the replace operation

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    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.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def updateMany[Doc](collection: MongoCollection[Doc], updateOptions: UpdateOptions = DefaultUpdateOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[(Bson, Bson), Unit]

    Provides a Sink for MongoOp.updateOne that expects Tuple2 of a filter and update and that for each element will execute the update to all the filtered element.

    Provides a Sink for MongoOp.updateOne that expects Tuple2 of a filter and update and that for each element will execute the update to all the filtered element.

    Doc

    the type of the collection

    collection

    the abstraction to work with the determined mongodb collection

    updateOptions

    the options to apply to the update operation

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    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.

  23. def updateOne[Doc](collection: MongoCollection[Doc], updateOptions: UpdateOptions = DefaultUpdateOptions, retries: Int = 0, timeout: Option[FiniteDuration] = Option.empty, delayAfterFailure: Option[FiniteDuration] = Option.empty): Consumer[(Bson, Bson), Unit]

    Provides a Sink for MongoOp.updateOne that expects Tuple2 of a filter and update and that for each element will execute the update to a single filtered element.

    Provides a Sink for MongoOp.updateOne that expects Tuple2 of a filter and update and that for each element will execute the update to a single filtered element.

    Doc

    the type of the collection

    collection

    the abstraction to work with the determined mongodb collection

    updateOptions

    the options to apply to the update operation

    retries

    the number of times that each operation will be retried in case of unexpected failure, being zero retries by default

    timeout

    expected timeout that each operation is expected to be executed or else return a failure

    delayAfterFailure

    the delay set after the execution of a single operation failed.

    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.

  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped