Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
org.bson |
Contains the base BSON classes.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicDBObject
A basic implementation of BSON object that is MongoDB specific.
|
class |
CommandResult
A simple wrapper to hold the result of a command.
|
Modifier and Type | Field and Description |
---|---|
private Bson |
MapReduceIterableImpl.filter |
private Bson |
ListDatabasesIterableImpl.filter |
private Bson |
ListCollectionsIterableImpl.filter |
private Bson |
FindIterableImpl.filter |
private Bson |
DistinctIterableImpl.filter |
private Bson |
AggregateIterableImpl.hint |
private Bson |
MapReduceIterableImpl.scope |
private Bson |
MapReduceIterableImpl.sort |
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends Bson> |
ChangeStreamIterableImpl.pipeline |
private java.util.List<? extends Bson> |
AggregateIterableImpl.pipeline |
Modifier and Type | Method and Description |
---|---|
long |
MongoCollectionImpl.count(Bson filter) |
long |
MongoCollectionImpl.count(Bson filter,
CountOptions options) |
long |
MongoCollectionImpl.count(ClientSession clientSession,
Bson filter) |
long |
MongoCollectionImpl.count(ClientSession clientSession,
Bson filter,
CountOptions options) |
private <TResult> DistinctIterable<TResult> |
MongoCollectionImpl.createDistinctIterable(ClientSession clientSession,
java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass) |
private <TResult> FindIterable<TResult> |
MongoCollectionImpl.createFindIterable(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass) |
java.lang.String |
MongoCollectionImpl.createIndex(Bson keys) |
java.lang.String |
MongoCollectionImpl.createIndex(Bson keys,
IndexOptions indexOptions) |
java.lang.String |
MongoCollectionImpl.createIndex(ClientSession clientSession,
Bson keys) |
java.lang.String |
MongoCollectionImpl.createIndex(ClientSession clientSession,
Bson keys,
IndexOptions indexOptions) |
DeleteResult |
MongoCollectionImpl.deleteMany(Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteMany(Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteOne(Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteOne(Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options) |
<TResult> DistinctIterable<TResult> |
MongoCollectionImpl.distinct(ClientSession clientSession,
java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> DistinctIterable<TResult> |
MongoCollectionImpl.distinct(java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass) |
void |
MongoCollectionImpl.dropIndex(Bson keys) |
void |
MongoCollectionImpl.dropIndex(Bson keys,
DropIndexOptions dropIndexOptions) |
void |
MongoCollectionImpl.dropIndex(ClientSession clientSession,
Bson keys) |
void |
MongoCollectionImpl.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions) |
private <TResult> TResult |
MongoDatabaseImpl.executeCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass) |
private long |
MongoCollectionImpl.executeCount(ClientSession clientSession,
Bson filter,
CountOptions options) |
private DeleteResult |
MongoCollectionImpl.executeDelete(ClientSession clientSession,
Bson filter,
DeleteOptions deleteOptions,
boolean multi) |
private void |
MongoCollectionImpl.executeDropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions) |
private TDocument |
MongoCollectionImpl.executeFindOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options) |
private TDocument |
MongoCollectionImpl.executeFindOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options) |
private TDocument |
MongoCollectionImpl.executeFindOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options) |
private UpdateResult |
MongoCollectionImpl.executeReplaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
private UpdateResult |
MongoCollectionImpl.executeUpdate(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions,
boolean multi) |
MapReduceIterable<TResult> |
MapReduceIterableImpl.filter(Bson filter) |
ListDatabasesIterable<TResult> |
ListDatabasesIterableImpl.filter(Bson filter) |
ListCollectionsIterable<TResult> |
ListCollectionsIterableImpl.filter(Bson filter) |
FindIterable<TResult> |
FindIterableImpl.filter(Bson filter) |
DistinctIterable<TResult> |
DistinctIterableImpl.filter(Bson filter) |
FindIterable<TDocument> |
MongoCollectionImpl.find(Bson filter) |
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(Bson filter,
java.lang.Class<TResult> resultClass) |
FindIterable<TDocument> |
MongoCollectionImpl.find(ClientSession clientSession,
Bson filter) |
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass) |
TDocument |
MongoCollectionImpl.findOneAndDelete(Bson filter) |
TDocument |
MongoCollectionImpl.findOneAndDelete(Bson filter,
FindOneAndDeleteOptions options) |
TDocument |
MongoCollectionImpl.findOneAndDelete(ClientSession clientSession,
Bson filter) |
TDocument |
MongoCollectionImpl.findOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options) |
TDocument |
MongoCollectionImpl.findOneAndReplace(Bson filter,
TDocument replacement) |
TDocument |
MongoCollectionImpl.findOneAndReplace(Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options) |
TDocument |
MongoCollectionImpl.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement) |
TDocument |
MongoCollectionImpl.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options) |
TDocument |
MongoCollectionImpl.findOneAndUpdate(Bson filter,
Bson update) |
TDocument |
MongoCollectionImpl.findOneAndUpdate(Bson filter,
Bson update,
FindOneAndUpdateOptions options) |
TDocument |
MongoCollectionImpl.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update) |
TDocument |
MongoCollectionImpl.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options) |
FindIterable<TResult> |
FindIterableImpl.hint(Bson hint) |
AggregateIterable<TResult> |
AggregateIterableImpl.hint(Bson hint) |
FindIterable<TResult> |
FindIterableImpl.max(Bson max) |
FindIterable<TResult> |
FindIterableImpl.min(Bson min) |
FindIterable<TResult> |
FindIterableImpl.modifiers(Bson modifiers) |
FindIterable<TResult> |
FindIterableImpl.projection(Bson projection) |
UpdateResult |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement) |
UpdateResult |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement) |
UpdateResult |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions updateOptions) |
Document |
MongoDatabaseImpl.runCommand(Bson command) |
<TResult> TResult |
MongoDatabaseImpl.runCommand(Bson command,
java.lang.Class<TResult> resultClass) |
Document |
MongoDatabaseImpl.runCommand(Bson command,
ReadPreference readPreference) |
<TResult> TResult |
MongoDatabaseImpl.runCommand(Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass) |
Document |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command) |
<TResult> TResult |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
java.lang.Class<TResult> resultClass) |
Document |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference) |
<TResult> TResult |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass) |
MapReduceIterable<TResult> |
MapReduceIterableImpl.scope(Bson scope) |
MapReduceIterable<TResult> |
MapReduceIterableImpl.sort(Bson sort) |
FindIterable<TResult> |
FindIterableImpl.sort(Bson sort) |
private BsonDocument |
MongoDatabaseImpl.toBsonDocument(Bson document) |
private BsonDocument |
MongoCollectionImpl.toBsonDocument(Bson bson) |
(package private) <T> BsonDocument |
MongoIterableImpl.toBsonDocumentOrNull(Bson document,
java.lang.Class<T> documentClass,
CodecRegistry codecRegistry) |
(package private) BsonDocument |
MongoIterableImpl.toBsonDocumentOrNull(Bson document,
CodecRegistry codecRegistry) |
UpdateResult |
MongoCollectionImpl.updateMany(Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateOne(Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
UpdateOptions updateOptions) |
UpdateResult |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update) |
UpdateResult |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions) |
Modifier and Type | Method and Description |
---|---|
AggregateIterable<TDocument> |
MongoCollectionImpl.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline) |
<TResult> AggregateIterable<TResult> |
MongoCollectionImpl.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
AggregateIterable<TDocument> |
MongoCollectionImpl.aggregate(java.util.List<? extends Bson> pipeline) |
<TResult> AggregateIterable<TResult> |
MongoCollectionImpl.aggregate(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
private <TResult> AggregateIterable<TResult> |
MongoCollectionImpl.createAggregateIterable(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
private java.util.List<BsonDocument> |
MongoDatabaseImpl.createBsonDocumentList(java.util.List<? extends Bson> pipeline) |
private java.util.List<BsonDocument> |
ChangeStreamIterableImpl.createBsonDocumentList(java.util.List<? extends Bson> pipeline) |
private java.util.List<BsonDocument> |
AggregateIterableImpl.createBsonDocumentList(java.util.List<? extends Bson> pipeline) |
private <TResult> ChangeStreamIterable<TResult> |
MongoCollectionImpl.createChangeStreamIterable(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
void |
MongoDatabaseImpl.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline) |
void |
MongoDatabaseImpl.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions) |
void |
MongoDatabaseImpl.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline) |
void |
MongoDatabaseImpl.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions) |
private void |
MongoDatabaseImpl.executeCreateView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions) |
private java.util.List<BsonDocument> |
MongoCollectionImpl.toBsonDocumentList(java.util.List<? extends Bson> bsonList) |
ChangeStreamIterable<TDocument> |
MongoCollectionImpl.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline) |
<TResult> ChangeStreamIterable<TResult> |
MongoCollectionImpl.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
ChangeStreamIterable<TDocument> |
MongoCollectionImpl.watch(java.util.List<? extends Bson> pipeline) |
<TResult> ChangeStreamIterable<TResult> |
MongoCollectionImpl.watch(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
Constructor and Description |
---|
DistinctIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
java.lang.String fieldName,
Bson filter) |
FindIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
Bson filter,
FindOptions findOptions) |
Constructor and Description |
---|
AggregateIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
WriteConcern writeConcern,
OperationExecutor executor,
java.util.List<? extends Bson> pipeline) |
ChangeStreamIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
Modifier and Type | Field and Description |
---|---|
private Bson |
MapReduceIterableImpl.filter |
private Bson |
ListDatabasesIterableImpl.filter |
private Bson |
ListCollectionsIterableImpl.filter |
private Bson |
FindIterableImpl.filter |
private Bson |
DistinctIterableImpl.filter |
private Bson |
AggregateIterableImpl.hint |
private Bson |
MapReduceIterableImpl.scope |
private Bson |
MapReduceIterableImpl.sort |
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends Bson> |
ChangeStreamIterableImpl.pipeline |
private java.util.List<? extends Bson> |
AggregateIterableImpl.pipeline |
Modifier and Type | Method and Description |
---|---|
void |
MongoCollectionImpl.count(Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback) |
void |
MongoCollection.count(Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback)
Counts the number of documents in the collection according to the given options.
|
void |
MongoCollectionImpl.count(Bson filter,
SingleResultCallback<java.lang.Long> callback) |
void |
MongoCollection.count(Bson filter,
SingleResultCallback<java.lang.Long> callback)
Counts the number of documents in the collection according to the given options.
|
void |
MongoCollectionImpl.count(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback) |
void |
MongoCollection.count(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback)
Counts the number of documents in the collection according to the given options.
|
void |
MongoCollectionImpl.count(ClientSession clientSession,
Bson filter,
SingleResultCallback<java.lang.Long> callback) |
void |
MongoCollection.count(ClientSession clientSession,
Bson filter,
SingleResultCallback<java.lang.Long> callback)
Counts the number of documents in the collection according to the given options.
|
private <TResult> DistinctIterable<TResult> |
MongoCollectionImpl.createDistinctIterable(ClientSession clientSession,
java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass) |
private <TResult> FindIterable<TResult> |
MongoCollectionImpl.createFindIterable(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass) |
void |
MongoCollectionImpl.createIndex(Bson key,
IndexOptions indexOptions,
SingleResultCallback<java.lang.String> callback) |
void |
MongoCollection.createIndex(Bson key,
IndexOptions options,
SingleResultCallback<java.lang.String> callback)
Creates an index.
|
void |
MongoCollectionImpl.createIndex(Bson key,
SingleResultCallback<java.lang.String> callback) |
void |
MongoCollection.createIndex(Bson key,
SingleResultCallback<java.lang.String> callback)
Creates an index.
|
void |
MongoCollectionImpl.createIndex(ClientSession clientSession,
Bson key,
IndexOptions indexOptions,
SingleResultCallback<java.lang.String> callback) |
void |
MongoCollection.createIndex(ClientSession clientSession,
Bson key,
IndexOptions options,
SingleResultCallback<java.lang.String> callback)
Creates an index.
|
void |
MongoCollectionImpl.createIndex(ClientSession clientSession,
Bson key,
SingleResultCallback<java.lang.String> callback) |
void |
MongoCollection.createIndex(ClientSession clientSession,
Bson key,
SingleResultCallback<java.lang.String> callback)
Creates an index.
|
void |
MongoCollectionImpl.deleteMany(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteOne(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
<TResult> DistinctIterable<TResult> |
MongoCollectionImpl.distinct(ClientSession clientSession,
java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> DistinctIterable<TResult> |
MongoCollection.distinct(ClientSession clientSession,
java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass)
Gets the distinct values of the specified field name.
|
<TResult> DistinctIterable<TResult> |
MongoCollectionImpl.distinct(java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> DistinctIterable<TResult> |
MongoCollection.distinct(java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass)
Gets the distinct values of the specified field name.
|
void |
MongoCollectionImpl.dropIndex(Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoCollection.dropIndex(Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<java.lang.Void> callback)
Drops the index given the keys used to create it.
|
void |
MongoCollectionImpl.dropIndex(Bson keys,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoCollection.dropIndex(Bson keys,
SingleResultCallback<java.lang.Void> callback)
Drops the index given the keys used to create it.
|
void |
MongoCollectionImpl.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<java.lang.Void> callback)
Drops the index given the keys used to create it.
|
void |
MongoCollectionImpl.dropIndex(ClientSession clientSession,
Bson keys,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
SingleResultCallback<java.lang.Void> callback)
Drops the index given the keys used to create it.
|
private <TResult> void |
MongoDatabaseImpl.executeCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
private void |
MongoCollectionImpl.executeCount(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback) |
private void |
MongoCollectionImpl.executeDelete(ClientSession clientSession,
Bson filter,
DeleteOptions options,
boolean multi,
SingleResultCallback<DeleteResult> callback) |
private void |
MongoCollectionImpl.executeDropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions,
SingleResultCallback<java.lang.Void> callback) |
private void |
MongoCollectionImpl.executeFindOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options,
SingleResultCallback<TDocument> callback) |
private void |
MongoCollectionImpl.executeFindOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback) |
private void |
MongoCollectionImpl.executeFindOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options,
SingleResultCallback<TDocument> callback) |
private void |
MongoCollectionImpl.executeReplaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
private void |
MongoCollectionImpl.executeUpdate(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
boolean multi,
SingleResultCallback<UpdateResult> callback) |
MapReduceIterable<TResult> |
MapReduceIterableImpl.filter(Bson filter) |
MapReduceIterable<TResult> |
MapReduceIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
ListDatabasesIterable<TResult> |
ListDatabasesIterableImpl.filter(Bson filter) |
ListDatabasesIterable<T> |
ListDatabasesIterable.filter(Bson filter)
Sets the query filter to apply to the returned database names.
|
ListCollectionsIterable<TResult> |
ListCollectionsIterableImpl.filter(Bson filter) |
ListCollectionsIterable<TResult> |
ListCollectionsIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
FindIterable<TResult> |
FindIterableImpl.filter(Bson filter) |
FindIterable<T> |
FindIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
DistinctIterable<TResult> |
DistinctIterableImpl.filter(Bson filter) |
DistinctIterable<TResult> |
DistinctIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
FindIterable<TDocument> |
MongoCollectionImpl.find(Bson filter) |
FindIterable<TDocument> |
MongoCollection.find(Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> FindIterable<TResult> |
MongoCollection.find(Bson filter,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
FindIterable<TDocument> |
MongoCollectionImpl.find(ClientSession clientSession,
Bson filter) |
FindIterable<TDocument> |
MongoCollection.find(ClientSession clientSession,
Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> FindIterable<TResult> |
MongoCollection.find(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
void |
MongoCollectionImpl.findOneAndDelete(Bson filter,
FindOneAndDeleteOptions options,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndDelete(Bson filter,
FindOneAndDeleteOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and remove it.
|
void |
MongoCollectionImpl.findOneAndDelete(Bson filter,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndDelete(Bson filter,
SingleResultCallback<TDocument> callback)
Atomically find a document and remove it.
|
void |
MongoCollectionImpl.findOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and remove it.
|
void |
MongoCollectionImpl.findOneAndDelete(ClientSession clientSession,
Bson filter,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndDelete(ClientSession clientSession,
Bson filter,
SingleResultCallback<TDocument> callback)
Atomically find a document and remove it.
|
void |
MongoCollectionImpl.findOneAndReplace(Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndReplace(Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and replace it.
|
void |
MongoCollectionImpl.findOneAndReplace(Bson filter,
TDocument replacement,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndReplace(Bson filter,
TDocument replacement,
SingleResultCallback<TDocument> callback)
Atomically find a document and replace it.
|
void |
MongoCollectionImpl.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and replace it.
|
void |
MongoCollectionImpl.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<TDocument> callback)
Atomically find a document and replace it.
|
void |
MongoCollectionImpl.findOneAndUpdate(Bson filter,
Bson update,
FindOneAndUpdateOptions options,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndUpdate(Bson filter,
Bson update,
FindOneAndUpdateOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and update it.
|
void |
MongoCollectionImpl.findOneAndUpdate(Bson filter,
Bson update,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndUpdate(Bson filter,
Bson update,
SingleResultCallback<TDocument> callback)
Atomically find a document and update it.
|
void |
MongoCollectionImpl.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options,
SingleResultCallback<TDocument> callback)
Atomically find a document and update it.
|
void |
MongoCollectionImpl.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<TDocument> callback) |
void |
MongoCollection.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<TDocument> callback)
Atomically find a document and update it.
|
FindIterable<TResult> |
FindIterableImpl.hint(Bson hint) |
FindIterable<T> |
FindIterable.hint(Bson hint)
Sets the hint for which index to use.
|
AggregateIterable<TResult> |
AggregateIterableImpl.hint(Bson hint) |
AggregateIterable<TResult> |
AggregateIterable.hint(Bson hint)
Sets the hint for which index to use.
|
FindIterable<TResult> |
FindIterableImpl.max(Bson max) |
FindIterable<T> |
FindIterable.max(Bson max)
Sets the exclusive upper bound for a specific index.
|
FindIterable<TResult> |
FindIterableImpl.min(Bson min) |
FindIterable<T> |
FindIterable.min(Bson min)
Sets the minimum inclusive lower bound for a specific index.
|
FindIterable<TResult> |
FindIterableImpl.modifiers(Bson modifiers) |
FindIterable<T> |
FindIterable.modifiers(Bson modifiers)
Deprecated.
use the individual setters instead
|
FindIterable<TResult> |
FindIterableImpl.projection(Bson projection) |
FindIterable<T> |
FindIterable.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
void |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Replace a document in the collection according to the specified arguments.
|
<TResult> void |
MongoDatabaseImpl.runCommand(Bson command,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
<TResult> void |
MongoDatabase.runCommand(Bson command,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
<TResult> void |
MongoDatabaseImpl.runCommand(Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
<TResult> void |
MongoDatabase.runCommand(Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback)
Executes the given command in the context of the current database with the given read preference.
|
void |
MongoDatabaseImpl.runCommand(Bson command,
ReadPreference readPreference,
SingleResultCallback<Document> callback) |
void |
MongoDatabase.runCommand(Bson command,
ReadPreference readPreference,
SingleResultCallback<Document> callback)
Executes the given command in the context of the current database with the given read preference.
|
void |
MongoDatabaseImpl.runCommand(Bson command,
SingleResultCallback<Document> callback) |
void |
MongoDatabase.runCommand(Bson command,
SingleResultCallback<Document> callback)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
<TResult> void |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
<TResult> void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
<TResult> void |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback) |
<TResult> void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass,
SingleResultCallback<TResult> callback)
Executes the given command in the context of the current database with the given read preference.
|
void |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
SingleResultCallback<Document> callback) |
void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
SingleResultCallback<Document> callback)
Executes the given command in the context of the current database with the given read preference.
|
void |
MongoDatabaseImpl.runCommand(ClientSession clientSession,
Bson command,
SingleResultCallback<Document> callback) |
void |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
SingleResultCallback<Document> callback)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
MapReduceIterable<TResult> |
MapReduceIterableImpl.scope(Bson scope) |
MapReduceIterable<TResult> |
MapReduceIterable.scope(Bson scope)
Sets the global variables that are accessible in the map, reduce and finalize functions.
|
MapReduceIterable<TResult> |
MapReduceIterableImpl.sort(Bson sort) |
MapReduceIterable<TResult> |
MapReduceIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
FindIterable<TResult> |
FindIterableImpl.sort(Bson sort) |
FindIterable<T> |
FindIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
private BsonDocument |
MongoDatabaseImpl.toBsonDocument(Bson document) |
private BsonDocument |
MongoCollectionImpl.toBsonDocument(Bson document) |
(package private) <T> BsonDocument |
MongoIterableImpl.toBsonDocumentOrNull(Bson document,
java.lang.Class<T> documentClass,
CodecRegistry codecRegistry) |
(package private) BsonDocument |
MongoIterableImpl.toBsonDocumentOrNull(Bson document,
CodecRegistry codecRegistry) |
void |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateMany(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update all documents in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
void |
MongoCollectionImpl.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback) |
void |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions options,
SingleResultCallback<UpdateResult> callback)
Update a single document in the collection according to the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
AggregateIterable<TDocument> |
MongoCollectionImpl.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline) |
AggregateIterable<TDocument> |
MongoCollection.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<TResult> AggregateIterable<TResult> |
MongoCollectionImpl.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
<TResult> AggregateIterable<TResult> |
MongoCollection.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Aggregates documents according to the specified aggregation pipeline.
|
AggregateIterable<TDocument> |
MongoCollectionImpl.aggregate(java.util.List<? extends Bson> pipeline) |
AggregateIterable<TDocument> |
MongoCollection.aggregate(java.util.List<? extends Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<TResult> AggregateIterable<TResult> |
MongoCollectionImpl.aggregate(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
<TResult> AggregateIterable<TResult> |
MongoCollection.aggregate(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Aggregates documents according to the specified aggregation pipeline.
|
private <TResult> AggregateIterable<TResult> |
MongoCollectionImpl.createAggregateIterable(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
private java.util.List<BsonDocument> |
MongoDatabaseImpl.createBsonDocumentList(java.util.List<? extends Bson> pipeline) |
private java.util.List<BsonDocument> |
ChangeStreamIterableImpl.createBsonDocumentList(java.util.List<? extends Bson> pipeline) |
private java.util.List<BsonDocument> |
AggregateIterableImpl.createBsonDocumentList(java.util.List<? extends Bson> pipeline) |
private <TResult> ChangeStreamIterable<TResult> |
MongoCollectionImpl.createChangeStreamIterable(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
void |
MongoDatabaseImpl.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoDatabase.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions,
SingleResultCallback<java.lang.Void> callback)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
void |
MongoDatabaseImpl.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoDatabase.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
SingleResultCallback<java.lang.Void> callback)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
void |
MongoDatabaseImpl.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoDatabase.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions,
SingleResultCallback<java.lang.Void> callback)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
void |
MongoDatabaseImpl.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoDatabase.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
SingleResultCallback<java.lang.Void> callback)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
private void |
MongoDatabaseImpl.executeCreateView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions,
SingleResultCallback<java.lang.Void> callback) |
private java.util.List<BsonDocument> |
MongoCollectionImpl.toBsonDocumentList(java.util.List<? extends Bson> bsonList) |
ChangeStreamIterable<TDocument> |
MongoCollectionImpl.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline) |
ChangeStreamIterable<TDocument> |
MongoCollection.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline)
Creates a change stream for this collection.
|
<TResult> ChangeStreamIterable<TResult> |
MongoCollectionImpl.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
<TResult> ChangeStreamIterable<TResult> |
MongoCollection.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Creates a change stream for this collection.
|
ChangeStreamIterable<TDocument> |
MongoCollectionImpl.watch(java.util.List<? extends Bson> pipeline) |
ChangeStreamIterable<TDocument> |
MongoCollection.watch(java.util.List<? extends Bson> pipeline)
Creates a change stream for this collection.
|
<TResult> ChangeStreamIterable<TResult> |
MongoCollectionImpl.watch(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
<TResult> ChangeStreamIterable<TResult> |
MongoCollection.watch(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Creates a change stream for this collection.
|
Constructor and Description |
---|
DistinctIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
java.lang.String fieldName,
Bson filter) |
FindIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
Bson filter,
FindOptions findOptions) |
Constructor and Description |
---|
AggregateIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
WriteConcern writeConcern,
AsyncOperationExecutor executor,
java.util.List<? extends Bson> pipeline) |
ChangeStreamIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
Modifier and Type | Method and Description |
---|---|
private FindIterable<GridFSFile> |
GridFSBucketImpl.createFindIterable(ClientSession clientSession,
Bson filter) |
private GridFSFindIterable |
GridFSBucketImpl.createGridFSFindIterable(ClientSession clientSession,
Bson filter) |
GridFSFindIterable |
GridFSFindIterableImpl.filter(Bson filter) |
GridFSFindIterable |
GridFSFindIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
GridFSFindIterable |
GridFSBucketImpl.find(Bson filter) |
GridFSFindIterable |
GridFSBucket.find(Bson filter)
Finds all documents in the collection that match the filter.
|
GridFSFindIterable |
GridFSBucketImpl.find(ClientSession clientSession,
Bson filter) |
GridFSFindIterable |
GridFSBucket.find(ClientSession clientSession,
Bson filter)
Finds all documents in the collection that match the filter.
|
GridFSFindIterable |
GridFSFindIterableImpl.sort(Bson sort) |
GridFSFindIterable |
GridFSFindIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
Modifier and Type | Method and Description |
---|---|
long |
MongoCollection.count(Bson filter)
Counts the number of documents in the collection according to the given options.
|
long |
MongoCollection.count(Bson filter,
CountOptions options)
Counts the number of documents in the collection according to the given options.
|
long |
MongoCollection.count(ClientSession clientSession,
Bson filter)
Counts the number of documents in the collection according to the given options.
|
long |
MongoCollection.count(ClientSession clientSession,
Bson filter,
CountOptions options)
Counts the number of documents in the collection according to the given options.
|
java.lang.String |
MongoCollection.createIndex(Bson keys)
Create an index with the given keys.
|
java.lang.String |
MongoCollection.createIndex(Bson keys,
IndexOptions indexOptions)
Create an index with the given keys and options.
|
java.lang.String |
MongoCollection.createIndex(ClientSession clientSession,
Bson keys)
Create an index with the given keys.
|
java.lang.String |
MongoCollection.createIndex(ClientSession clientSession,
Bson keys,
IndexOptions indexOptions)
Create an index with the given keys and options.
|
DeleteResult |
MongoCollection.deleteMany(Bson filter)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteMany(Bson filter,
DeleteOptions options)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteOne(Bson filter)
Removes at most one document from the collection that matches the given filter.
|
DeleteResult |
MongoCollection.deleteOne(Bson filter,
DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
DeleteResult |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter)
Removes at most one document from the collection that matches the given filter.
|
DeleteResult |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
<TResult> DistinctIterable<TResult> |
MongoCollection.distinct(ClientSession clientSession,
java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass)
Gets the distinct values of the specified field name.
|
<TResult> DistinctIterable<TResult> |
MongoCollection.distinct(java.lang.String fieldName,
Bson filter,
java.lang.Class<TResult> resultClass)
Gets the distinct values of the specified field name.
|
void |
MongoCollection.dropIndex(Bson keys)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(Bson keys,
DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys)
Drops the index given the keys used to create it.
|
void |
MongoCollection.dropIndex(ClientSession clientSession,
Bson keys,
DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
MapReduceIterable<TResult> |
MapReduceIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
ListDatabasesIterable<TResult> |
ListDatabasesIterable.filter(Bson filter)
Sets the query filter to apply to the returned database names.
|
ListCollectionsIterable<TResult> |
ListCollectionsIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
FindIterable<TResult> |
FindIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
DistinctIterable<TResult> |
DistinctIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
FindIterable<TDocument> |
MongoCollection.find(Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(Bson filter,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
FindIterable<TDocument> |
MongoCollection.find(ClientSession clientSession,
Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
TDocument |
MongoCollection.findOneAndDelete(Bson filter)
Atomically find a document and remove it.
|
TDocument |
MongoCollection.findOneAndDelete(Bson filter,
FindOneAndDeleteOptions options)
Atomically find a document and remove it.
|
TDocument |
MongoCollection.findOneAndDelete(ClientSession clientSession,
Bson filter)
Atomically find a document and remove it.
|
TDocument |
MongoCollection.findOneAndDelete(ClientSession clientSession,
Bson filter,
FindOneAndDeleteOptions options)
Atomically find a document and remove it.
|
TDocument |
MongoCollection.findOneAndReplace(Bson filter,
TDocument replacement)
Atomically find a document and replace it.
|
TDocument |
MongoCollection.findOneAndReplace(Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options)
Atomically find a document and replace it.
|
TDocument |
MongoCollection.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement)
Atomically find a document and replace it.
|
TDocument |
MongoCollection.findOneAndReplace(ClientSession clientSession,
Bson filter,
TDocument replacement,
FindOneAndReplaceOptions options)
Atomically find a document and replace it.
|
TDocument |
MongoCollection.findOneAndUpdate(Bson filter,
Bson update)
Atomically find a document and update it.
|
TDocument |
MongoCollection.findOneAndUpdate(Bson filter,
Bson update,
FindOneAndUpdateOptions options)
Atomically find a document and update it.
|
TDocument |
MongoCollection.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update)
Atomically find a document and update it.
|
TDocument |
MongoCollection.findOneAndUpdate(ClientSession clientSession,
Bson filter,
Bson update,
FindOneAndUpdateOptions options)
Atomically find a document and update it.
|
FindIterable<TResult> |
FindIterable.hint(Bson hint)
Sets the hint for which index to use.
|
AggregateIterable<TResult> |
AggregateIterable.hint(Bson hint)
Sets the hint for which index to use.
|
FindIterable<TResult> |
FindIterable.max(Bson max)
Sets the exclusive upper bound for a specific index.
|
FindIterable<TResult> |
FindIterable.min(Bson min)
Sets the minimum inclusive lower bound for a specific index.
|
FindIterable<TResult> |
FindIterable.modifiers(Bson modifiers)
Deprecated.
use the individual setters instead
|
FindIterable<TResult> |
FindIterable.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
UpdateResult |
MongoCollection.replaceOne(Bson filter,
TDocument replacement)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.replaceOne(Bson filter,
TDocument replacement,
UpdateOptions updateOptions)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement)
Replace a document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.replaceOne(ClientSession clientSession,
Bson filter,
TDocument replacement,
UpdateOptions updateOptions)
Replace a document in the collection according to the specified arguments.
|
Document |
MongoDatabase.runCommand(Bson command)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
<TResult> TResult |
MongoDatabase.runCommand(Bson command,
java.lang.Class<TResult> resultClass)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
Document |
MongoDatabase.runCommand(Bson command,
ReadPreference readPreference)
Executes the given command in the context of the current database with the given read preference.
|
<TResult> TResult |
MongoDatabase.runCommand(Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass)
Executes the given command in the context of the current database with the given read preference.
|
Document |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
<TResult> TResult |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
java.lang.Class<TResult> resultClass)
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary() . |
Document |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference)
Executes the given command in the context of the current database with the given read preference.
|
<TResult> TResult |
MongoDatabase.runCommand(ClientSession clientSession,
Bson command,
ReadPreference readPreference,
java.lang.Class<TResult> resultClass)
Executes the given command in the context of the current database with the given read preference.
|
MapReduceIterable<TResult> |
MapReduceIterable.scope(Bson scope)
Sets the global variables that are accessible in the map, reduce and finalize functions.
|
MapReduceIterable<TResult> |
MapReduceIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
FindIterable<TResult> |
FindIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
UpdateResult |
MongoCollection.updateMany(Bson filter,
Bson update)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateMany(Bson filter,
Bson update,
UpdateOptions updateOptions)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateMany(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions)
Update all documents in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(Bson filter,
Bson update)
Update a single document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(Bson filter,
Bson update,
UpdateOptions updateOptions)
Update a single document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update)
Update a single document in the collection according to the specified arguments.
|
UpdateResult |
MongoCollection.updateOne(ClientSession clientSession,
Bson filter,
Bson update,
UpdateOptions updateOptions)
Update a single document in the collection according to the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
AggregateIterable<TDocument> |
MongoCollection.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<TResult> AggregateIterable<TResult> |
MongoCollection.aggregate(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Aggregates documents according to the specified aggregation pipeline.
|
AggregateIterable<TDocument> |
MongoCollection.aggregate(java.util.List<? extends Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<TResult> AggregateIterable<TResult> |
MongoCollection.aggregate(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Aggregates documents according to the specified aggregation pipeline.
|
void |
MongoDatabase.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
void |
MongoDatabase.createView(ClientSession clientSession,
java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
void |
MongoDatabase.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
void |
MongoDatabase.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends Bson> pipeline,
CreateViewOptions createViewOptions)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
ChangeStreamIterable<TDocument> |
MongoCollection.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline)
Creates a change stream for this collection.
|
<TResult> ChangeStreamIterable<TResult> |
MongoCollection.watch(ClientSession clientSession,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Creates a change stream for this collection.
|
ChangeStreamIterable<TDocument> |
MongoCollection.watch(java.util.List<? extends Bson> pipeline)
Creates a change stream for this collection.
|
<TResult> ChangeStreamIterable<TResult> |
MongoCollection.watch(java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass)
Creates a change stream for this collection.
|
Modifier and Type | Method and Description |
---|---|
private FindIterable<GridFSFile> |
GridFSBucketImpl.createFindIterable(ClientSession clientSession,
Bson filter) |
private GridFSFindIterable |
GridFSBucketImpl.createGridFSFindIterable(ClientSession clientSession,
Bson filter) |
GridFSFindIterable |
GridFSFindIterableImpl.filter(Bson filter) |
GridFSFindIterable |
GridFSFindIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
GridFSFindIterable |
GridFSBucketImpl.find(Bson filter) |
GridFSFindIterable |
GridFSBucket.find(Bson filter)
Finds all documents in the collection that match the filter.
|
GridFSFindIterable |
GridFSBucketImpl.find(ClientSession clientSession,
Bson filter) |
GridFSFindIterable |
GridFSBucket.find(ClientSession clientSession,
Bson filter)
Finds all documents in the collection that match the filter.
|
GridFSFindIterable |
GridFSFindIterableImpl.sort(Bson sort) |
GridFSFindIterable |
GridFSFindIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
Modifier and Type | Class and Description |
---|---|
private static class |
Aggregates.AddFieldsStage |
private static class |
Aggregates.BucketAutoStage<TExpression> |
private static class |
Aggregates.BucketStage<TExpression,TBoundary> |
private static class |
Aggregates.FacetStage |
private static class |
Aggregates.GraphLookupStage<TExpression> |
private static class |
Aggregates.GroupStage<TExpression> |
private static class |
Aggregates.ReplaceRootStage<TExpression> |
private static class |
Aggregates.SimplePipelineStage |
private static class |
Aggregates.SortByCountStage<TExpression> |
private static class |
Filters.AndFilter |
private static class |
Filters.GeometryOperatorFilter<TItem> |
private static class |
Filters.IterableOperatorFilter<TItem> |
private static class |
Filters.NotFilter |
private static class |
Filters.OperatorFilter<TItem> |
private static class |
Filters.OrNorFilter |
private static class |
Filters.SimpleEncodingFilter<TItem> |
private static class |
Filters.SimpleFilter |
private static class |
Filters.TextFilter |
private static class |
Projections.ElemMatchFilterProjection |
private static class |
Projections.FieldsProjection |
(package private) class |
SimpleExpression<TExpression> |
private static class |
Sorts.CompoundSort |
private static class |
Updates.CompositeUpdate |
private static class |
Updates.PullAllUpdate<TItem> |
private static class |
Updates.PushUpdate<TItem> |
private static class |
Updates.SimpleUpdate<TItem> |
private static class |
Updates.WithEachUpdate<TItem> |
Modifier and Type | Field and Description |
---|---|
private Bson |
UpdateOneModel.filter |
private Bson |
UpdateManyModel.filter |
private Bson |
ReplaceOneModel.filter |
private Bson |
Projections.ElemMatchFilterProjection.filter |
private Bson |
Filters.NotFilter.filter |
private Bson |
DeleteOneModel.filter |
private Bson |
DeleteManyModel.filter |
private Bson |
FindOptions.hint |
private Bson |
CountOptions.hint |
private Bson |
IndexModel.keys |
private Bson |
FindOptions.max |
private Bson |
FindOptions.min |
private Bson |
FindOptions.modifiers |
private Bson |
IndexOptions.partialFilterExpression |
private Bson |
FindOptions.projection |
private Bson |
FindOneAndUpdateOptions.projection |
private Bson |
FindOneAndReplaceOptions.projection |
private Bson |
FindOneAndDeleteOptions.projection |
private Bson |
GraphLookupOptions.restrictSearchWithMatch |
private Bson |
FindOptions.sort |
private Bson |
FindOneAndUpdateOptions.sort |
private Bson |
FindOneAndReplaceOptions.sort |
private Bson |
FindOneAndDeleteOptions.sort |
private Bson |
PushOptions.sortDocument |
private Bson |
IndexOptions.storageEngine |
private Bson |
IndexOptionDefaults.storageEngine |
private Bson |
CreateCollectionOptions.storageEngineOptions |
private Bson |
UpdateOneModel.update |
private Bson |
UpdateManyModel.update |
private Bson |
ValidationOptions.validator |
private Bson |
BsonField.value |
private Bson |
Aggregates.SimplePipelineStage.value |
private Bson |
IndexOptions.weights |
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends Bson> |
UpdateOptions.arrayFilters |
private java.util.List<? extends Bson> |
FindOneAndUpdateOptions.arrayFilters |
private java.lang.Iterable<Bson> |
Filters.AndFilter.filters |
private java.lang.Iterable<Bson> |
Filters.OrNorFilter.filters |
private java.util.List<? extends Bson> |
Facet.pipeline |
private java.util.List<? extends Bson> |
Projections.FieldsProjection.projections |
private java.util.List<? extends Bson> |
Sorts.CompoundSort.sorts |
private java.util.List<? extends Bson> |
Updates.CompositeUpdate.updates |
Modifier and Type | Method and Description |
---|---|
static <TItem> Bson |
Updates.addEachToSet(java.lang.String fieldName,
java.util.List<TItem> values)
Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is
already present, in which case it does nothing
|
static Bson |
Aggregates.addFields(Field<?>... fields)
Creates an $addFields pipeline stage
|
static Bson |
Aggregates.addFields(java.util.List<Field<?>> fields)
Creates an $addFields pipeline stage
|
static <TItem> Bson |
Updates.addToSet(java.lang.String fieldName,
TItem value)
Creates an update that adds the given value to the array value of the field with the given name, unless the value is
already present, in which case it does nothing
|
static <TItem> Bson |
Filters.all(java.lang.String fieldName,
java.lang.Iterable<TItem> values)
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
|
static <TItem> Bson |
Filters.all(java.lang.String fieldName,
TItem... values)
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
|
static Bson |
Filters.and(Bson... filters)
Creates a filter that performs a logical AND of the provided list of filters.
|
static Bson |
Filters.and(java.lang.Iterable<Bson> filters)
Creates a filter that performs a logical AND of the provided list of filters.
|
static Bson |
Sorts.ascending(java.util.List<java.lang.String> fieldNames)
Create a sort specification for an ascending sort on the given fields.
|
static Bson |
Indexes.ascending(java.util.List<java.lang.String> fieldNames)
Create an index key for an ascending index on the given fields.
|
static Bson |
Sorts.ascending(java.lang.String... fieldNames)
Create a sort specification for an ascending sort on the given fields.
|
static Bson |
Indexes.ascending(java.lang.String... fieldNames)
Create an index key for an ascending index on the given fields.
|
static Bson |
Filters.bitsAllClear(java.lang.String fieldName,
long bitmask)
Creates a filter that matches all documents where all of the bit positions are clear in the field.
|
static Bson |
Filters.bitsAllSet(java.lang.String fieldName,
long bitmask)
Creates a filter that matches all documents where all of the bit positions are set in the field.
|
static Bson |
Filters.bitsAnyClear(java.lang.String fieldName,
long bitmask)
Creates a filter that matches all documents where any of the bit positions are clear in the field.
|
static Bson |
Filters.bitsAnySet(java.lang.String fieldName,
long bitmask)
Creates a filter that matches all documents where any of the bit positions are set in the field.
|
static Bson |
Updates.bitwiseAnd(java.lang.String fieldName,
int value)
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given
name.
|
static Bson |
Updates.bitwiseAnd(java.lang.String fieldName,
long value)
Creates an update that performs a bitwise and between the given long value and the integral value of the field with the given name.
|
static Bson |
Updates.bitwiseOr(java.lang.String fieldName,
int value)
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given
name.
|
static Bson |
Updates.bitwiseOr(java.lang.String fieldName,
long value)
Creates an update that performs a bitwise or between the given long value and the integral value of the field with the given name.
|
static Bson |
Updates.bitwiseXor(java.lang.String fieldName,
int value)
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given
name.
|
static Bson |
Updates.bitwiseXor(java.lang.String fieldName,
long value)
Creates an update that performs a bitwise xor between the given long value and the integral value of the field with the given name.
|
static <TExpression,Boundary> |
Aggregates.bucket(TExpression groupBy,
java.util.List<Boundary> boundaries)
Creates a $bucket pipeline stage
|
static <TExpression,TBoundary> |
Aggregates.bucket(TExpression groupBy,
java.util.List<TBoundary> boundaries,
BucketOptions options)
Creates a $bucket pipeline stage
|
static <TExpression> |
Aggregates.bucketAuto(TExpression groupBy,
int buckets)
Creates a $bucketAuto pipeline stage
|
static <TExpression> |
Aggregates.bucketAuto(TExpression groupBy,
int buckets,
BucketAutoOptions options)
Creates a $bucketAuto pipeline stage
|
static Bson |
Updates.combine(Bson... updates)
Combine a list of updates into a single update.
|
static Bson |
Updates.combine(java.util.List<? extends Bson> updates)
Combine a list of updates into a single update.
|
private static Bson |
Projections.combine(java.util.List<java.lang.String> fieldNames,
BsonValue value) |
static Bson |
Indexes.compoundIndex(Bson... indexes)
create a compound index specifications.
|
static Bson |
Indexes.compoundIndex(java.util.List<? extends Bson> indexes)
compound multiple index specifications.
|
private static Bson |
Indexes.compoundIndex(java.util.List<java.lang.String> fieldNames,
BsonValue value) |
static <TExpression> |
Projections.computed(java.lang.String fieldName,
TExpression expression)
Creates a projection of a field whose value is computed from the given expression.
|
static Bson |
Aggregates.count()
Creates a $count pipeline stage using the field name "count" to store the result
|
static Bson |
Aggregates.count(java.lang.String field)
Creates a $count pipeline stage using the named field to store the result
|
private static Bson |
Updates.createBitUpdateDocument(java.lang.String fieldName,
java.lang.String bitwiseOperator,
BsonValue value) |
private static Bson |
Updates.createBitUpdateDocument(java.lang.String fieldName,
java.lang.String bitwiseOperator,
int value) |
private static Bson |
Updates.createBitUpdateDocument(java.lang.String fieldName,
java.lang.String bitwiseOperator,
long value) |
private static Bson |
Filters.createNearFilterDocument(java.lang.String fieldName,
double x,
double y,
java.lang.Double maxDistance,
java.lang.Double minDistance,
java.lang.String operator) |
static Bson |
Updates.currentDate(java.lang.String fieldName)
Creates an update that sets the value of the field to the current date as a BSON date.
|
static Bson |
Updates.currentTimestamp(java.lang.String fieldName)
Creates an update that sets the value of the field to the current date as a BSON timestamp.
|
static Bson |
Sorts.descending(java.util.List<java.lang.String> fieldNames)
Create a sort specification for an ascending sort on the given fields.
|
static Bson |
Indexes.descending(java.util.List<java.lang.String> fieldNames)
Create an index key for an ascending index on the given fields.
|
static Bson |
Sorts.descending(java.lang.String... fieldNames)
Create a sort specification for an ascending sort on the given fields.
|
static Bson |
Indexes.descending(java.lang.String... fieldNames)
Create an index key for an ascending index on the given fields.
|
static Bson |
Projections.elemMatch(java.lang.String fieldName)
Creates a projection that includes for the given field only the first element of an array that matches the query filter.
|
static Bson |
Projections.elemMatch(java.lang.String fieldName,
Bson filter)
Creates a projection that includes for the given field only the first element of the array value of that field that matches the given
query filter.
|
static Bson |
Filters.elemMatch(java.lang.String fieldName,
Bson filter)
Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the
given filter.
|
static <TItem> Bson |
Filters.eq(java.lang.String fieldName,
TItem value)
Creates a filter that matches all documents where the value of the field name equals the specified value.
|
static <TItem> Bson |
Filters.eq(TItem value)
Creates a filter that matches all documents where the value of _id field equals the specified value.
|
static Bson |
Projections.exclude(java.util.List<java.lang.String> fieldNames)
Creates a projection that excludes all of the given fields.
|
static Bson |
Projections.exclude(java.lang.String... fieldNames)
Creates a projection that excludes all of the given fields.
|
static Bson |
Projections.excludeId()
Creates a projection that excludes the _id field.
|
static Bson |
Filters.exists(java.lang.String fieldName)
Creates a filter that matches all documents that contain the given field.
|
static Bson |
Filters.exists(java.lang.String fieldName,
boolean exists)
Creates a filter that matches all documents that either contain or do not contain the given field, depending on the value of the
exists parameter.
|
static <TExpression> |
Filters.expr(TExpression expression)
Creates a filter that matches all documents that validate against the given JSON schema document.
|
static Bson |
Aggregates.facet(Facet... facets)
Creates a facet pipeline stage
|
static Bson |
Aggregates.facet(java.util.List<Facet> facets)
Creates a facet pipeline stage
|
static Bson |
Projections.fields(Bson... projections)
Creates a projection that combines the list of projections into a single one.
|
static Bson |
Projections.fields(java.util.List<? extends Bson> projections)
Creates a projection that combines the list of projections into a single one.
|
static Bson |
Indexes.geo2d(java.lang.String fieldName)
Create an index key for a 2d index on the given field.
|
static Bson |
Indexes.geo2dsphere(java.util.List<java.lang.String> fieldNames)
Create an index key for an ascending index on the given fields.
|
static Bson |
Indexes.geo2dsphere(java.lang.String... fieldNames)
Create an index key for an 2dsphere index on the given fields.
|
static Bson |
Indexes.geoHaystack(java.lang.String fieldName,
Bson additional)
Create an index key for a geohaystack index on the given field.
|
static Bson |
Filters.geoIntersects(java.lang.String fieldName,
Bson geometry)
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
|
static Bson |
Filters.geoIntersects(java.lang.String fieldName,
Geometry geometry)
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
|
static Bson |
Filters.geoWithin(java.lang.String fieldName,
Bson geometry)
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
|
static Bson |
Filters.geoWithin(java.lang.String fieldName,
Geometry geometry)
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
|
static Bson |
Filters.geoWithinBox(java.lang.String fieldName,
double lowerLeftX,
double lowerLeftY,
double upperRightX,
double upperRightY)
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified
box.
|
static Bson |
Filters.geoWithinCenter(java.lang.String fieldName,
double x,
double y,
double radius)
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified
circle.
|
static Bson |
Filters.geoWithinCenterSphere(java.lang.String fieldName,
double x,
double y,
double radius)
Creates a filter that matches all documents containing a field with geospatial data (GeoJSON or legacy coordinate pairs) that exist
entirely within the specified circle, using spherical geometry.
|
static Bson |
Filters.geoWithinPolygon(java.lang.String fieldName,
java.util.List<java.util.List<java.lang.Double>> points)
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified
polygon.
|
Bson |
UpdateOneModel.getFilter()
Gets the query filter.
|
Bson |
UpdateManyModel.getFilter()
Gets the query filter.
|
Bson |
ReplaceOneModel.getFilter()
Gets the query filter.
|
Bson |
DeleteOneModel.getFilter()
Gets the query filter.
|
Bson |
DeleteManyModel.getFilter()
Gets the query filter.
|
Bson |
FindOptions.getHint()
Returns the hint for which index to use.
|
Bson |
CountOptions.getHint()
Gets the hint to apply.
|
Bson |
IndexModel.getKeys()
Gets the index keys.
|
Bson |
FindOptions.getMax()
Returns the exclusive upper bound for a specific index.
|
Bson |
FindOptions.getMin()
Returns the minimum inclusive lower bound for a specific index.
|
Bson |
FindOptions.getModifiers()
Deprecated.
use the individual modifier methods instead.
|
Bson |
IndexOptions.getPartialFilterExpression()
Get the filter expression for the documents to be included in the index or null if not set
|
Bson |
FindOptions.getProjection()
Gets a document describing the fields to return for all matching documents.
|
Bson |
FindOneAndUpdateOptions.getProjection()
Gets a document describing the fields to return for all matching documents.
|
Bson |
FindOneAndReplaceOptions.getProjection()
Gets a document describing the fields to return for all matching documents.
|
Bson |
FindOneAndDeleteOptions.getProjection()
Gets a document describing the fields to return for all matching documents.
|
Bson |
GraphLookupOptions.getRestrictSearchWithMatch() |
Bson |
FindOptions.getSort()
Gets the sort criteria to apply to the query.
|
Bson |
FindOneAndUpdateOptions.getSort()
Gets the sort criteria to apply to the query.
|
Bson |
FindOneAndReplaceOptions.getSort()
Gets the sort criteria to apply to the query.
|
Bson |
FindOneAndDeleteOptions.getSort()
Gets the sort criteria to apply to the query.
|
Bson |
PushOptions.getSortDocument()
Gets the sort direction for sorting array elements that are documents.
|
Bson |
IndexOptions.getStorageEngine()
Gets the storage engine options document for this index.
|
Bson |
IndexOptionDefaults.getStorageEngine()
Gets the default storage engine options document for indexes.
|
Bson |
CreateCollectionOptions.getStorageEngineOptions()
Gets the storage engine options document for the collection.
|
Bson |
UpdateOneModel.getUpdate()
Gets the document specifying the updates to apply to the matching document.
|
Bson |
UpdateManyModel.getUpdate()
Gets the document specifying the updates to apply to the matching document.
|
Bson |
ValidationOptions.getValidator()
Gets the validation rules if set or null.
|
Bson |
BsonField.getValue()
Gets the field value
|
Bson |
IndexOptions.getWeights()
Gets the weighting object for use with a text index
|
static <TExpression> |
Aggregates.graphLookup(java.lang.String from,
TExpression startWith,
java.lang.String connectFromField,
java.lang.String connectToField,
java.lang.String as)
Creates a graphLookup pipeline stage for the specified filter
|
static <TExpression> |
Aggregates.graphLookup(java.lang.String from,
TExpression startWith,
java.lang.String connectFromField,
java.lang.String connectToField,
java.lang.String as,
GraphLookupOptions options)
Creates a graphLookup pipeline stage for the specified filter
|
static <TExpression> |
Aggregates.group(TExpression id,
BsonField... fieldAccumulators)
Creates a $group pipeline stage for the specified filter
|
static <TExpression> |
Aggregates.group(TExpression id,
java.util.List<BsonField> fieldAccumulators)
Creates a $group pipeline stage for the specified filter
|
static <TItem> Bson |
Filters.gt(java.lang.String fieldName,
TItem value)
Creates a filter that matches all documents where the value of the given field is greater than the specified value.
|
static <TItem> Bson |
Filters.gte(java.lang.String fieldName,
TItem value)
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.
|
static Bson |
Indexes.hashed(java.lang.String fieldName)
Create an index key for a hashed index on the given field.
|
static <TItem> Bson |
Filters.in(java.lang.String fieldName,
java.lang.Iterable<TItem> values)
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
|
static <TItem> Bson |
Filters.in(java.lang.String fieldName,
TItem... values)
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
|
static Bson |
Updates.inc(java.lang.String fieldName,
java.lang.Number number)
Creates an update that increments the value of the field with the given name by the given value.
|
static Bson |
Projections.include(java.util.List<java.lang.String> fieldNames)
Creates a projection that includes all of the given fields.
|
static Bson |
Projections.include(java.lang.String... fieldNames)
Creates a projection that includes all of the given fields.
|
static Bson |
Filters.jsonSchema(Bson schema)
Creates a filter that matches all documents that validate against the given JSON schema document.
|
static Bson |
Aggregates.limit(int limit)
Creates a $limit pipeline stage for the specified filter
|
static Bson |
Aggregates.lookup(java.lang.String from,
java.lang.String localField,
java.lang.String foreignField,
java.lang.String as)
Creates a $lookup pipeline stage for the specified filter
|
static <TItem> Bson |
Filters.lt(java.lang.String fieldName,
TItem value)
Creates a filter that matches all documents where the value of the given field is less than the specified value.
|
static <TItem> Bson |
Filters.lte(java.lang.String fieldName,
TItem value)
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.
|
static Bson |
Aggregates.match(Bson filter)
Creates a $match pipeline stage for the specified filter
|
static <TItem> Bson |
Updates.max(java.lang.String fieldName,
TItem value)
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the
field.
|
static Bson |
Sorts.metaTextScore(java.lang.String fieldName)
Create a sort specification for the text score meta projection on the given field.
|
static Bson |
Projections.metaTextScore(java.lang.String fieldName)
Creates a projection to the given field name of the textScore, for use with text queries.
|
static <TItem> Bson |
Updates.min(java.lang.String fieldName,
TItem value)
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the
field.
|
static Bson |
Filters.mod(java.lang.String fieldName,
long divisor,
long remainder)
Creates a filter that matches all documents where the value of a field divided by a divisor has the specified remainder (i.e.
|
static Bson |
Updates.mul(java.lang.String fieldName,
java.lang.Number number)
Creates an update that multiplies the value of the field with the given name by the given number.
|
static <TItem> Bson |
Filters.ne(java.lang.String fieldName,
TItem value)
Creates a filter that matches all documents where the value of the field name does not equal the specified value.
|
static Bson |
Filters.near(java.lang.String fieldName,
Bson geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
|
static Bson |
Filters.near(java.lang.String fieldName,
double x,
double y,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.
|
static Bson |
Filters.near(java.lang.String fieldName,
Point geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
|
static Bson |
Filters.nearSphere(java.lang.String fieldName,
Bson geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using
spherical geometry.
|
static Bson |
Filters.nearSphere(java.lang.String fieldName,
double x,
double y,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point using
spherical geometry.
|
static Bson |
Filters.nearSphere(java.lang.String fieldName,
Point geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using
spherical geometry.
|
static <TItem> Bson |
Filters.nin(java.lang.String fieldName,
java.lang.Iterable<TItem> values)
Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.
|
static <TItem> Bson |
Filters.nin(java.lang.String fieldName,
TItem... values)
Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.
|
static Bson |
Filters.nor(Bson... filters)
Creates a filter that performs a logical NOR operation on all the specified filters.
|
static Bson |
Filters.nor(java.lang.Iterable<Bson> filters)
Creates a filter that performs a logical NOR operation on all the specified filters.
|
static Bson |
Filters.not(Bson filter)
Creates a filter that matches all documents that do not match the passed in filter.
|
static Bson |
Filters.or(Bson... filters)
Creates a filter that preforms a logical OR of the provided list of filters.
|
static Bson |
Filters.or(java.lang.Iterable<Bson> filters)
Creates a filter that preforms a logical OR of the provided list of filters.
|
static Bson |
Sorts.orderBy(Bson... sorts)
Combine multiple sort specifications.
|
static Bson |
Sorts.orderBy(java.util.List<? extends Bson> sorts)
Combine multiple sort specifications.
|
private static Bson |
Sorts.orderBy(java.util.List<java.lang.String> fieldNames,
BsonValue value) |
static Bson |
Aggregates.out(java.lang.String collectionName)
Creates a $out pipeline stage for the specified filter
|
static Bson |
Updates.popFirst(java.lang.String fieldName)
Creates an update that pops the first element of an array that is the value of the field with the given name.
|
static Bson |
Updates.popLast(java.lang.String fieldName)
Creates an update that pops the last element of an array that is the value of the field with the given name.
|
static Bson |
Aggregates.project(Bson projection)
Creates a $project pipeline stage for the specified projection
|
static <TItem> Bson |
Updates.pull(java.lang.String fieldName,
TItem value)
Creates an update that removes all instances of the given value from the array value of the field with the given name.
|
static <TItem> Bson |
Updates.pullAll(java.lang.String fieldName,
java.util.List<TItem> values)
Creates an update that removes all instances of the given values from the array value of the field with the given name.
|
static Bson |
Updates.pullByFilter(Bson filter)
Creates an update that removes from an array all elements that match the given filter.
|
static <TItem> Bson |
Updates.push(java.lang.String fieldName,
TItem value)
Creates an update that adds the given value to the array value of the field with the given name.
|
static <TItem> Bson |
Updates.pushEach(java.lang.String fieldName,
java.util.List<TItem> values)
Creates an update that adds each of the given values to the array value of the field with the given name.
|
static <TItem> Bson |
Updates.pushEach(java.lang.String fieldName,
java.util.List<TItem> values,
PushOptions options)
Creates an update that adds each of the given values to the array value of the field with the given name, applying the given
options for positioning the pushed values, and then slicing and/or sorting the array.
|
static Bson |
Filters.regex(java.lang.String fieldName,
java.util.regex.Pattern pattern)
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given
options applied.
|
static Bson |
Filters.regex(java.lang.String fieldName,
java.lang.String pattern)
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given
options applied.
|
static Bson |
Filters.regex(java.lang.String fieldName,
java.lang.String pattern,
java.lang.String options)
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given
options applied.
|
static Bson |
Updates.rename(java.lang.String fieldName,
java.lang.String newFieldName)
Creates an update that renames a field.
|
static <TExpression> |
Aggregates.replaceRoot(TExpression value)
Creates a $replaceRoot pipeline stage
|
static Bson |
Aggregates.sample(int size)
Creates a $sample pipeline stage with the specified sample size
|
static <TItem> Bson |
Updates.set(java.lang.String fieldName,
TItem value)
Creates an update that sets the value of the field with the given name to the given value.
|
static <TItem> Bson |
Updates.setOnInsert(java.lang.String fieldName,
TItem value)
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that
results in an insert of a document.
|
static Bson |
Filters.size(java.lang.String fieldName,
int size)
Creates a filter that matches all documents where the value of a field is an array of the specified size.
|
static Bson |
Aggregates.skip(int skip)
Creates a $skip pipeline stage
|
static Bson |
Projections.slice(java.lang.String fieldName,
int limit)
Creates a projection to the given field name of a slice of the array value of that field.
|
static Bson |
Projections.slice(java.lang.String fieldName,
int skip,
int limit)
Creates a projection to the given field name of a slice of the array value of that field.
|
static Bson |
Aggregates.sort(Bson sort)
Creates a $sort pipeline stage for the specified sort specification
|
static <TExpression> |
Aggregates.sortByCount(TExpression filter)
Creates a $sortByCount pipeline stage for the specified filter
|
static Bson |
Indexes.text(java.lang.String fieldName)
Create an index key for a text index on the given field.
|
static Bson |
Filters.text(java.lang.String search)
Creates a filter that matches all documents matching the given search term.
|
static Bson |
Filters.text(java.lang.String search,
java.lang.String language)
Deprecated.
|
static Bson |
Filters.text(java.lang.String search,
TextSearchOptions textSearchOptions)
Creates a filter that matches all documents matching the given the search term with the given text search options.
|
static Bson |
Filters.type(java.lang.String fieldName,
BsonType type)
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
|
static Bson |
Filters.type(java.lang.String fieldName,
java.lang.String type)
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
|
static Bson |
Updates.unset(java.lang.String fieldName)
Creates an update that deletes the field with the given name.
|
static Bson |
Aggregates.unwind(java.lang.String fieldName)
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a
'$' sign. |
static Bson |
Aggregates.unwind(java.lang.String fieldName,
UnwindOptions unwindOptions)
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a
'$' sign. |
static Bson |
Filters.where(java.lang.String javaScriptExpression)
Creates a filter that matches all documents for which the given expression is true.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Bson> |
UpdateOptions.getArrayFilters()
Returns the array filters option
|
java.util.List<? extends Bson> |
FindOneAndUpdateOptions.getArrayFilters()
Returns the array filters option
|
java.util.List<? extends Bson> |
Facet.getPipeline() |
Modifier and Type | Method and Description |
---|---|
static Bson |
Filters.and(Bson... filters)
Creates a filter that performs a logical AND of the provided list of filters.
|
static Bson |
Updates.combine(Bson... updates)
Combine a list of updates into a single update.
|
static Bson |
Indexes.compoundIndex(Bson... indexes)
create a compound index specifications.
|
static Bson |
Projections.elemMatch(java.lang.String fieldName,
Bson filter)
Creates a projection that includes for the given field only the first element of the array value of that field that matches the given
query filter.
|
static Bson |
Filters.elemMatch(java.lang.String fieldName,
Bson filter)
Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the
given filter.
|
static Bson |
Projections.fields(Bson... projections)
Creates a projection that combines the list of projections into a single one.
|
static Bson |
Indexes.geoHaystack(java.lang.String fieldName,
Bson additional)
Create an index key for a geohaystack index on the given field.
|
static Bson |
Filters.geoIntersects(java.lang.String fieldName,
Bson geometry)
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
|
static Bson |
Filters.geoWithin(java.lang.String fieldName,
Bson geometry)
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
|
FindOptions |
FindOptions.hint(Bson hint)
Sets the hint for which index to use.
|
CountOptions |
CountOptions.hint(Bson hint)
Sets the hint to apply.
|
static Bson |
Filters.jsonSchema(Bson schema)
Creates a filter that matches all documents that validate against the given JSON schema document.
|
static Bson |
Aggregates.match(Bson filter)
Creates a $match pipeline stage for the specified filter
|
FindOptions |
FindOptions.max(Bson max)
Sets the exclusive upper bound for a specific index.
|
FindOptions |
FindOptions.min(Bson min)
Sets the minimum inclusive lower bound for a specific index.
|
FindOptions |
FindOptions.modifiers(Bson modifiers)
Deprecated.
use the individual modifier methods instead.
|
static Bson |
Filters.near(java.lang.String fieldName,
Bson geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
|
static Bson |
Filters.nearSphere(java.lang.String fieldName,
Bson geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using
spherical geometry.
|
static Bson |
Filters.nor(Bson... filters)
Creates a filter that performs a logical NOR operation on all the specified filters.
|
static Bson |
Filters.not(Bson filter)
Creates a filter that matches all documents that do not match the passed in filter.
|
static Bson |
Filters.or(Bson... filters)
Creates a filter that preforms a logical OR of the provided list of filters.
|
static Bson |
Sorts.orderBy(Bson... sorts)
Combine multiple sort specifications.
|
IndexOptions |
IndexOptions.partialFilterExpression(Bson partialFilterExpression)
Sets the filter expression for the documents to be included in the index
|
static Bson |
Aggregates.project(Bson projection)
Creates a $project pipeline stage for the specified projection
|
FindOptions |
FindOptions.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOneAndUpdateOptions |
FindOneAndUpdateOptions.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOneAndDeleteOptions |
FindOneAndDeleteOptions.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
static Bson |
Updates.pullByFilter(Bson filter)
Creates an update that removes from an array all elements that match the given filter.
|
GraphLookupOptions |
GraphLookupOptions.restrictSearchWithMatch(Bson filter)
A document specifying additional conditions for the recursive search
|
FindOptions |
FindOptions.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
FindOneAndUpdateOptions |
FindOneAndUpdateOptions.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
FindOneAndReplaceOptions |
FindOneAndReplaceOptions.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
FindOneAndDeleteOptions |
FindOneAndDeleteOptions.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
static Bson |
Aggregates.sort(Bson sort)
Creates a $sort pipeline stage for the specified sort specification
|
PushOptions |
PushOptions.sortDocument(Bson sortDocument)
Sets the sort direction for sorting array elements that are documents.
|
IndexOptions |
IndexOptions.storageEngine(Bson storageEngine)
Sets the storage engine options document for this index.
|
IndexOptionDefaults |
IndexOptionDefaults.storageEngine(Bson storageEngine)
Sets the default storage engine options document for indexes.
|
CreateCollectionOptions |
CreateCollectionOptions.storageEngineOptions(Bson storageEngineOptions)
Sets the storage engine options document defaults for the collection
|
ValidationOptions |
ValidationOptions.validator(Bson validator)
Sets the validation rules for all
|
IndexOptions |
IndexOptions.weights(Bson weights)
Sets the weighting object for use with a text index.
|
Modifier and Type | Method and Description |
---|---|
static Bson |
Filters.and(java.lang.Iterable<Bson> filters)
Creates a filter that performs a logical AND of the provided list of filters.
|
UpdateOptions |
UpdateOptions.arrayFilters(java.util.List<? extends Bson> arrayFilters)
Sets the array filters option
|
FindOneAndUpdateOptions |
FindOneAndUpdateOptions.arrayFilters(java.util.List<? extends Bson> arrayFilters)
Sets the array filters option
|
static Bson |
Updates.combine(java.util.List<? extends Bson> updates)
Combine a list of updates into a single update.
|
static Bson |
Indexes.compoundIndex(java.util.List<? extends Bson> indexes)
compound multiple index specifications.
|
static Bson |
Projections.fields(java.util.List<? extends Bson> projections)
Creates a projection that combines the list of projections into a single one.
|
static Bson |
Filters.nor(java.lang.Iterable<Bson> filters)
Creates a filter that performs a logical NOR operation on all the specified filters.
|
static Bson |
Filters.or(java.lang.Iterable<Bson> filters)
Creates a filter that preforms a logical OR of the provided list of filters.
|
static Bson |
Sorts.orderBy(java.util.List<? extends Bson> sorts)
Combine multiple sort specifications.
|
Constructor and Description |
---|
BsonField(java.lang.String name,
Bson value)
Construct an instance
|
DeleteManyModel(Bson filter)
Construct a new instance.
|
DeleteManyModel(Bson filter,
DeleteOptions options)
Construct a new instance.
|
DeleteOneModel(Bson filter)
Construct a new instance.
|
DeleteOneModel(Bson filter,
DeleteOptions options)
Construct a new instance.
|
ElemMatchFilterProjection(java.lang.String fieldName,
Bson filter) |
Facet(java.lang.String name,
Bson... pipeline) |
IndexModel(Bson keys)
Construct an instance with the given keys.
|
IndexModel(Bson keys,
IndexOptions options)
Construct an instance with the given keys and options.
|
NotFilter(Bson filter) |
ReplaceOneModel(Bson filter,
T replacement)
Construct a new instance.
|
ReplaceOneModel(Bson filter,
T replacement,
UpdateOptions options)
Construct a new instance.
|
SimplePipelineStage(java.lang.String name,
Bson value) |
UpdateManyModel(Bson filter,
Bson update)
Construct a new instance.
|
UpdateManyModel(Bson filter,
Bson update,
UpdateOptions options)
Construct a new instance.
|
UpdateOneModel(Bson filter,
Bson update)
Construct a new instance.
|
UpdateOneModel(Bson filter,
Bson update,
UpdateOptions options)
Construct a new instance.
|
Constructor and Description |
---|
AndFilter(java.lang.Iterable<Bson> filters) |
CompositeUpdate(java.util.List<? extends Bson> updates) |
CompoundSort(java.util.List<? extends Bson> sorts) |
Facet(java.lang.String name,
java.util.List<? extends Bson> pipeline) |
FieldsProjection(java.util.List<? extends Bson> projections) |
OrNorFilter(Filters.OrNorFilter.Operator operator,
java.lang.Iterable<Bson> filters) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractByteBufBsonDocument |
(package private) class |
ByteBufBsonDocument |
Modifier and Type | Class and Description |
---|---|
class |
BsonDocument
A type-safe container for a BSON document.
|
class |
BsonDocumentWrapper<T>
A
BsonDocument that begins its life as a document of any type and an Encoder for that document, which lets an instance of
any class with an Encoder be treated as a BsonDocument. |
class |
Document
A representation of a document as a
Map . |
class |
RawBsonDocument
An immutable BSON document that is represented using only the raw bytes.
|