Packages

class MongoSingle[Doc] extends MongoSingleImpl

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

Instance Constructors

  1. new MongoSingle(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 createIndex(key: Bson, indexOptions: IndexOptions = DefaultIndexOptions): Task[Unit]

    Creates an index.

    Creates an index.

    key

    an object describing the index key(s), which may not be null.

    indexOptions

    the options for the index

    returns

    an empty Task or a failed one

  7. def createIndex[Doc](collection: MongoCollection[Doc], key: Bson, indexOptions: IndexOptions): Task[Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  8. def createIndexes(indexes: List[IndexModel], createIndexOptions: CreateIndexOptions = DefaultCreateIndexesOptions): Task[Unit]

    Create multiple indexes.

    Create multiple indexes.

    indexes

    the list of indexes

    createIndexOptions

    the options to use when creating indexes

    returns

    an empty Task or a failed one

    See also

    com.mongodb.client.model.IndexModel

  9. def createIndexes[Doc](collection: MongoCollection[Doc], indexes: List[IndexModel], createIndexOptions: CreateIndexOptions): Task[Unit]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  10. def deleteMany(filter: Bson, deleteOptions: DeleteOptions = DefaultDeleteOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[DeleteResult]

    Removes all documents from the collection that match the given query filter.

    Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.

    filter

    the query filter to apply the the delete 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 Task with an optional of DeleteResult, being by default DefaultDeleteResult, or a failed one with com.mongodb.MongoException.

    See also

    com.mongodb.client.model.Filters

  11. def deleteMany(filter: Bson): Task[DeleteResult]

    Removes all documents from the collection that match the given query filter.

    Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.

    filter

    the query filter to apply the the delete operation

    returns

    a Task with an optional DeleteResult, being by default DefaultDeleteResult, or a failed one with com.mongodb.MongoException.

  12. def deleteMany[Doc](collection: MongoCollection[Doc], filter: Bson, deleteOptions: DeleteOptions, retryStrategy: RetryStrategy): Task[DeleteResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  13. def deleteMany[Doc](collection: MongoCollection[Doc], filter: Bson): Task[DeleteResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  14. def deleteOne(filter: Bson, deleteOptions: DeleteOptions = DefaultDeleteOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[DeleteResult]

    Removes at most one document from the collection that matches the given filter with some delete options.

    Removes at most one document from the collection that matches the given filter with some delete options. If no documents match, the collection is not modified.

    filter

    the query filter to apply the the delete 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. by default no delay is applied.

    returns

    a Task with an optional DeleteResult, being by default DefaultDeleteResult, or a failed one with com.mongodb.MongoException.

    See also

    com.mongodb.client.model.Filters

  15. def deleteOne(filter: Bson): Task[DeleteResult]

    Removes at most one document from the collection that matches the given filter.

    Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.

    filter

    the query filter to apply the delete operation.

    returns

    a Task with a DeleteResult, being by default DefaultDeleteResult, or a failed one with com.mongodb.MongoException.

    See also

    com.mongodb.client.model.Filters

  16. def deleteOne[Doc](collection: MongoCollection[Doc], filter: Bson, deleteOptions: DeleteOptions, retryStrategy: RetryStrategy): Task[DeleteResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  17. def deleteOne[Doc](collection: MongoCollection[Doc], filter: Bson): Task[DeleteResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def insertMany(docs: Seq[Doc], insertManyOptions: InsertManyOptions = DefaultInsertManyOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[InsertManyResult]

    Inserts a batch of documents.

    Inserts a batch of documents. If the documents is missing an identifier, the driver should generate one.

    docs

    the documents to insert

    insertManyOptions

    the options to apply to the insert operation

    retryStrategy

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

    returns

    a Task with the InsertManyResult that will contain the successful inserted ids, being by default DefaultInsertManyResult, or a failed one with com.mongodb.DuplicateKeyException or com.mongodb.MongoException.

  24. def insertMany(docs: Seq[Doc]): Task[InsertManyResult]

    Inserts a batch of documents.

    Inserts a batch of documents. If the documents is missing an identifier, the driver should generate one.

    returns

    a Task with the InsertManyResult that will contain the successful inserted ids, being by default DefaultInsertManyResult. or a failed one with com.mongodb.DuplicateKeyException or com.mongodb.MongoException.

  25. def insertMany[Doc](collection: MongoCollection[Doc], docs: Seq[Doc], insertManyOptions: InsertManyOptions, retryStrategy: RetryStrategy): Task[InsertManyResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  26. def insertMany[Doc](collection: MongoCollection[Doc], docs: Seq[Doc]): Task[InsertManyResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  27. def insertOne(document: Doc, insertOneOptions: InsertOneOptions = DefaultInsertOneOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[InsertOneResult]

    Inserts the provided document.

    Inserts the provided document. If the document is missing an identifier, the driver should generate one.

    document

    the document to be inserted

    insertOneOptions

    the options to apply to the insert operation

    retryStrategy

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

    returns

    a Task with the InsertOneResult that will contain the inserted id in case the operation finished successfully, being by default DefaultInsertOneResult, or a failed one with com.mongodb.DuplicateKeyException or com.mongodb.MongoException.

  28. def insertOne(document: Doc): Task[InsertOneResult]

    Inserts the provided document.

    Inserts the provided document. If the document is missing an identifier, the driver should generate one.

    document

    the document to be inserted

    returns

    a Task with the InsertOneResult that will contain the inserted id in case the operation finished successfully, being by default DefaultInsertOneResult, or a failed one with com.mongodb.DuplicateKeyException or com.mongodb.MongoException.

  29. def insertOne[Doc](collection: MongoCollection[Doc], document: Doc, insertOneOptions: InsertOneOptions, retryStrategy: RetryStrategy): Task[InsertOneResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  30. def insertOne[Doc](collection: MongoCollection[Doc], document: Doc): Task[InsertOneResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def replaceOne(filter: Bson, replacement: Doc, replaceOptions: ReplaceOptions = DefaultReplaceOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[UpdateResult]

    Replace a document in the collection according to the specified arguments.

    Replace a document in the collection according to the specified arguments.

    filter

    the query filter to apply the the replace operation

    replacement

    the replacement document

    replaceOptions

    the options to apply to the replace operation

    retryStrategy

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

    returns

    a Task with a single UpdateResult, being by default DefaultUpdateResult, or a failed one.

    See also

    com.mongodb.client.model.Filters

  36. def replaceOne(filter: Bson, replacement: Doc): Task[UpdateResult]

    Replace a document in the collection according to the specified arguments.

    Replace a document in the collection according to the specified arguments.

    filter

    the query filter to apply the the replace operation

    replacement

    the replacement document

    returns

    a Task with an UpdateResult, being by default DefaultUpdateResult, or a failed one.

    See also

    com.mongodb.client.model.Filters

  37. def replaceOne[Doc](collection: MongoCollection[Doc], filter: Bson, replacement: Doc, replaceOptions: ReplaceOptions, retryStrategy: RetryStrategy): Task[UpdateResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  38. def replaceOne[Doc](collection: MongoCollection[Doc], filter: Bson, replacement: Doc): Task[UpdateResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. def updateMany(filter: Bson, update: Bson, updateOptions: UpdateOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[UpdateResult]

    Update all documents in the collection according to the specified arguments.

    Update all documents in the collection according to the specified arguments.

    filter

    a document describing the query filter, which may not be null.

    update

    a document describing the update, which may not be null, the update to apply must include only update operators

    updateOptions

    the options to apply to the update operation

    retryStrategy

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

    returns

    a Task with an optional UpdateResult being by default DefaultUpdateResult, or a failed one.

    See also

    com.mongodb.client.model.Filters

    com.mongodb.client.model.Updates

  42. def updateMany(filter: Bson, update: Bson): Task[UpdateResult]

    Update all documents in the collection according to the specified arguments.

    Update all documents in the collection according to the specified arguments.

    filter

    a document describing the query filter, which may not be null.

    update

    a document describing the update, which may not be null, the update to apply must include only update operators

    returns

    a Task with an optional UpdateResult, being by default DefaultUpdateResult, or a failed one.

    See also

    com.mongodb.client.model.Filters

    com.mongodb.client.model.Updates

  43. def updateMany[Doc](collection: MongoCollection[Doc], filter: Bson, update: Bson, updateOptions: UpdateOptions, retryStrategy: RetryStrategy): Task[UpdateResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  44. def updateMany[Doc](collection: MongoCollection[Doc], filter: Bson, update: Bson): Task[UpdateResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  45. def updateOne(filter: Bson, update: Bson, updateOptions: UpdateOptions = DefaultUpdateOptions, retryStrategy: RetryStrategy = DefaultRetryStrategy): Task[UpdateResult]

    Update a single document in the collection according to the specified arguments.

    Update a single document in the collection according to the specified arguments.

    filter

    a document describing the query filter, which may not be null.

    update

    a document describing the update, which may not be null, the update to apply must include only update operators

    updateOptions

    the options to apply to the update operation

    retryStrategy

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

    returns

    a Task with an optional UpdateResult, being by default DefaultUpdateResult, or a failed one.

    See also

    com.mongodb.client.model.Filters

    com.mongodb.client.model.Updates

  46. def updateOne(filter: Bson, update: Bson): Task[UpdateResult]

    Update a single document in the collection according to the specified arguments.

    Update a single document in the collection according to the specified arguments.

    filter

    a document describing the query filter, which may not be null.

    update

    a document describing the update, which may not be null, the update to apply must include only update operators

    returns

    a Task with a UpdateResult, being by default DefaultUpdateResult or a failed one.

    See also

    com.mongodb.client.model.Filters

    com.mongodb.client.model.Updates

  47. def updateOne[Doc](collection: MongoCollection[Doc], filter: Bson, update: Bson, updateOptions: UpdateOptions, retryStrategy: RetryStrategy): Task[UpdateResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  48. def updateOne[Doc](collection: MongoCollection[Doc], filter: Bson, update: Bson): Task[UpdateResult]
    Attributes
    protected[this]
    Definition Classes
    MongoSingleImpl
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MongoSingleImpl

Inherited from AnyRef

Inherited from Any

Ungrouped