public class ReactiveMongoDatabaseImpl extends Object implements ReactiveMongoDatabase
Constructor and Description |
---|
ReactiveMongoDatabaseImpl(com.mongodb.reactivestreams.client.MongoDatabase database) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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 . |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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 . |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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 . |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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 . |
com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> |
aggregateAsPublisher(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 . |
<T> com.mongodb.reactivestreams.client.AggregatePublisher<T> |
aggregateAsPublisher(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 . |
com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> |
aggregateAsPublisher(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 . |
<T> com.mongodb.reactivestreams.client.AggregatePublisher<T> |
aggregateAsPublisher(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 . |
CompletionStage<Void> |
createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession,
String collectionName)
Create a new collection with the selected options
|
CompletionStage<Void> |
createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession,
String collectionName,
com.mongodb.client.model.CreateCollectionOptions options)
Create a new collection with the selected options
|
CompletionStage<Void> |
createCollection(String collectionName)
Create a new collection with the selected options
|
CompletionStage<Void> |
createCollection(String collectionName,
com.mongodb.client.model.CreateCollectionOptions options)
Create a new collection with the selected options
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<Void> |
drop()
Drops this database.
|
CompletionStage<Void> |
drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
Drops this database.
|
ReactiveMongoCollection<org.bson.Document> |
getCollection(String collectionName)
Gets a collection.
|
<T> ReactiveMongoCollection<T> |
getCollection(String collectionName,
Class<T> clazz)
Gets a collection, with a specific default document class.
|
String |
getName()
Gets the name of the database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> |
listCollectionNames()
Gets a stream of the names of all the collections in this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> |
listCollectionNames(com.mongodb.reactivestreams.client.ClientSession clientSession)
Gets a stream of the names of all the collections in this database.
|
org.reactivestreams.Publisher<String> |
listCollectionNamesAsPublisher()
Gets a stream of the names of all the collections in this database.
|
org.reactivestreams.Publisher<String> |
listCollectionNamesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Gets a stream of the names of all the collections in this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listCollections()
Finds all the collections in this database.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listCollections(Class<T> clazz)
Finds all the collections in this database.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listCollections(Class<T> clazz,
CollectionListOptions options)
Finds all the collections in this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession)
Finds all the collections in this database.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Finds all the collections in this database.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz,
CollectionListOptions options)
Finds all the collections in this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession,
CollectionListOptions options)
Finds all the collections in this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listCollections(CollectionListOptions options)
Finds all the collections in this database.
|
com.mongodb.reactivestreams.client.ListCollectionsPublisher<org.bson.Document> |
listCollectionsAsPublisher()
Finds all the collections in this database.
|
<T> com.mongodb.reactivestreams.client.ListCollectionsPublisher<T> |
listCollectionsAsPublisher(Class<T> clazz)
Finds all the collections in this database.
|
com.mongodb.reactivestreams.client.ListCollectionsPublisher<org.bson.Document> |
listCollectionsAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Finds all the collections in this database.
|
<T> com.mongodb.reactivestreams.client.ListCollectionsPublisher<T> |
listCollectionsAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Finds all the collections in this database.
|
CompletionStage<org.bson.Document> |
runCommand(org.bson.conversions.Bson command)
Executes command in the context of the current database.
|
<T> CompletionStage<T> |
runCommand(org.bson.conversions.Bson command,
Class<T> clazz)
Executes command in the context of the current database.
|
CompletionStage<org.bson.Document> |
runCommand(org.bson.conversions.Bson command,
com.mongodb.ReadPreference readPreference)
Executes command in the context of the current database.
|
<T> CompletionStage<T> |
runCommand(org.bson.conversions.Bson command,
com.mongodb.ReadPreference readPreference,
Class<T> clazz)
Executes command in the context of the current database.
|
CompletionStage<org.bson.Document> |
runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson command)
Executes command in the context of the current database.
|
<T> CompletionStage<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.
|
CompletionStage<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> CompletionStage<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch()
Creates a change stream for this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(ChangeStreamOptions options)
Creates a change stream for this database.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(Class<T> clazz)
Creates a change stream for this database.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(Class<T> clazz,
ChangeStreamOptions options)
Creates a change stream for this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this database.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher()
Creates a change stream for this database.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(Class<T> clazz)
Creates a change stream for this database.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this database.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Creates a change stream for this database.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this database.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz)
Creates a change stream for this database.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this database.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz)
Creates a change stream for this database.
|
ReactiveMongoDatabaseImpl(com.mongodb.reactivestreams.client.MongoDatabase database)
public String getName()
ReactiveMongoDatabase
getName
in interface ReactiveMongoDatabase
public ReactiveMongoCollection<org.bson.Document> getCollection(String collectionName)
ReactiveMongoDatabase
getCollection
in interface ReactiveMongoDatabase
collectionName
- the name of the collection to returnpublic <T> ReactiveMongoCollection<T> getCollection(String collectionName, Class<T> clazz)
ReactiveMongoDatabase
getCollection
in interface ReactiveMongoDatabase
T
- the type of the class to use instead of Document
.collectionName
- the name of the collection to returnclazz
- the default class to cast any documents returned from the database into.public CompletionStage<org.bson.Document> runCommand(org.bson.conversions.Bson command)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
command
- the command to be runpublic CompletionStage<org.bson.Document> runCommand(org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
command
- the command to be runreadPreference
- the ReadPreference
to be used when executing the commandpublic <T> CompletionStage<T> runCommand(org.bson.conversions.Bson command, Class<T> clazz)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
T
- the type of the class to use instead of Document
.command
- the command to be runclazz
- the default class to cast any documents returned from the database into.public <T> CompletionStage<T> runCommand(org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference, Class<T> clazz)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
T
- the type of the class to use instead of Document
.command
- the command to be runreadPreference
- the ReadPreference
to be used when executing the commandclazz
- the default class to cast any documents returned from the database into.public CompletionStage<org.bson.Document> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationcommand
- the command to be runpublic CompletionStage<org.bson.Document> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationcommand
- the command to be runreadPreference
- the ReadPreference
to be used when executing the commandpublic <T> CompletionStage<T> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, Class<T> clazz)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
T
- the type of the class to use instead of Document
.clientSession
- the client session with which to associate this operationcommand
- the command to be runclazz
- the default class to cast any documents returned from the database into.public <T> CompletionStage<T> runCommand(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson command, com.mongodb.ReadPreference readPreference, Class<T> clazz)
ReactiveMongoDatabase
runCommand
in interface ReactiveMongoDatabase
T
- the type of the class to use instead of Document
.clientSession
- the client session with which to associate this operationcommand
- the command to be runreadPreference
- the ReadPreference
to be used when executing the commandclazz
- the default class to cast any documents returned from the database into.public CompletionStage<Void> drop()
ReactiveMongoDatabase
drop
in interface ReactiveMongoDatabase
public CompletionStage<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
drop
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic org.reactivestreams.Publisher<String> listCollectionNamesAsPublisher()
ReactiveMongoDatabase
listCollectionNamesAsPublisher
in interface ReactiveMongoDatabase
public org.reactivestreams.Publisher<String> listCollectionNamesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
listCollectionNamesAsPublisher
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic com.mongodb.reactivestreams.client.ListCollectionsPublisher<org.bson.Document> listCollectionsAsPublisher()
ReactiveMongoDatabase
listCollectionsAsPublisher
in interface ReactiveMongoDatabase
public <T> com.mongodb.reactivestreams.client.ListCollectionsPublisher<T> listCollectionsAsPublisher(Class<T> clazz)
ReactiveMongoDatabase
listCollectionsAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ListCollectionsPublisher<org.bson.Document> listCollectionsAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
listCollectionsAsPublisher
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic <T> com.mongodb.reactivestreams.client.ListCollectionsPublisher<T> listCollectionsAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoDatabase
listCollectionsAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> listCollectionNames()
ReactiveMongoDatabase
listCollectionNames
in interface ReactiveMongoDatabase
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> listCollectionNames(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
listCollectionNames
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listCollections()
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listCollections(CollectionListOptions options)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
options
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listCollections(Class<T> clazz)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listCollections(Class<T> clazz, CollectionListOptions options)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, CollectionListOptions options)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationoptions
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listCollections(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, CollectionListOptions options)
ReactiveMongoDatabase
listCollections
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream optionspublic CompletionStage<Void> createCollection(String collectionName)
ReactiveMongoDatabase
createCollection
in interface ReactiveMongoDatabase
collectionName
- the name for the new collection to createpublic CompletionStage<Void> createCollection(String collectionName, com.mongodb.client.model.CreateCollectionOptions options)
ReactiveMongoDatabase
createCollection
in interface ReactiveMongoDatabase
collectionName
- the name for the new collection to createoptions
- various options for creating the collectionpublic CompletionStage<Void> createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, String collectionName)
ReactiveMongoDatabase
createCollection
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationcollectionName
- the name for the new collection to createpublic CompletionStage<Void> createCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, String collectionName, com.mongodb.client.model.CreateCollectionOptions options)
ReactiveMongoDatabase
createCollection
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationcollectionName
- the name for the new collection to createoptions
- various options for creating the collectionpublic CompletionStage<Void> createView(String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
createView
in interface ReactiveMongoDatabase
viewName
- the name of the view to createviewOn
- the backing collection/view for the viewpipeline
- the pipeline that defines the viewpublic CompletionStage<Void> createView(String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline, com.mongodb.client.model.CreateViewOptions createViewOptions)
ReactiveMongoDatabase
createView
in interface ReactiveMongoDatabase
viewName
- the name of the view to createviewOn
- the backing collection/view for the viewpipeline
- the pipeline that defines the viewcreateViewOptions
- various options for creating the viewpublic CompletionStage<Void> createView(com.mongodb.reactivestreams.client.ClientSession clientSession, String viewName, String viewOn, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
createView
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationviewName
- the name of the view to createviewOn
- the backing collection/view for the viewpipeline
- the pipeline that defines the viewpublic CompletionStage<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)
ReactiveMongoDatabase
createView
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationviewName
- the name of the view to createviewOn
- the backing collection/view for the viewpipeline
- the pipeline that defines the viewcreateViewOptions
- various options for creating the viewpublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher()
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
public <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(Class<T> clazz)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
pipeline
- the aggregation pipeline to apply to the change streampublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterablepipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streampublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
watchAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
options
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(Class<T> clazz)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
pipeline
- the aggregation pipeline to apply to the change streampublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
pipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterablepipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterablepipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationoptions
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streampublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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)
ReactiveMongoDatabase
watch
in interface ReactiveMongoDatabase
T
- the target document type of the iterableclientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregateAsPublisher
in interface ReactiveMongoDatabase
pipeline
- the aggregation pipelinepublic <T> com.mongodb.reactivestreams.client.AggregatePublisher<T> aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregateAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterable.pipeline
- the aggregation pipelineclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregateAsPublisher
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipelinepublic <T> com.mongodb.reactivestreams.client.AggregatePublisher<T> aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregateAsPublisher
in interface ReactiveMongoDatabase
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipelineclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
pipeline
- the aggregation pipelinepublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
pipeline
- the aggregation pipelineoptions
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
T
- the target document type of the iterable.pipeline
- the aggregation pipelineclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, AggregateOptions options)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
T
- the target document type of the iterable.pipeline
- the aggregation pipelineclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipelinepublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipelineoptions
- the stream optionspublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipelineclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, AggregateOptions options)
ReactiveMongoDatabase
$currentOp
and $listLocalSessions
.aggregate
in interface ReactiveMongoDatabase
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipelineclazz
- the class to decode each document intooptions
- the stream optionsCopyright © 2019 JBoss by Red Hat. All rights reserved.