Class ReactiveMongoDatabaseImpl

java.lang.Object
io.quarkus.mongodb.impl.ReactiveMongoDatabaseImpl
All Implemented Interfaces:
ReactiveMongoDatabase

public class ReactiveMongoDatabaseImpl extends Object implements ReactiveMongoDatabase
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReactiveMongoDatabaseImpl(com.mongodb.reactivestreams.client.MongoDatabase database)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Multi<org.bson.Document>
    aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    io.smallrye.mutiny.Multi<org.bson.Document>
    aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    <T> io.smallrye.mutiny.Multi<T>
    aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    <T> io.smallrye.mutiny.Multi<T>
    aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, AggregateOptions options)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    io.smallrye.mutiny.Multi<org.bson.Document>
    aggregate(List<? extends org.bson.conversions.Bson> pipeline)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    io.smallrye.mutiny.Multi<org.bson.Document>
    aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    <T> io.smallrye.mutiny.Multi<T>
    aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    <T> io.smallrye.mutiny.Multi<T>
    aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, AggregateOptions options)
    Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
    io.smallrye.mutiny.Uni<Void>
    createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, String collectionName)
    Create a new collection with the selected options
    io.smallrye.mutiny.Uni<Void>
    createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, String collectionName, com.mongodb.client.model.CreateCollectionOptions options)
    Create a new collection with the selected options
    io.smallrye.mutiny.Uni<Void>
    createCollection(String collectionName)
    Create a new collection with the selected options
    io.smallrye.mutiny.Uni<Void>
    createCollection(String collectionName, com.mongodb.client.model.CreateCollectionOptions options)
    Create a new collection with the selected options
    io.smallrye.mutiny.Uni<Void>
    createView(com.mongodb.reactivestreams.client.ClientSession clientSession, String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline)
    Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
    io.smallrye.mutiny.Uni<Void>
    createView(com.mongodb.reactivestreams.client.ClientSession clientSession, String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline, com.mongodb.client.model.CreateViewOptions createViewOptions)
    Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
    io.smallrye.mutiny.Uni<Void>
    createView(String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline)
    Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
    io.smallrye.mutiny.Uni<Void>
    createView(String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline, com.mongodb.client.model.CreateViewOptions createViewOptions)
    Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
    io.smallrye.mutiny.Uni<Void>
    Drops this database.
    io.smallrye.mutiny.Uni<Void>
    drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
    Drops this database.
    ReactiveMongoCollection<org.bson.Document>
    getCollection(String collectionName)
    Gets a collection.
    getCollection(String collectionName, Class<T> clazz)
    Gets a collection, with a specific default document class.
    Gets the name of the database.
    io.smallrye.mutiny.Multi<String>
    Gets a stream of the names of all the collections in this database.
    io.smallrye.mutiny.Multi<String>
    listCollectionNames(com.mongodb.reactivestreams.client.ClientSession clientSession)
    Gets a stream of the names of all the collections in this database.
    io.smallrye.mutiny.Multi<org.bson.Document>
    Finds all the collections in this database.
    io.smallrye.mutiny.Multi<org.bson.Document>
    listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession)
    Finds all the collections in this database.
    io.smallrye.mutiny.Multi<org.bson.Document>
    listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, CollectionListOptions options)
    Finds all the collections in this database.
    <T> io.smallrye.mutiny.Multi<T>
    listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
    Finds all the collections in this database.
    <T> io.smallrye.mutiny.Multi<T>
    listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, CollectionListOptions options)
    Finds all the collections in this database.
    io.smallrye.mutiny.Multi<org.bson.Document>
    Finds all the collections in this database.
    <T> io.smallrye.mutiny.Multi<T>
    Finds all the collections in this database.
    <T> io.smallrye.mutiny.Multi<T>
    Finds all the collections in this database.
    io.smallrye.mutiny.Uni<org.bson.Document>
    runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command)
    Executes command in the context of the current database.
    io.smallrye.mutiny.Uni<org.bson.Document>
    runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference)
    Executes command in the context of the current database.
    <T> io.smallrye.mutiny.Uni<T>
    runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference, Class<T> clazz)
    Executes command in the context of the current database.
    <T> io.smallrye.mutiny.Uni<T>
    runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, Class<T> clazz)
    Executes command in the context of the current database.
    io.smallrye.mutiny.Uni<org.bson.Document>
    runCommand(org.bson.conversions.Bson command)
    Executes command in the context of the current database.
    io.smallrye.mutiny.Uni<org.bson.Document>
    runCommand(org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference)
    Executes command in the context of the current database.
    <T> io.smallrye.mutiny.Uni<T>
    runCommand(org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference, Class<T> clazz)
    Executes command in the context of the current database.
    <T> io.smallrye.mutiny.Uni<T>
    runCommand(org.bson.conversions.Bson command, Class<T> clazz)
    Executes command in the context of the current database.
    com.mongodb.reactivestreams.client.MongoDatabase
     
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, ChangeStreamOptions options)
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(Class<T> clazz)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(Class<T> clazz, ChangeStreamOptions options)
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    watch(List<? extends org.bson.conversions.Bson> pipeline)
    Creates a change stream for this database.
    io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>>
    watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
    Creates a change stream for this database.
    <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>>
    watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
    Creates a change stream for this database.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReactiveMongoDatabaseImpl

      ReactiveMongoDatabaseImpl(com.mongodb.reactivestreams.client.MongoDatabase database)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ReactiveMongoDatabase
      Gets the name of the database.
      Specified by:
      getName in interface ReactiveMongoDatabase
      Returns:
      the database name
    • getCollection

      public ReactiveMongoCollection<org.bson.Document> getCollection(String collectionName)
      Description copied from interface: ReactiveMongoDatabase
      Gets a collection.
      Specified by:
      getCollection in interface ReactiveMongoDatabase
      Parameters:
      collectionName - the name of the collection to return
      Returns:
      the collection
    • getCollection

      public <T> ReactiveMongoCollection<T> getCollection(String collectionName, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Gets a collection, with a specific default document class.
      Specified by:
      getCollection in interface ReactiveMongoDatabase
      Type Parameters:
      T - the type of the class to use instead of Document.
      Parameters:
      collectionName - the name of the collection to return
      clazz - the default class to cast any documents returned from the database into.
      Returns:
      the collection
    • runCommand

      public io.smallrye.mutiny.Uni<org.bson.Document> runCommand(org.bson.conversions.Bson command)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Parameters:
      command - the command to be run
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public io.smallrye.mutiny.Uni<org.bson.Document> runCommand(org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Parameters:
      command - the command to be run
      readPreference - the ReadPreference to be used when executing the command
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public <T> io.smallrye.mutiny.Uni<T> runCommand(org.bson.conversions.Bson command, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Type Parameters:
      T - the type of the class to use instead of Document.
      Parameters:
      command - the command to be run
      clazz - the default class to cast any documents returned from the database into.
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public <T> io.smallrye.mutiny.Uni<T> runCommand(org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Type Parameters:
      T - the type of the class to use instead of Document.
      Parameters:
      command - the command to be run
      readPreference - the ReadPreference to be used when executing the command
      clazz - the default class to cast any documents returned from the database into.
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public io.smallrye.mutiny.Uni<org.bson.Document> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      command - the command to be run
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public io.smallrye.mutiny.Uni<org.bson.Document> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      command - the command to be run
      readPreference - the ReadPreference to be used when executing the command
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public <T> io.smallrye.mutiny.Uni<T> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Type Parameters:
      T - the type of the class to use instead of Document.
      Parameters:
      clientSession - the client session with which to associate this operation
      command - the command to be run
      clazz - the default class to cast any documents returned from the database into.
      Returns:
      a Uni emitting the command result once completed
    • runCommand

      public <T> io.smallrye.mutiny.Uni<T> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Executes command in the context of the current database.
      Specified by:
      runCommand in interface ReactiveMongoDatabase
      Type Parameters:
      T - the type of the class to use instead of Document.
      Parameters:
      clientSession - the client session with which to associate this operation
      command - the command to be run
      readPreference - the ReadPreference to be used when executing the command
      clazz - the default class to cast any documents returned from the database into.
      Returns:
      a Uni emitting the command result once completed
    • drop

      public io.smallrye.mutiny.Uni<Void> drop()
      Description copied from interface: ReactiveMongoDatabase
      Drops this database.
      Specified by:
      drop in interface ReactiveMongoDatabase
      Returns:
      a Uni emitting null when the database has been dropped
    • drop

      public io.smallrye.mutiny.Uni<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
      Description copied from interface: ReactiveMongoDatabase
      Drops this database.
      Specified by:
      drop in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      Returns:
      a Uni emitting null when the database has been dropped
    • listCollectionNames

      public io.smallrye.mutiny.Multi<String> listCollectionNames()
      Description copied from interface: ReactiveMongoDatabase
      Gets a stream of the names of all the collections in this database.
      Specified by:
      listCollectionNames in interface ReactiveMongoDatabase
      Returns:
      a stream with all the names of all the collections in this database
    • listCollectionNames

      public io.smallrye.mutiny.Multi<String> listCollectionNames(com.mongodb.reactivestreams.client.ClientSession clientSession)
      Description copied from interface: ReactiveMongoDatabase
      Gets a stream of the names of all the collections in this database.
      Specified by:
      listCollectionNames in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      Returns:
      a stream with all the names of all the collections in this database
    • listCollections

      public io.smallrye.mutiny.Multi<org.bson.Document> listCollections()
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Returns:
      stream of collection descriptor
    • listCollections

      public io.smallrye.mutiny.Multi<org.bson.Document> listCollections(CollectionListOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Parameters:
      options - the stream options
      Returns:
      stream of collection descriptor
    • listCollections

      public <T> io.smallrye.mutiny.Multi<T> listCollections(Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clazz - the class to decode each document into
      Returns:
      stream of collection descriptor
    • listCollections

      public <T> io.smallrye.mutiny.Multi<T> listCollections(Class<T> clazz, CollectionListOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      stream of collection descriptor
    • listCollections

      public io.smallrye.mutiny.Multi<org.bson.Document> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      Returns:
      stream of collection descriptor
    • listCollections

      public io.smallrye.mutiny.Multi<org.bson.Document> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, CollectionListOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      options - the stream options
      Returns:
      stream of collection descriptor
    • listCollections

      public <T> io.smallrye.mutiny.Multi<T> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clientSession - the client session with which to associate this operation
      clazz - the class to decode each document into
      Returns:
      stream of collection descriptor
    • listCollections

      public <T> io.smallrye.mutiny.Multi<T> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, CollectionListOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Finds all the collections in this database.
      Specified by:
      listCollections in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clientSession - the client session with which to associate this operation
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      stream of collection descriptor
    • createCollection

      public io.smallrye.mutiny.Uni<Void> createCollection(String collectionName)
      Description copied from interface: ReactiveMongoDatabase
      Create a new collection with the selected options
      Specified by:
      createCollection in interface ReactiveMongoDatabase
      Parameters:
      collectionName - the name for the new collection to create
      Returns:
      a Uni emitting null when the operation has completed
    • createCollection

      public io.smallrye.mutiny.Uni<Void> createCollection(String collectionName, com.mongodb.client.model.CreateCollectionOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Create a new collection with the selected options
      Specified by:
      createCollection in interface ReactiveMongoDatabase
      Parameters:
      collectionName - the name for the new collection to create
      options - various options for creating the collection
      Returns:
      a Uni emitting null when the operation has completed
    • createCollection

      public io.smallrye.mutiny.Uni<Void> createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, String collectionName)
      Description copied from interface: ReactiveMongoDatabase
      Create a new collection with the selected options
      Specified by:
      createCollection in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      collectionName - the name for the new collection to create
      Returns:
      a Uni emitting null when the operation has completed
    • createCollection

      public io.smallrye.mutiny.Uni<Void> createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, String collectionName, com.mongodb.client.model.CreateCollectionOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Create a new collection with the selected options
      Specified by:
      createCollection in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      collectionName - the name for the new collection to create
      options - various options for creating the collection
      Returns:
      a Uni emitting null when the operation has completed
    • createView

      public io.smallrye.mutiny.Uni<Void> createView(String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline)
      Description copied from interface: ReactiveMongoDatabase
      Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
      Specified by:
      createView in interface ReactiveMongoDatabase
      Parameters:
      viewName - the name of the view to create
      viewOn - the backing collection/view for the view
      pipeline - the pipeline that defines the view
      Returns:
      a Uni emitting null when the operation has completed
    • createView

      public io.smallrye.mutiny.Uni<Void> createView(String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline, com.mongodb.client.model.CreateViewOptions createViewOptions)
      Description copied from interface: ReactiveMongoDatabase
      Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
      Specified by:
      createView in interface ReactiveMongoDatabase
      Parameters:
      viewName - the name of the view to create
      viewOn - the backing collection/view for the view
      pipeline - the pipeline that defines the view
      createViewOptions - various options for creating the view
      Returns:
      a Uni emitting null when the operation has completed
    • createView

      public io.smallrye.mutiny.Uni<Void> createView(com.mongodb.reactivestreams.client.ClientSession clientSession, String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline)
      Description copied from interface: ReactiveMongoDatabase
      Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
      Specified by:
      createView in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      viewName - the name of the view to create
      viewOn - the backing collection/view for the view
      pipeline - the pipeline that defines the view
      Returns:
      a Uni emitting null when the operation has completed
    • createView

      public io.smallrye.mutiny.Uni<Void> createView(com.mongodb.reactivestreams.client.ClientSession clientSession, String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline, com.mongodb.client.model.CreateViewOptions createViewOptions)
      Description copied from interface: ReactiveMongoDatabase
      Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
      Specified by:
      createView in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      viewName - the name of the view to create
      viewOn - the backing collection/view for the view
      pipeline - the pipeline that defines the view
      createViewOptions - various options for creating the view
      Returns:
      a Uni emitting null when the operation has completed
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clazz - the class to decode each document into
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(Class<T> clazz, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      pipeline - the aggregation pipeline to apply to the change stream
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      pipeline - the aggregation pipeline to apply to the change stream
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      pipeline - the aggregation pipeline to apply to the change stream
      clazz - the class to decode each document into
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      pipeline - the aggregation pipeline to apply to the change stream
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clientSession - the client session with which to associate this operation
      clazz - the class to decode each document into
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clientSession - the client session with which to associate this operation
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline to apply to the change stream
      Returns:
      the stream of change events.
    • watch

      public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline to apply to the change stream
      options - the stream options
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline to apply to the change stream
      clazz - the class to decode each document into
      Returns:
      the stream of change events.
    • watch

      public <T> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Creates a change stream for this database.
      Specified by:
      watch in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline to apply to the change stream
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      the stream of change events.
    • aggregate

      public io.smallrye.mutiny.Multi<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Parameters:
      pipeline - the aggregation pipeline
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public io.smallrye.mutiny.Multi<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Parameters:
      pipeline - the aggregation pipeline
      options - the stream options
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public <T> io.smallrye.mutiny.Multi<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable.
      Parameters:
      pipeline - the aggregation pipeline
      clazz - the class to decode each document into
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public <T> io.smallrye.mutiny.Multi<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, AggregateOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable.
      Parameters:
      pipeline - the aggregation pipeline
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public io.smallrye.mutiny.Multi<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public io.smallrye.mutiny.Multi<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline
      options - the stream options
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public <T> io.smallrye.mutiny.Multi<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable.
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline
      clazz - the class to decode each document into
      Returns:
      a stream of the result of the aggregation operation
    • aggregate

      public <T> io.smallrye.mutiny.Multi<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, AggregateOptions options)
      Description copied from interface: ReactiveMongoDatabase
      Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as $currentOp and $listLocalSessions.
      Specified by:
      aggregate in interface ReactiveMongoDatabase
      Type Parameters:
      T - the target document type of the iterable.
      Parameters:
      clientSession - the client session with which to associate this operation
      pipeline - the aggregation pipeline
      clazz - the class to decode each document into
      options - the stream options
      Returns:
      a stream of the result of the aggregation operation
    • unwrap

      public com.mongodb.reactivestreams.client.MongoDatabase unwrap()
      Specified by:
      unwrap in interface ReactiveMongoDatabase
      Returns:
      the underlying database.