Index
All Classes and Interfaces|All Packages
A
- abort() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
-
Aborts the upload and deletes any data.
- abortTransaction() - Method in interface com.mongodb.client.ClientSession
-
Abort a transaction in the context of this session.
- action(MapReduceAction) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Specify the
MapReduceAction
to be used when writing to a collection. - addKeyAltName(BsonBinary, String) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Adds a keyAltName to the keyAltNames array of the key document in the key vault collection with the given UUID.
- aggregate(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Aggregates documents according to the specified aggregation pipeline.
- aggregate(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
-
Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as
$currentOp
and$listLocalSessions
. - aggregate(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Aggregates documents according to the specified aggregation pipeline.
- aggregate(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as
$currentOp
and$listLocalSessions
. - aggregate(List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Aggregates documents according to the specified aggregation pipeline.
- aggregate(List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
-
Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as
$currentOp
and$listLocalSessions
. - aggregate(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Aggregates documents according to the specified aggregation pipeline.
- aggregate(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Runs an aggregation framework pipeline on the database for pipeline stages that do not require an underlying collection, such as
$currentOp
and$listLocalSessions
. - AggregateIterable<TResult> - Interface in com.mongodb.client
-
Iterable for aggregate.
- allowDiskUse(Boolean) - Method in interface com.mongodb.client.AggregateIterable
-
Enables writing to temporary files.
- allowDiskUse(Boolean) - Method in interface com.mongodb.client.FindIterable
-
Enables writing to temporary files on the server.
- allowDiskUse(Boolean) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Enables writing to temporary files.
- authorizedCollections(boolean) - Method in interface com.mongodb.client.ListCollectionNamesIterable
-
Sets the
authorizedCollections
field of thelistCollections
command. - authorizedDatabasesOnly(Boolean) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the authorizedDatabasesOnly flag that indicates whether the command should return just the databases which the user is authorized to see.
- available() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- available() - Method in interface com.mongodb.client.MongoCursor
-
Gets the number of results available locally without blocking, which may be 0.
B
- batchSize(int) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.FindIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
-
Sets the number of chunks to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.ListCollectionNamesIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.ListCollectionsIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.ListIndexesIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the number of documents to return per batch.
- batchSize(int) - Method in interface com.mongodb.client.MongoIterable
-
Sets the number of documents to return per batch.
- bulkWrite(ClientSession, List<? extends WriteModel<? extends TDocument>>) - Method in interface com.mongodb.client.MongoCollection
-
Executes a mix of inserts, updates, replaces, and deletes.
- bulkWrite(ClientSession, List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Executes a mix of inserts, updates, replaces, and deletes.
- bulkWrite(List<? extends WriteModel<? extends TDocument>>) - Method in interface com.mongodb.client.MongoCollection
-
Executes a mix of inserts, updates, replaces, and deletes.
- bulkWrite(List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Executes a mix of inserts, updates, replaces, and deletes.
- bypassDocumentValidation(Boolean) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the bypass document level validation flag.
- bypassDocumentValidation(Boolean) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the bypass document level validation flag.
C
- ChangeStreamIterable<TResult> - Interface in com.mongodb.client
-
Iterable for change streams.
- ClientEncryption - Interface in com.mongodb.client.vault
-
The Key vault.
- ClientEncryptions - Class in com.mongodb.client.vault
-
Factory for ClientEncryption implementations.
- ClientSession - Interface in com.mongodb.client
-
A client session that supports transactions.
- close() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- close() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
- close() - Method in interface com.mongodb.client.MongoClient
-
Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads.
- close() - Method in interface com.mongodb.client.MongoCursor
-
Despite this interface being non-thread-safe,
MongoCursor.close()
is allowed to be called concurrently with any method of the cursor, including itself. - close() - Method in interface com.mongodb.client.vault.ClientEncryption
- collation(Collation) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the collation options
- collation(Collation) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the collation options
- collation(Collation) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the collation options
- collation(Collation) - Method in interface com.mongodb.client.FindIterable
-
Sets the collation options
- collation(Collation) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the collation options
- collation(Collation) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the collation options
- collation(Collation) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the collation options
- collectionName(String) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the collectionName for the output of the MapReduce
- com.mongodb.client - package com.mongodb.client
-
This package contains the synchronous CRUD API.
- com.mongodb.client.gridfs - package com.mongodb.client.gridfs
-
This package contains the new GridFS implementation
- com.mongodb.client.vault - package com.mongodb.client.vault
-
This package contains the Key Vault API
- comment(String) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.FindIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.ListCollectionNamesIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.ListCollectionsIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.ListIndexesIterable
-
Sets the comment for this operation.
- comment(String) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.FindIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.ListCollectionNamesIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.ListCollectionsIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.ListIndexesIterable
-
Sets the comment for this operation.
- comment(BsonValue) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the comment for this operation.
- commitTransaction() - Method in interface com.mongodb.client.ClientSession
-
Commit a transaction in the context of this session.
- countDocuments() - Method in interface com.mongodb.client.MongoCollection
-
Counts the number of documents in the collection.
- countDocuments(ClientSession) - Method in interface com.mongodb.client.MongoCollection
-
Counts the number of documents in the collection.
- countDocuments(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Counts the number of documents in the collection according to the given options.
- countDocuments(ClientSession, Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
-
Counts the number of documents in the collection according to the given options.
- countDocuments(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Counts the number of documents in the collection according to the given options.
- countDocuments(Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
-
Counts the number of documents in the collection according to the given options.
- create() - Static method in class com.mongodb.client.MongoClients
-
Creates a new client with the default connection string "mongodb://localhost".
- create(MongoDatabase) - Static method in class com.mongodb.client.gridfs.GridFSBuckets
-
Create a new GridFS bucket with the default
'fs'
bucket name - create(MongoDatabase, String) - Static method in class com.mongodb.client.gridfs.GridFSBuckets
-
Create a new GridFS bucket with a custom bucket name
- create(ClientEncryptionSettings) - Static method in class com.mongodb.client.vault.ClientEncryptions
-
Create a key vault with the given options.
- create(ConnectionString) - Static method in class com.mongodb.client.MongoClients
-
Create a new client with the given connection string.
- create(ConnectionString, MongoDriverInformation) - Static method in class com.mongodb.client.MongoClients
-
Create a new client with the given connection string.
- create(MongoClientSettings) - Static method in class com.mongodb.client.MongoClients
-
Create a new client with the given client settings.
- create(MongoClientSettings, MongoDriverInformation) - Static method in class com.mongodb.client.MongoClients
-
Creates a new client with the given client settings.
- create(String) - Static method in class com.mongodb.client.MongoClients
-
Create a new client with the given connection string as if by a call to
MongoClients.create(ConnectionString)
. - createCollection(ClientSession, String) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new collection with the given name.
- createCollection(ClientSession, String, CreateCollectionOptions) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new collection with the selected options
- createCollection(String) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new collection with the given name.
- createCollection(String, CreateCollectionOptions) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new collection with the selected options
- createDataKey(String) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Create a data key with the given KMS provider.
- createDataKey(String, DataKeyOptions) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Create a data key with the given KMS provider and options.
- createEncryptedCollection(MongoDatabase, String, CreateCollectionOptions, CreateEncryptedCollectionParams) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Create a new collection with encrypted fields, automatically creating new data encryption keys when needed based on the configured
encryptedFields
, which must be specified. - createIndex(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Create an index with the given keys.
- createIndex(ClientSession, Bson, IndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Create an index with the given keys and options.
- createIndex(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Create an index with the given keys.
- createIndex(Bson, IndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Create an index with the given keys and options.
- createIndexes(ClientSession, List<IndexModel>) - Method in interface com.mongodb.client.MongoCollection
-
Create multiple indexes.
- createIndexes(ClientSession, List<IndexModel>, CreateIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Create multiple indexes.
- createIndexes(List<IndexModel>) - Method in interface com.mongodb.client.MongoCollection
-
Create multiple indexes.
- createIndexes(List<IndexModel>, CreateIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Create multiple indexes.
- createSearchIndex(String, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Create an Atlas Search index for the collection.
- createSearchIndex(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Create an Atlas Search index with
"default"
name for the collection. - createSearchIndexes(List<SearchIndexModel>) - Method in interface com.mongodb.client.MongoCollection
-
Create one or more Atlas Search indexes for the collection.
- createView(ClientSession, String, String, List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
- createView(ClientSession, String, String, List<? extends Bson>, CreateViewOptions) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
- createView(String, String, List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
- createView(String, String, List<? extends Bson>, CreateViewOptions) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
- cursor() - Method in interface com.mongodb.client.ChangeStreamIterable
-
Returns a cursor used for iterating over elements of type
ChangeStreamDocument<TResult>
. - cursor() - Method in interface com.mongodb.client.MongoIterable
-
Returns a cursor used for iterating over elements of type
TResult
. - cursorType(CursorType) - Method in interface com.mongodb.client.FindIterable
-
Sets the cursor type.
D
- databaseName(String) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the name of the database to output into.
- decrypt(BsonBinary) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Decrypt the given value.
- delete(ClientSession, BsonValue) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Given a
id
, delete this stored file's files collection document and associated chunks from a GridFS bucket. - delete(ClientSession, ObjectId) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Given a
id
, delete this stored file's files collection document and associated chunks from a GridFS bucket. - delete(BsonValue) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Given a
id
, delete this stored file's files collection document and associated chunks from a GridFS bucket. - delete(ObjectId) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Given a
id
, delete this stored file's files collection document and associated chunks from a GridFS bucket. - deleteKey(BsonBinary) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Removes the key document with the given data key from the key vault collection.
- deleteMany(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Removes all documents from the collection that match the given query filter.
- deleteMany(ClientSession, Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Removes all documents from the collection that match the given query filter.
- deleteMany(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Removes all documents from the collection that match the given query filter.
- deleteMany(Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Removes all documents from the collection that match the given query filter.
- deleteOne(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Removes at most one document from the collection that matches the given filter.
- deleteOne(ClientSession, Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Removes at most one document from the collection that matches the given filter.
- deleteOne(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Removes at most one document from the collection that matches the given filter.
- deleteOne(Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Removes at most one document from the collection that matches the given filter.
- distinct(ClientSession, String, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Gets the distinct values of the specified field name.
- distinct(ClientSession, String, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Gets the distinct values of the specified field name.
- distinct(String, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Gets the distinct values of the specified field name.
- distinct(String, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Gets the distinct values of the specified field name.
- DistinctIterable<TResult> - Interface in com.mongodb.client
-
Iterable interface for distinct.
- downloadToStream(ClientSession, String, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the latest version of the stored file specified by
filename
and writes the contents to thedestination
Stream. - downloadToStream(ClientSession, String, OutputStream, GridFSDownloadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the stored file specified by
filename
and by the revision inoptions
and writes the contents to thedestination
Stream. - downloadToStream(ClientSession, BsonValue, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the stored file specified by
id
and writes the contents to thedestination
Stream. - downloadToStream(ClientSession, ObjectId, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the stored file specified by
id
and writes the contents to thedestination
Stream. - downloadToStream(String, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the latest version of the stored file specified by
filename
and writes the contents to thedestination
Stream. - downloadToStream(String, OutputStream, GridFSDownloadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the stored file specified by
filename
and by the revision inoptions
and writes the contents to thedestination
Stream. - downloadToStream(BsonValue, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the stored file specified by
id
and writes the contents to thedestination
Stream. - downloadToStream(ObjectId, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Downloads the contents of the stored file specified by
id
and writes the contents to thedestination
Stream. - drop() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Drops the data associated with this bucket from the database.
- drop() - Method in interface com.mongodb.client.MongoCollection
-
Drops this collection from the Database.
- drop() - Method in interface com.mongodb.client.MongoDatabase
-
Drops this database.
- drop(ClientSession) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Drops the data associated with this bucket from the database.
- drop(ClientSession) - Method in interface com.mongodb.client.MongoCollection
-
Drops this collection from the Database.
- drop(ClientSession) - Method in interface com.mongodb.client.MongoDatabase
-
Drops this database.
- drop(ClientSession, DropCollectionOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drops this collection from the Database.
- drop(DropCollectionOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drops this collection from the Database.
- dropIndex(ClientSession, String) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given its name.
- dropIndex(ClientSession, String, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given its name.
- dropIndex(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given the keys used to create it.
- dropIndex(ClientSession, Bson, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given the keys used to create it.
- dropIndex(String) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given its name.
- dropIndex(String, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given its name.
- dropIndex(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given the keys used to create it.
- dropIndex(Bson, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drops the index given the keys used to create it.
- dropIndexes() - Method in interface com.mongodb.client.MongoCollection
-
Drop all the indexes on this collection, except for the default on _id.
- dropIndexes(ClientSession) - Method in interface com.mongodb.client.MongoCollection
-
Drop all the indexes on this collection, except for the default on _id.
- dropIndexes(ClientSession, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drop all the indexes on this collection, except for the default on _id.
- dropIndexes(DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
-
Drop all the indexes on this collection, except for the default on _id.
- dropSearchIndex(String) - Method in interface com.mongodb.client.MongoCollection
-
Drop an Atlas Search index given its name.
E
- encrypt(BsonValue, EncryptOptions) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Encrypt the given value with the given options.
- encryptExpression(Bson, EncryptOptions) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Encrypts a Match Expression or Aggregate Expression to query a range index.
- estimatedDocumentCount() - Method in interface com.mongodb.client.MongoCollection
-
Gets an estimate of the count of documents in a collection using collection metadata.
- estimatedDocumentCount(EstimatedDocumentCountOptions) - Method in interface com.mongodb.client.MongoCollection
-
Gets an estimate of the count of documents in a collection using collection metadata.
- execute() - Method in interface com.mongodb.client.TransactionBody
-
Execute the body of the transaction.
- explain() - Method in interface com.mongodb.client.AggregateIterable
-
Explain the execution plan for this operation with the server's default verbosity level
- explain() - Method in interface com.mongodb.client.FindIterable
-
Explain the execution plan for this operation with the server's default verbosity level
- explain() - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Explain the execution plan for this operation with the server's default verbosity level.
- explain(ExplainVerbosity) - Method in interface com.mongodb.client.AggregateIterable
-
Explain the execution plan for this operation with the given verbosity level
- explain(ExplainVerbosity) - Method in interface com.mongodb.client.FindIterable
-
Explain the execution plan for this operation with the given verbosity level
- explain(ExplainVerbosity) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Explain the execution plan for this operation with the given verbosity level.
- explain(Class<E>) - Method in interface com.mongodb.client.AggregateIterable
-
Explain the execution plan for this operation with the server's default verbosity level
- explain(Class<E>) - Method in interface com.mongodb.client.FindIterable
-
Explain the execution plan for this operation with the server's default verbosity level
- explain(Class<E>) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Explain the execution plan for this operation with the server's default verbosity level.
- explain(Class<E>, ExplainVerbosity) - Method in interface com.mongodb.client.AggregateIterable
-
Explain the execution plan for this operation with the given verbosity level
- explain(Class<E>, ExplainVerbosity) - Method in interface com.mongodb.client.FindIterable
-
Explain the execution plan for this operation with the given verbosity level
- explain(Class<E>, ExplainVerbosity) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Explain the execution plan for this operation with the given verbosity level.
F
- filter(Bson) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the query filter to apply to the query.
- filter(Bson) - Method in interface com.mongodb.client.FindIterable
-
Sets the query filter to apply to the query.
- filter(Bson) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the query filter to apply to the query.
- filter(Bson) - Method in interface com.mongodb.client.ListCollectionNamesIterable
-
Sets the query filter to apply to the query.
- filter(Bson) - Method in interface com.mongodb.client.ListCollectionsIterable
-
Sets the query filter to apply to the query.
- filter(Bson) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the query filter to apply to the returned database names.
- filter(Bson) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the query filter to apply to the query.
- finalizeFunction(String) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the JavaScript function that follows the reduce method and modifies the output.
- find() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Finds all documents in the files collection.
- find() - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(ClientSession) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Finds all documents in the files collection.
- find(ClientSession) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(ClientSession, Bson) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Finds all documents in the collection that match the filter.
- find(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(ClientSession, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(Bson) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Finds all documents in the collection that match the filter.
- find(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- find(Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Finds all documents in the collection.
- FindIterable<TResult> - Interface in com.mongodb.client
-
Iterable for find.
- findOneAndDelete(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and remove it.
- findOneAndDelete(ClientSession, Bson, FindOneAndDeleteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and remove it.
- findOneAndDelete(Bson) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and remove it.
- findOneAndDelete(Bson, FindOneAndDeleteOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and remove it.
- findOneAndReplace(ClientSession, Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and replace it.
- findOneAndReplace(ClientSession, Bson, TDocument, FindOneAndReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and replace it.
- findOneAndReplace(Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and replace it.
- findOneAndReplace(Bson, TDocument, FindOneAndReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and replace it.
- findOneAndUpdate(ClientSession, Bson, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(ClientSession, Bson, List<? extends Bson>, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(ClientSession, Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(ClientSession, Bson, Bson, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(Bson, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(Bson, List<? extends Bson>, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- findOneAndUpdate(Bson, Bson, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Atomically find a document and update it.
- first() - Method in interface com.mongodb.client.MongoIterable
-
Helper to return the first item in the iterator or null.
- flush() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
- forEachRemaining(Consumer<? super TResult>) - Method in interface com.mongodb.client.MongoCursor
- fullDocument(FullDocument) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the fullDocument value.
- fullDocumentBeforeChange(FullDocumentBeforeChange) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the fullDocumentBeforeChange value.
G
- getBucketName() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
The bucket name.
- getChunkSizeBytes() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Sets the chunk size in bytes.
- getClusterDescription() - Method in interface com.mongodb.client.MongoClient
-
Gets the current cluster description.
- getCodecRegistry() - Method in interface com.mongodb.client.MongoCluster
-
Get the codec registry for the MongoCluster.
- getCodecRegistry() - Method in interface com.mongodb.client.MongoCollection
-
Get the codec registry for the MongoCollection.
- getCodecRegistry() - Method in interface com.mongodb.client.MongoDatabase
-
Get the codec registry for the MongoDatabase.
- getCollection(String) - Method in interface com.mongodb.client.MongoDatabase
-
Gets a collection.
- getCollection(String, Class<TDocument>) - Method in interface com.mongodb.client.MongoDatabase
-
Gets a collection, with a specific default document class.
- getContext() - Method in interface com.mongodb.client.SynchronousContextProvider
-
Get the request context.
- getDatabase(String) - Method in interface com.mongodb.client.MongoCluster
-
Gets a
MongoDatabase
instance for the given database name. - getDocumentClass() - Method in interface com.mongodb.client.MongoCollection
-
Get the class of documents stored in this collection.
- getGridFSFile() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
-
Gets the corresponding
GridFSFile
for the file being downloaded - getId() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
-
Gets the
BsonValue
for the file to be uploaded - getKey(BsonBinary) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Finds a single key document with the given UUID (BSON binary subtype 0x04).
- getKeyByAltName(String) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Returns a key document in the key vault collection with the given keyAltName.
- getKeys() - Method in interface com.mongodb.client.vault.ClientEncryption
-
Finds all documents in the key vault collection.
- getName() - Method in interface com.mongodb.client.MongoDatabase
-
Gets the name of the database.
- getNamespace() - Method in interface com.mongodb.client.MongoCollection
-
Gets the namespace of this collection.
- getObjectId() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
-
Gets the
ObjectId
for the file to be uploaded or throws an error if an alternative BsonType has been used for the id. - getObjectInstance(Object, Name, Context, Hashtable<?, ?>) - Method in class com.mongodb.client.MongoClientFactory
-
This implementation will create instances of
MongoClient
based on a connection string conforming to the format specified inConnectionString
. - getPinnedServerAddress() - Method in interface com.mongodb.client.ClientSession
-
Returns the server address of the pinned mongos on this session.
- getReadConcern() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Get the read concern for the GridFSBucket.
- getReadConcern() - Method in interface com.mongodb.client.MongoCluster
-
Get the read concern for the MongoCluster.
- getReadConcern() - Method in interface com.mongodb.client.MongoCollection
-
Get the read concern for the MongoCollection.
- getReadConcern() - Method in interface com.mongodb.client.MongoDatabase
-
Get the read concern for the MongoDatabase.
- getReadPreference() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Get the read preference for the GridFSBucket.
- getReadPreference() - Method in interface com.mongodb.client.MongoCluster
-
Get the read preference for the MongoCluster.
- getReadPreference() - Method in interface com.mongodb.client.MongoCollection
-
Get the read preference for the MongoCollection.
- getReadPreference() - Method in interface com.mongodb.client.MongoDatabase
-
Get the read preference for the MongoDatabase.
- getResumeToken() - Method in interface com.mongodb.client.MongoChangeStreamCursor
-
Returns the resume token.
- getServerAddress() - Method in interface com.mongodb.client.MongoCursor
-
Returns the server address
- getServerCursor() - Method in interface com.mongodb.client.MongoCursor
-
Returns the server cursor, which can be null if the no cursor was created or if the cursor has been exhausted or killed.
- getTimeout(TimeUnit) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
The time limit for the full execution of an operation.
- getTimeout(TimeUnit) - Method in interface com.mongodb.client.MongoCluster
-
The time limit for the full execution of an operation.
- getTimeout(TimeUnit) - Method in interface com.mongodb.client.MongoCollection
-
The time limit for the full execution of an operation.
- getTimeout(TimeUnit) - Method in interface com.mongodb.client.MongoDatabase
-
The time limit for the full execution of an operation.
- getTransactionOptions() - Method in interface com.mongodb.client.ClientSession
-
Gets the transaction options.
- getWriteConcern() - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Get the write concern for the GridFSBucket.
- getWriteConcern() - Method in interface com.mongodb.client.MongoCluster
-
Get the write concern for the MongoCluster.
- getWriteConcern() - Method in interface com.mongodb.client.MongoCollection
-
Get the write concern for the MongoCollection.
- getWriteConcern() - Method in interface com.mongodb.client.MongoDatabase
-
Get the write concern for the MongoDatabase.
- GridFSBucket - Interface in com.mongodb.client.gridfs
-
Represents a GridFS Bucket
- GridFSBuckets - Class in com.mongodb.client.gridfs
-
A factory for GridFSBucket instances.
- GridFSDownloadStream - Class in com.mongodb.client.gridfs
-
A GridFS InputStream for downloading data from GridFS
- GridFSDownloadStream() - Constructor for class com.mongodb.client.gridfs.GridFSDownloadStream
- GridFSFindIterable - Interface in com.mongodb.client.gridfs
-
Iterable for the GridFS Files Collection.
- GridFSUploadStream - Class in com.mongodb.client.gridfs
-
A GridFS OutputStream for uploading data into GridFS
- GridFSUploadStream() - Constructor for class com.mongodb.client.gridfs.GridFSUploadStream
H
- hasActiveTransaction() - Method in interface com.mongodb.client.ClientSession
-
Returns true if there is an active transaction on this session, and false otherwise
- hasNext() - Method in interface com.mongodb.client.MongoCursor
- hint(Bson) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the hint for which index to use.
- hint(Bson) - Method in interface com.mongodb.client.FindIterable
-
Sets the hint for which index to use.
- hintString(String) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the hint to apply.
- hintString(String) - Method in interface com.mongodb.client.FindIterable
-
Sets the hint to apply.
I
- insertMany(ClientSession, List<? extends TDocument>) - Method in interface com.mongodb.client.MongoCollection
-
Inserts one or more documents.
- insertMany(ClientSession, List<? extends TDocument>, InsertManyOptions) - Method in interface com.mongodb.client.MongoCollection
-
Inserts one or more documents.
- insertMany(List<? extends TDocument>) - Method in interface com.mongodb.client.MongoCollection
-
Inserts one or more documents.
- insertMany(List<? extends TDocument>, InsertManyOptions) - Method in interface com.mongodb.client.MongoCollection
-
Inserts one or more documents.
- insertOne(ClientSession, TDocument) - Method in interface com.mongodb.client.MongoCollection
-
Inserts the provided document.
- insertOne(ClientSession, TDocument, InsertOneOptions) - Method in interface com.mongodb.client.MongoCollection
-
Inserts the provided document.
- insertOne(TDocument) - Method in interface com.mongodb.client.MongoCollection
-
Inserts the provided document.
- insertOne(TDocument, InsertOneOptions) - Method in interface com.mongodb.client.MongoCollection
-
Inserts the provided document.
- into(A) - Method in interface com.mongodb.client.MongoIterable
-
Iterates over all the documents, adding each to the given target.
- iterator() - Method in interface com.mongodb.client.MongoIterable
J
- jsMode(boolean) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
L
- let(Bson) - Method in interface com.mongodb.client.AggregateIterable
-
Add top-level variables to the aggregation.
- let(Bson) - Method in interface com.mongodb.client.FindIterable
-
Add top-level variables to the operation.
- limit(int) - Method in interface com.mongodb.client.FindIterable
-
Sets the limit to apply.
- limit(int) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the limit to apply.
- limit(int) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the limit to apply.
- listCollectionNames() - Method in interface com.mongodb.client.MongoDatabase
-
Gets the names of all the collections in this database.
- listCollectionNames(ClientSession) - Method in interface com.mongodb.client.MongoDatabase
-
Gets the names of all the collections in this database.
- ListCollectionNamesIterable - Interface in com.mongodb.client
-
Iterable for listing collection names.
- listCollections() - Method in interface com.mongodb.client.MongoDatabase
-
Finds all the collections in this database.
- listCollections(ClientSession) - Method in interface com.mongodb.client.MongoDatabase
-
Finds all the collections in this database.
- listCollections(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Finds all the collections in this database.
- listCollections(Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Finds all the collections in this database.
- ListCollectionsIterable<TResult> - Interface in com.mongodb.client
-
Iterable for ListCollections.
- listDatabaseNames() - Method in interface com.mongodb.client.MongoCluster
-
Get a list of the database names
- listDatabaseNames(ClientSession) - Method in interface com.mongodb.client.MongoCluster
-
Get a list of the database names
- listDatabases() - Method in interface com.mongodb.client.MongoCluster
-
Gets the list of databases
- listDatabases(ClientSession) - Method in interface com.mongodb.client.MongoCluster
-
Gets the list of databases
- listDatabases(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoCluster
-
Gets the list of databases
- listDatabases(Class<TResult>) - Method in interface com.mongodb.client.MongoCluster
-
Gets the list of databases
- ListDatabasesIterable<TResult> - Interface in com.mongodb.client
-
Iterable for ListDatabases.
- listIndexes() - Method in interface com.mongodb.client.MongoCollection
-
Get all the indexes in this collection.
- listIndexes(ClientSession) - Method in interface com.mongodb.client.MongoCollection
-
Get all the indexes in this collection.
- listIndexes(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Get all the indexes in this collection.
- listIndexes(Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Get all the indexes in this collection.
- ListIndexesIterable<TResult> - Interface in com.mongodb.client
-
Iterable for ListIndexes.
- listSearchIndexes() - Method in interface com.mongodb.client.MongoCollection
-
Get all Atlas Search indexes in this collection.
- listSearchIndexes(Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Get all Atlas Search indexes in this collection.
- ListSearchIndexesIterable<TResult> - Interface in com.mongodb.client
-
Iterable for listing Atlas Search indexes.
M
- map(Function<TResult, U>) - Method in interface com.mongodb.client.MongoIterable
-
Maps this iterable from the source document type to the target document type.
- mapReduce(ClientSession, String, String) - Method in interface com.mongodb.client.MongoCollection
-
Deprecated.Superseded by aggregate
- mapReduce(ClientSession, String, String, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Deprecated.Superseded by aggregate
- mapReduce(String, String) - Method in interface com.mongodb.client.MongoCollection
-
Deprecated.Superseded by aggregate
- mapReduce(String, String, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Deprecated.Superseded by aggregate
- MapReduceIterable<TResult> - Interface in com.mongodb.client
-
Deprecated.Superseded by aggregate
- mark() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
-
Marks the current position in this input stream.
- max(Bson) - Method in interface com.mongodb.client.FindIterable
-
Sets the exclusive upper bound for a specific index.
- maxAwaitTime(long, TimeUnit) - Method in interface com.mongodb.client.AggregateIterable
-
The maximum amount of time for the server to wait on new documents to satisfy a
$changeStream
aggregation. - maxAwaitTime(long, TimeUnit) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the maximum await execution time on the server for this operation.
- maxAwaitTime(long, TimeUnit) - Method in interface com.mongodb.client.FindIterable
-
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.FindIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.ListCollectionNamesIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.ListCollectionsIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.ListIndexesIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the maximum execution time on the server for this operation.
- maxTime(long, TimeUnit) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the maximum execution time on the server for this operation.
- min(Bson) - Method in interface com.mongodb.client.FindIterable
-
Sets the minimum inclusive lower bound for a specific index.
- MongoChangeStreamCursor<TResult> - Interface in com.mongodb.client
-
The Mongo Cursor interface for change streams implementing the iterator protocol.
- MongoClient - Interface in com.mongodb.client
-
A client-side representation of a MongoDB cluster.
- MongoClientFactory - Class in com.mongodb.client
-
A JNDI ObjectFactory for
MongoClient
instances. - MongoClientFactory() - Constructor for class com.mongodb.client.MongoClientFactory
- MongoClients - Class in com.mongodb.client
-
A factory for
MongoClient
instances. - MongoCluster - Interface in com.mongodb.client
-
The client-side representation of a MongoDB cluster operations.
- MongoCollection<TDocument> - Interface in com.mongodb.client
-
The MongoCollection interface.
- MongoCursor<TResult> - Interface in com.mongodb.client
-
The Mongo Cursor interface implementing the iterator protocol.
- MongoDatabase - Interface in com.mongodb.client
-
The MongoDatabase interface.
- MongoIterable<TResult> - Interface in com.mongodb.client
-
The MongoIterable is the results from an operation, such as a query.
N
- name(String) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the index name for this operation.
- nameOnly(Boolean) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the nameOnly flag that indicates whether the command should return just the database names or return the database names and size information.
- next() - Method in interface com.mongodb.client.MongoCursor
- noCursorTimeout(boolean) - Method in interface com.mongodb.client.FindIterable
-
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
- noCursorTimeout(boolean) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
- notifyMessageSent() - Method in interface com.mongodb.client.ClientSession
-
Notify the client session that a message has been sent.
- notifyOperationInitiated(Object) - Method in interface com.mongodb.client.ClientSession
-
Notify the client session that command execution is being initiated.
O
- openDownloadStream(ClientSession, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the latest version of the stored file specified by the
filename
. - openDownloadStream(ClientSession, String, GridFSDownloadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the stored file specified by
filename
and the revision inoptions
. - openDownloadStream(ClientSession, BsonValue) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the stored file specified by
id
. - openDownloadStream(ClientSession, ObjectId) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the stored file specified by
id
. - openDownloadStream(String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the latest version of the stored file specified by the
filename
. - openDownloadStream(String, GridFSDownloadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the stored file specified by
filename
and the revision inoptions
. - openDownloadStream(BsonValue) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the stored file specified by
id
. - openDownloadStream(ObjectId) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream from which the application can read the contents of the stored file specified by
id
. - openUploadStream(ClientSession, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(ClientSession, String, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(ClientSession, BsonValue, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(ClientSession, BsonValue, String, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(ClientSession, ObjectId, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(String, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(BsonValue, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
- openUploadStream(BsonValue, String, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Opens a Stream that the application can write the contents of the file to.
P
- partial(boolean) - Method in interface com.mongodb.client.FindIterable
-
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
- projection(Bson) - Method in interface com.mongodb.client.FindIterable
-
Sets a document describing the fields to return for all matching documents.
R
- read() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- read(byte[]) - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- read(byte[], int, int) - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- removeKeyAltName(BsonBinary, String) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Removes a keyAltName from the keyAltNames array of the key document in the key vault collection with the given id.
- rename(ClientSession, BsonValue, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Renames the stored file with the specified
id
. - rename(ClientSession, ObjectId, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Renames the stored file with the specified
id
. - rename(BsonValue, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Renames the stored file with the specified
id
. - rename(ObjectId, String) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Renames the stored file with the specified
id
. - renameCollection(ClientSession, MongoNamespace) - Method in interface com.mongodb.client.MongoCollection
-
Rename the collection with oldCollectionName to the newCollectionName.
- renameCollection(ClientSession, MongoNamespace, RenameCollectionOptions) - Method in interface com.mongodb.client.MongoCollection
-
Rename the collection with oldCollectionName to the newCollectionName.
- renameCollection(MongoNamespace) - Method in interface com.mongodb.client.MongoCollection
-
Rename the collection with oldCollectionName to the newCollectionName.
- renameCollection(MongoNamespace, RenameCollectionOptions) - Method in interface com.mongodb.client.MongoCollection
-
Rename the collection with oldCollectionName to the newCollectionName.
- replaceOne(ClientSession, Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
-
Replace a document in the collection according to the specified arguments.
- replaceOne(ClientSession, Bson, TDocument, ReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
-
Replace a document in the collection according to the specified arguments.
- replaceOne(Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
-
Replace a document in the collection according to the specified arguments.
- replaceOne(Bson, TDocument, ReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
-
Replace a document in the collection according to the specified arguments.
- reset() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- resumeAfter(BsonDocument) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets the logical starting point for the new change stream.
- returnKey(boolean) - Method in interface com.mongodb.client.FindIterable
-
Sets the returnKey.
- rewrapManyDataKey(Bson) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Decrypts multiple data keys and (re-)encrypts them with the current masterKey.
- rewrapManyDataKey(Bson, RewrapManyDataKeyOptions) - Method in interface com.mongodb.client.vault.ClientEncryption
-
Decrypts multiple data keys and (re-)encrypts them with a new masterKey, or with their current masterKey if a new one is not given.
- runCommand(ClientSession, Bson) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary()
. - runCommand(ClientSession, Bson, ReadPreference) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with the given read preference.
- runCommand(ClientSession, Bson, ReadPreference, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with the given read preference.
- runCommand(ClientSession, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary()
. - runCommand(Bson) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary()
. - runCommand(Bson, ReadPreference) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with the given read preference.
- runCommand(Bson, ReadPreference, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with the given read preference.
- runCommand(Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Executes the given command in the context of the current database with a read preference of
ReadPreference.primary()
.
S
- scope(Bson) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the global variables that are accessible in the map, reduce and finalize functions.
- showExpandedEvents(boolean) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Sets whether to include expanded change stream events, which are: createIndexes, dropIndexes, modify, create, shardCollection, reshardCollection, refineCollectionShardKey.
- showRecordId(boolean) - Method in interface com.mongodb.client.FindIterable
-
Sets the showRecordId.
- skip(int) - Method in interface com.mongodb.client.FindIterable
-
Sets the number of documents to skip.
- skip(int) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the number of documents to skip.
- skip(long) - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
- sort(Bson) - Method in interface com.mongodb.client.FindIterable
-
Sets the sort criteria to apply to the query.
- sort(Bson) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
-
Sets the sort criteria to apply to the query.
- sort(Bson) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the sort criteria to apply to the query.
- startAfter(BsonDocument) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Similar to
resumeAfter
, this option takes a resume token and starts a new change stream returning the first notification after the token. - startAtOperationTime(BsonTimestamp) - Method in interface com.mongodb.client.ChangeStreamIterable
-
The change stream will only provide changes that occurred at or after the specified timestamp.
- startSession() - Method in interface com.mongodb.client.MongoCluster
-
Creates a client session with default options.
- startSession(ClientSessionOptions) - Method in interface com.mongodb.client.MongoCluster
-
Creates a client session.
- startTransaction() - Method in interface com.mongodb.client.ClientSession
-
Start a transaction in the context of this session with default transaction options.
- startTransaction(TransactionOptions) - Method in interface com.mongodb.client.ClientSession
-
Start a transaction in the context of this session with the given transaction options.
- SynchronousContextProvider - Interface in com.mongodb.client
-
A
ContextProvider
for synchronous clients.
T
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.AggregateIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.DistinctIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.FindIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.ListCollectionsIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.ListDatabasesIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.ListIndexesIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.ListSearchIndexesIterable
-
Sets the timeoutMode for the cursor.
- timeoutMode(TimeoutMode) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets the timeoutMode for the cursor.
- toCollection() - Method in interface com.mongodb.client.AggregateIterable
-
Aggregates documents according to the specified aggregation pipeline, which must end with a $out or $merge stage.
- toCollection() - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Aggregates documents to a collection according to the specified map-reduce function with the given options, which must specify a non-inline result.
- TransactionBody<T> - Interface in com.mongodb.client
-
A functional interface representing the body of a transaction.
- tryNext() - Method in interface com.mongodb.client.MongoCursor
-
A special
next()
case that returns the next element in the iteration if available or null.
U
- updateMany(ClientSession, Bson, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(ClientSession, Bson, List<? extends Bson>, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(ClientSession, Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(ClientSession, Bson, Bson, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(Bson, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(Bson, List<? extends Bson>, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateMany(Bson, Bson, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update all documents in the collection according to the specified arguments.
- updateOne(ClientSession, Bson, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(ClientSession, Bson, List<? extends Bson>, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(ClientSession, Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(ClientSession, Bson, Bson, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(Bson, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(Bson, List<? extends Bson>, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateOne(Bson, Bson, UpdateOptions) - Method in interface com.mongodb.client.MongoCollection
-
Update a single document in the collection according to the specified arguments.
- updateSearchIndex(String, Bson) - Method in interface com.mongodb.client.MongoCollection
-
Update an Atlas Search index in the collection.
- uploadFromStream(ClientSession, String, InputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(ClientSession, String, InputStream, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(ClientSession, BsonValue, String, InputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(ClientSession, BsonValue, String, InputStream, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(String, InputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(String, InputStream, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(BsonValue, String, InputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket. - uploadFromStream(BsonValue, String, InputStream, GridFSUploadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Uploads the contents of the given
InputStream
to a GridFS bucket.
V
- verbose(boolean) - Method in interface com.mongodb.client.MapReduceIterable
-
Deprecated.Sets whether to include the timing information in the result information.
W
- watch() - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch() - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch() - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(ClientSession) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(ClientSession) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(ClientSession) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(Class<TResult>) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(List<? extends Bson>) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- watch(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCluster
-
Creates a change stream for this client.
- watch(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
-
Creates a change stream for this collection.
- watch(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoDatabase
-
Creates a change stream for this database.
- withChunkSizeBytes(int) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Create a new GridFSBucket instance with a new chunk size in bytes.
- withCodecRegistry(CodecRegistry) - Method in interface com.mongodb.client.MongoCluster
-
Create a new MongoCluster instance with a different codec registry.
- withCodecRegistry(CodecRegistry) - Method in interface com.mongodb.client.MongoCollection
-
Create a new MongoCollection instance with a different codec registry.
- withCodecRegistry(CodecRegistry) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new MongoDatabase instance with a different codec registry.
- withDocumentClass(Class<NewTDocument>) - Method in interface com.mongodb.client.MongoCollection
-
Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..
- withDocumentClass(Class<TDocument>) - Method in interface com.mongodb.client.ChangeStreamIterable
-
Returns a
MongoIterable
containing the results of the change stream based on the document class provided. - withReadConcern(ReadConcern) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Create a new GridFSBucket instance with a different read concern.
- withReadConcern(ReadConcern) - Method in interface com.mongodb.client.MongoCluster
-
Create a new MongoCluster instance with a different read concern.
- withReadConcern(ReadConcern) - Method in interface com.mongodb.client.MongoCollection
-
Create a new MongoCollection instance with a different read concern.
- withReadConcern(ReadConcern) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new MongoDatabase instance with a different read concern.
- withReadPreference(ReadPreference) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Create a new GridFSBucket instance with a different read preference.
- withReadPreference(ReadPreference) - Method in interface com.mongodb.client.MongoCluster
-
Create a new MongoCluster instance with a different read preference.
- withReadPreference(ReadPreference) - Method in interface com.mongodb.client.MongoCollection
-
Create a new MongoCollection instance with a different read preference.
- withReadPreference(ReadPreference) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new MongoDatabase instance with a different read preference.
- withTimeout(long, TimeUnit) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Create a new GridFSBucket instance with the set time limit for the full execution of an operation.
- withTimeout(long, TimeUnit) - Method in interface com.mongodb.client.MongoCluster
-
Create a new MongoCluster instance with the set time limit for the full execution of an operation.
- withTimeout(long, TimeUnit) - Method in interface com.mongodb.client.MongoCollection
-
Create a new MongoCollection instance with the set time limit for the full execution of an operation.
- withTimeout(long, TimeUnit) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new MongoDatabase instance with the set time limit for the full execution of an operation.
- withTransaction(TransactionBody<T>) - Method in interface com.mongodb.client.ClientSession
-
Execute the given function within a transaction.
- withTransaction(TransactionBody<T>, TransactionOptions) - Method in interface com.mongodb.client.ClientSession
-
Execute the given function within a transaction.
- withWriteConcern(WriteConcern) - Method in interface com.mongodb.client.gridfs.GridFSBucket
-
Create a new GridFSBucket instance with a different write concern.
- withWriteConcern(WriteConcern) - Method in interface com.mongodb.client.MongoCluster
-
Create a new MongoCluster instance with a different write concern.
- withWriteConcern(WriteConcern) - Method in interface com.mongodb.client.MongoCollection
-
Create a new MongoCollection instance with a different write concern.
- withWriteConcern(WriteConcern) - Method in interface com.mongodb.client.MongoDatabase
-
Create a new MongoDatabase instance with a different write concern.
- write(byte[]) - Method in class com.mongodb.client.gridfs.GridFSUploadStream
- write(byte[], int, int) - Method in class com.mongodb.client.gridfs.GridFSUploadStream
- write(int) - Method in class com.mongodb.client.gridfs.GridFSUploadStream
All Classes and Interfaces|All Packages