AggregateIterable<TDocument> |
MongoCollection.aggregate(ClientSession clientSession,
List<? extends Bson> pipeline) |
Deprecated.
Aggregates documents according to the specified aggregation pipeline.
|
<TResult> AggregateIterable<TResult> |
MongoCollection.aggregate(ClientSession clientSession,
List<? extends Bson> pipeline,
Class<TResult> resultClass) |
Deprecated.
Aggregates documents according to the specified aggregation pipeline.
|
AggregateIterable<Document> |
MongoDatabase.aggregate(ClientSession clientSession,
List<? extends Bson> pipeline) |
Deprecated.
Runs an aggregation framework pipeline on the database for pipeline stages
that do not require an underlying collection, such as $currentOp and $listLocalSessions .
|
<TResult> AggregateIterable<TResult> |
MongoDatabase.aggregate(ClientSession clientSession,
List<? extends Bson> pipeline,
Class<TResult> resultClass) |
Deprecated.
Runs an aggregation framework pipeline on the database for pipeline stages
that do not require an underlying collection, such as $currentOp and $listLocalSessions .
|
void |
MongoCollection.bulkWrite(ClientSession clientSession,
List<? extends WriteModel<? extends TDocument>> requests,
SingleResultCallback<BulkWriteResult> callback) |
Deprecated.
Executes a mix of inserts, updates, replaces, and deletes.
|
void |
MongoCollection.bulkWrite(ClientSession clientSession,
List<? extends WriteModel<? extends TDocument>> requests,
BulkWriteOptions options,
SingleResultCallback<BulkWriteResult> callback) |
Deprecated.
Executes a mix of inserts, updates, replaces, and deletes.
|
void |
MongoCollection.count(ClientSession clientSession,
SingleResultCallback<Long> callback) |
Deprecated.
|
void |
MongoCollection.count(ClientSession clientSession,
Bson filter,
SingleResultCallback<Long> callback) |
Deprecated.
|
void |
MongoCollection.count(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<Long> callback) |
Deprecated.
|
void |
MongoCollection.countDocuments(ClientSession clientSession,
SingleResultCallback<Long> callback) |
Deprecated.
Counts the number of documents in the collection.
|
void |
MongoCollection.countDocuments(ClientSession clientSession,
Bson filter,
SingleResultCallback<Long> callback) |
Deprecated.
Counts the number of documents in the collection according to the given options.
|
void |
MongoCollection.countDocuments(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<Long> callback) |
Deprecated.
Counts the number of documents in the collection according to the given options.
|
void |
MongoDatabase.createCollection(ClientSession clientSession,
String collectionName,
SingleResultCallback<Void> callback) |
Deprecated.
Create a new collection with the given name.
|
void |
MongoDatabase.createCollection(ClientSession clientSession,
String collectionName,
CreateCollectionOptions options,
SingleResultCallback<Void> callback) |
Deprecated.
Create a new collection with the selected options
|
void |
MongoCollection.createIndex(ClientSession clientSession,
Bson key,
SingleResultCallback<String> callback) |
Deprecated.
Creates an index.
|
void |
MongoCollection.createIndex(ClientSession clientSession,
Bson key,
IndexOptions options,
SingleResultCallback<String> callback) |
Deprecated.
Creates an index.
|
void |
MongoCollection.createIndexes(ClientSession clientSession,
List<IndexModel> indexes,
SingleResultCallback<List<String>> callback) |
Deprecated.
Create multiple indexes.
|
void |
MongoCollection.createIndexes(ClientSession clientSession,
List<IndexModel> indexes,
CreateIndexOptions createIndexOptions,
SingleResultCallback<List<String>> callback) |
Deprecated.
Create multiple indexes.
|
void |
MongoDatabase.createView(ClientSession clientSession,
String viewName,
String viewOn,
List<? extends Bson> pipeline,
SingleResultCallback<Void> callback) |
Deprecated.
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
void |
MongoDatabase.createView(ClientSession clientSession,
String viewName,
String viewOn,
List<? extends Bson> pipeline,
CreateViewOptions createViewOptions,
SingleResultCallback<Void> callback) |
Deprecated.
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
void |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback) |
Deprecated.
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
Deprecated.
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback) |
Deprecated.
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
Deprecated.
Removes at most one document from the collection that matches the given filter.
|
<TResult> DistinctIterable<TResult> |
MongoCollection.distinct(ClientSession clientSession,
String fieldName,
Class<TResult> resultClass) |
Deprecated.
Gets the distinct values of the specified field name.
|
<TResult> DistinctIterable<TResult> |
MongoCollection.distinct(ClientSession clientSession,
String fieldName,
Bson filter,
Class<TResult> resultClass) |
Deprecated.
Gets the distinct values of the specified field name.
|
void |
MongoCollection.drop(ClientSession clientSession,
SingleResultCallback<Void> callback) |
Deprecated.
Drops this collection from the Database.
|
void |
MongoDatabase.drop(ClientSession clientSession,
SingleResultCallback<Void> callback) |
Deprecated.
Drops this database.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
String indexName,
SingleResultCallback<Void> callback) |
Deprecated.
Drops the index given its name.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
String indexName,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback) |
Deprecated.
Drops the index given its name.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
SingleResultCallback<Void> callback) |
Deprecated.
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback) |
Deprecated.
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndexes(ClientSession clientSession,
SingleResultCallback<Void> callback) |
Deprecated.
Drop all the indexes on this collection, except for the default on _id.
|
void |
MongoCollection.dropIndexes(ClientSession clientSession,
DropIndexOptions dropIndexOptions,
SingleResultCallback<Void> callback) |
Deprecated.
Drop all the indexes on this collection, except for the default on _id.
|
FindIterable<TDocument> |
MongoCollection.find(ClientSession clientSession) |
Deprecated.
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Finds all documents in the collection.
|
FindIterable<TDocument> |
MongoCollection.find(ClientSession clientSession,
Bson filter) |
Deprecated.
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(ClientSession clientSession,
Bson filter,
Class<TResult> resultClass) |
Deprecated.
Finds all documents in the collection.
|
void |
MongoCollection.findOneAndDelete(ClientSession clientSession,
Bson filter,
SingleResultCallback<TDocument> callback) |
Deprecated.
Atomically find a document and remove it.
|
void |
MongoCollection.findOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options,
SingleResultCallback<TDocument> callback) |
Deprecated.
Atomically find a document and remove it.
|
void |
MongoCollection.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<TDocument> callback) |
Deprecated.
Atomically find a document and replace it.
|
void |
MongoCollection.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback) |
Deprecated.
Atomically find a document and replace it.
|
void |
MongoCollection.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<TDocument> callback) |
Deprecated.
Atomically find a document and update it.
|
void |
MongoCollection.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options,
SingleResultCallback<TDocument> callback) |
Deprecated.
Atomically find a document and update it.
|
void |
MongoCollection.insertMany(ClientSession clientSession,
List<? extends TDocument> documents,
SingleResultCallback<Void> callback) |
Deprecated.
Inserts one or more documents.
|
void |
MongoCollection.insertMany(ClientSession clientSession,
List<? extends TDocument> documents,
InsertManyOptions options,
SingleResultCallback<Void> callback) |
Deprecated.
Inserts one or more documents.
|
void |
MongoCollection.insertOne(ClientSession clientSession,
TDocument document,
SingleResultCallback<Void> callback) |
Deprecated.
Inserts the provided document.
|
void |
MongoCollection.insertOne(ClientSession clientSession,
TDocument document,
InsertOneOptions options,
SingleResultCallback<Void> callback) |
Deprecated.
Inserts the provided document.
|
MongoIterable<String> |
MongoDatabase.listCollectionNames(ClientSession clientSession) |
Deprecated.
Gets the names of all the collections in this database.
|
ListCollectionsIterable<Document> |
MongoDatabase.listCollections(ClientSession clientSession) |
Deprecated.
Finds all the collections in this database.
|
<TResult> ListCollectionsIterable<TResult> |
MongoDatabase.listCollections(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Finds all the collections in this database.
|
MongoIterable<String> |
MongoClient.listDatabaseNames(ClientSession clientSession) |
Deprecated.
Get a list of the database names
|
ListDatabasesIterable<Document> |
MongoClient.listDatabases(ClientSession clientSession) |
Deprecated.
Gets the list of databases
|
<TResult> ListDatabasesIterable<TResult> |
MongoClient.listDatabases(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Gets the list of databases
|
ListIndexesIterable<Document> |
MongoCollection.listIndexes(ClientSession clientSession) |
Deprecated.
Get all the indexes in this collection.
|
<TResult> ListIndexesIterable<TResult> |
MongoCollection.listIndexes(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Get all the indexes in this collection.
|
MapReduceIterable<TDocument> |
MongoCollection.mapReduce(ClientSession clientSession,
String mapFunction,
String reduceFunction) |
Deprecated.
Aggregates documents according to the specified map-reduce function.
|
<TResult> MapReduceIterable<TResult> |
MongoCollection.mapReduce(ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<TResult> resultClass) |
Deprecated.
Aggregates documents according to the specified map-reduce function.
|
void |
MongoCollection.renameCollection(ClientSession clientSession,
MongoNamespace newCollectionNamespace,
SingleResultCallback<Void> callback) |
Deprecated.
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(ClientSession clientSession,
MongoNamespace newCollectionNamespace,
RenameCollectionOptions options,
SingleResultCallback<Void> callback) |
Deprecated.
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
ReplaceOptions options,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
|
void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
SingleResultCallback<Document> callback) |
Deprecated.
|
void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
SingleResultCallback<Document> callback) |
Deprecated.
Executes the given command in the context of the current database with the given read preference.
|
<TResult> void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
Deprecated.
Executes the given command in the context of the current database with the given read preference.
|
<TResult> void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
Deprecated.
|
void |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
Deprecated.
Update a single document in the collection according to the specified arguments.
|
ChangeStreamIterable<Document> |
MongoClient.watch(ClientSession clientSession) |
Deprecated.
Creates a change stream for this client.
|
<TResult> ChangeStreamIterable<TResult> |
MongoClient.watch(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Creates a change stream for this client.
|
ChangeStreamIterable<Document> |
MongoClient.watch(ClientSession clientSession,
List<? extends Bson> pipeline) |
Deprecated.
Creates a change stream for this client.
|
<TResult> ChangeStreamIterable<TResult> |
MongoClient.watch(ClientSession clientSession,
List<? extends Bson> pipeline,
Class<TResult> resultClass) |
Deprecated.
Creates a change stream for this client.
|
ChangeStreamIterable<TDocument> |
MongoCollection.watch(ClientSession clientSession) |
Deprecated.
Creates a change stream for this collection.
|
<TResult> ChangeStreamIterable<TResult> |
MongoCollection.watch(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Creates a change stream for this collection.
|
ChangeStreamIterable<TDocument> |
MongoCollection.watch(ClientSession clientSession,
List<? extends Bson> pipeline) |
Deprecated.
Creates a change stream for this collection.
|
<TResult> ChangeStreamIterable<TResult> |
MongoCollection.watch(ClientSession clientSession,
List<? extends Bson> pipeline,
Class<TResult> resultClass) |
Deprecated.
Creates a change stream for this collection.
|
ChangeStreamIterable<Document> |
MongoDatabase.watch(ClientSession clientSession) |
Deprecated.
Creates a change stream for this database.
|
<TResult> ChangeStreamIterable<TResult> |
MongoDatabase.watch(ClientSession clientSession,
Class<TResult> resultClass) |
Deprecated.
Creates a change stream for this database.
|
ChangeStreamIterable<Document> |
MongoDatabase.watch(ClientSession clientSession,
List<? extends Bson> pipeline) |
Deprecated.
Creates a change stream for this database.
|
<TResult> ChangeStreamIterable<TResult> |
MongoDatabase.watch(ClientSession clientSession,
List<? extends Bson> pipeline,
Class<TResult> resultClass) |
Deprecated.
Creates a change stream for this database.
|