A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes All Packages

A

AbortTransactionOperation - Class in com.mongodb.operation
Deprecated.
AbortTransactionOperation(WriteConcern) - Constructor for class com.mongodb.operation.AbortTransactionOperation
Deprecated.
Construct an instance.
Accumulators - Class in com.mongodb.client.model
Builders for accumulators used in the group pipeline stage of an aggregation pipeline.
acknowledged(int, boolean, BsonValue) - Static method in class com.mongodb.WriteConcernResult
Create an acknowledged WriteConcernResult
acknowledged(int, int, int, Integer, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
acknowledged(long) - Static method in class com.mongodb.client.result.DeleteResult
Create an acknowledged DeleteResult
acknowledged(long, Long, BsonValue) - Static method in class com.mongodb.client.result.UpdateResult
Create an acknowledged UpdateResult
acknowledged(WriteRequest.Type, int, Integer, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
acknowledged(WriteRequest.Type, int, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
ACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement, using the default write concern configured on the server.
action(String) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the output action one of: "replace", "merge", "reduce"
add(ConnectionPoolListener) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
Adds the given connection pool listener to the list of listeners to invoke on connection pool events.
add(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Same as append
addClusterListener(ClusterListener) - Method in class com.mongodb.connection.ClusterSettings.Builder
Adds a cluster listener.
addCommandListener(CommandListener) - Method in class com.mongodb.MongoClientSettings.Builder
Adds the given command listener.
addConnectionPoolListener(ConnectionPoolListener) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
Adds the given connection pool listener.
addEachToSet(String, List<TItem>) - Static method in class com.mongodb.client.model.Updates
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
addErrorResult(MongoBulkWriteException, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Add an error result
addErrorResult(List<BulkWriteError>, WriteConcernError, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Add a list of error results and a write concern error
addFields(Field<?>...) - Static method in class com.mongodb.client.model.Aggregates
Creates an $addFields pipeline stage
addFields(List<Field<?>>) - Static method in class com.mongodb.client.model.Aggregates
Creates an $addFields pipeline stage
addLabel(String) - Method in exception com.mongodb.MongoException
Adds the given error label to the exception.
address(ServerAddress) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the address of the server.
addResult(BulkWriteResult, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Add a result
addServerListener(ServerListener) - Method in class com.mongodb.connection.ServerSettings.Builder
Add a server listener.
addServerMonitorListener(ServerMonitorListener) - Method in class com.mongodb.connection.ServerSettings.Builder
Adds a server monitor listener.
addToSet(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing all unique values that results from applying the given expression to each document in a group of documents that share the same group by key.
addToSet(String, TItem) - Static method in class com.mongodb.client.model.Updates
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
addTxnNumberToCommand(ServerDescription, ConnectionDescription, BsonDocument, SessionContext) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
addWriteConcernErrorResult(WriteConcernError) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Add a write concern error result
addWriteConcernToCommand(ConnectionDescription, BsonDocument, SessionContext) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
addWriteErrorResult(BulkWriteError, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Add a write error result
advanceClusterTime(BsonDocument) - Method in interface com.mongodb.session.ClientSession
 
advanceClusterTime(BsonDocument) - Method in interface com.mongodb.session.SessionContext
Advance the cluster time.
advanceOperationTime(BsonTimestamp) - Method in interface com.mongodb.session.ClientSession
Set the operation time of the last operation executed in this session.
advanceOperationTime(BsonTimestamp) - Method in interface com.mongodb.session.SessionContext
Advance the operation time.
advanceTransactionNumber() - Method in interface com.mongodb.session.ServerSession
Return the next available transaction number.
advanceTransactionNumber() - Method in interface com.mongodb.session.SessionContext
Advance the transaction number.
AFTER - com.mongodb.client.model.ReturnDocument
Indicates to return the document after the update, replacement, or insert occurred.
AggregateOperation<T> - Class in com.mongodb.operation
Deprecated.
AggregateOperation(MongoNamespace, List<BsonDocument>, Decoder<T>) - Constructor for class com.mongodb.operation.AggregateOperation
Deprecated.
Construct a new instance.
AggregateOperation(MongoNamespace, List<BsonDocument>, Decoder<T>, AggregationLevel) - Constructor for class com.mongodb.operation.AggregateOperation
Deprecated.
Construct a new instance.
AggregateResponseBatchCursor<T> - Interface in com.mongodb.operation
Deprecated.
Aggregates - Class in com.mongodb.client.model
Builders for aggregation pipeline stages.
AggregateToCollectionOperation - Class in com.mongodb.operation
Deprecated.
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>, ReadConcern) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Construct a new instance.
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>, ReadConcern, WriteConcern) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Construct a new instance.
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>, ReadConcern, WriteConcern, AggregationLevel) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Construct a new instance.
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>, WriteConcern) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Construct a new instance.
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>, WriteConcern, AggregationLevel) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Construct a new instance.
AggregationLevel - Enum in com.mongodb.client.model
Deprecated.
all(String, Iterable<TItem>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
all(String, TItem...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.
ALL_PLANS_EXECUTIONS - com.mongodb.ExplainVerbosity
Runs the query optimizer and chooses the winning plan, but then runs all generated plans to completion.
allocator(ByteBufAllocator) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
Sets the allocator.
allowDiskUse(Boolean) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Enables writing to temporary files.
allowDiskUse(Boolean) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Enables writing to temporary files.
and(Iterable<Bson>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that performs a logical AND of the provided list of filters.
and(Bson...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that performs a logical AND of the provided list of filters.
append(String, Object) - Method in class com.mongodb.BasicDBObject
Add a key/value pair to this object
append(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Appends the key/value to the active object
applicationName(String) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the logical name of the application using this MongoClient.
apply(T) - Method in interface com.mongodb.Block
Apply some logic to the value.
apply(T) - Method in interface com.mongodb.Function
Yield an appropriate result object for the input object.
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.ClusterSettings.Builder
Takes the settings from the given ConnectionString and applies them to the builder
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
Takes the settings from the given ConnectionString and applies them to the builder
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.ServerSettings.Builder
Takes the settings from the given ConnectionString and applies them to the builder
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.SocketSettings.Builder
Takes the settings from the given ConnectionString and applies them to the builder
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.SslSettings.Builder
Takes the settings from the given ConnectionString and applies them to the builder
applyConnectionString(ConnectionString) - Method in class com.mongodb.MongoClientSettings.Builder
Takes the settings from the given ConnectionString and applies them to the builder
applySettings(ClusterSettings) - Method in class com.mongodb.connection.ClusterSettings.Builder
Applies the clusterSettings to the builder
applySettings(ConnectionPoolSettings) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
Applies the connectionPoolSettings to the builder
applySettings(ServerSettings) - Method in class com.mongodb.connection.ServerSettings.Builder
Applies the serverSettings to the builder
applySettings(SocketSettings) - Method in class com.mongodb.connection.SocketSettings.Builder
Applies the socketSettings to the builder
applySettings(SslSettings) - Method in class com.mongodb.connection.SslSettings.Builder
Applies the sslSettings to the builder
applyToClusterSettings(Block<ClusterSettings.Builder>) - Method in class com.mongodb.MongoClientSettings.Builder
Applies the ClusterSettings.Builder block and then sets the clusterSettings.
applyToConnectionPoolSettings(Block<ConnectionPoolSettings.Builder>) - Method in class com.mongodb.MongoClientSettings.Builder
Applies the ConnectionPoolSettings.Builder block and then sets the connectionPoolSettings.
applyToServerSettings(Block<ServerSettings.Builder>) - Method in class com.mongodb.MongoClientSettings.Builder
Applies the ServerSettings.Builder block and then sets the serverSettings.
applyToSocketSettings(Block<SocketSettings.Builder>) - Method in class com.mongodb.MongoClientSettings.Builder
Applies the SocketSettings.Builder block and then sets the socketSettings.
applyToSslSettings(Block<SslSettings.Builder>) - Method in class com.mongodb.MongoClientSettings.Builder
Applies the SslSettings.Builder block and then sets the sslSettings.
arbiters(Set<String>) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the arbiters in the replica set
arrayFilters(List<? extends Bson>) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the array filters option
arrayFilters(List<? extends Bson>) - Method in class com.mongodb.client.model.UpdateOptions
Sets the array filters option
arrayFilters(List<BsonDocument>) - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Sets the array filters option
arrayFilters(List<BsonDocument>) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets the array filters option
ASC - com.mongodb.operation.OrderBy
Deprecated.
Ascending order
ascending(String...) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
ascending(String...) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for an ascending sort on the given fields.
ascending(List<String>) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
ascending(List<String>) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for an ascending sort on the given fields.
asDocument() - Method in class com.mongodb.client.model.Collation
Gets this collation options as a document.
asDocument() - Method in class com.mongodb.ReadConcern
Gets this read concern as a document.
asDocument() - Method in class com.mongodb.WriteConcern
Gets this write concern as a document.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets an operation whose execution explains this operation.
Assertions - Class in com.mongodb.assertions
Design by contract assertions.
AsyncAggregateResponseBatchCursor<T> - Interface in com.mongodb.async
Deprecated.
AsyncBatchCursor<T> - Interface in com.mongodb.async
Deprecated.
Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
AsyncClusterBinding - Class in com.mongodb.binding
Deprecated.
AsyncClusterBinding(Cluster, ReadPreference) - Constructor for class com.mongodb.binding.AsyncClusterBinding
AsyncClusterBinding(Cluster, ReadPreference, ReadConcern) - Constructor for class com.mongodb.binding.AsyncClusterBinding
Deprecated.
Creates an instance.
AsyncCompletionHandler<T> - Interface in com.mongodb.connection
Completion handler for asynchronous I/O.
AsyncConnection - Interface in com.mongodb.connection
Deprecated.
AsyncConnectionSource - Interface in com.mongodb.binding
Deprecated.
AsynchronousSocketChannelStreamFactory - Class in com.mongodb.connection
Factory to create a Stream that's an AsynchronousSocketChannelStream.
AsynchronousSocketChannelStreamFactory(SocketSettings, SslSettings) - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactory
Create a new factory with the default BufferProvider and AsynchronousChannelGroup.
AsynchronousSocketChannelStreamFactory(SocketSettings, SslSettings, AsynchronousChannelGroup) - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactory
Create a new factory.
AsynchronousSocketChannelStreamFactoryFactory - Class in com.mongodb.connection
A StreamFactoryFactory implementation for AsynchronousSocketChannel-based streams.
AsynchronousSocketChannelStreamFactoryFactory() - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
Deprecated.
Use AsynchronousSocketChannelStreamFactoryFactory.builder() instead to construct the AsynchronousSocketChannelStreamFactoryFactory.
AsynchronousSocketChannelStreamFactoryFactory.Builder - Class in com.mongodb.connection
A builder for an instance of AsynchronousSocketChannelStreamFactoryFactory.
AsyncOperationExecutor - Interface in com.mongodb.operation
Deprecated.
there is no replacement for this interface
AsyncReadBinding - Interface in com.mongodb.binding
Deprecated.
AsyncReadOperation<T> - Interface in com.mongodb.operation
Deprecated.
AsyncReadWriteBinding - Interface in com.mongodb.binding
Deprecated.
AsyncSingleConnectionReadBinding - Class in com.mongodb.binding
Deprecated.
AsyncSingleConnectionReadBinding(ReadPreference, ServerDescription, AsyncConnection) - Constructor for class com.mongodb.binding.AsyncSingleConnectionReadBinding
Deprecated.
Construct an instance.
AsyncSingleServerBinding - Class in com.mongodb.binding
Deprecated.
AsyncSingleServerBinding(Cluster, ServerAddress) - Constructor for class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
Creates an instance, defaulting to ReadPreference.primary() for reads.
AsyncSingleServerBinding(Cluster, ServerAddress, ReadPreference) - Constructor for class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
Creates an instance.
AsyncWriteBinding - Interface in com.mongodb.binding
Deprecated.
AsyncWriteOperation<T> - Interface in com.mongodb.operation
Deprecated.
AuthenticationMechanism - Enum in com.mongodb
An enumeration of the MongodDB-supported authentication mechanisms.
autoEncryptionSettings(AutoEncryptionSettings) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the auto-encryption settings
AutoEncryptionSettings - Class in com.mongodb
The client-side automatic encryption settings.
AutoEncryptionSettings.Builder - Class in com.mongodb
A builder for AutoEncryptionSettings so that AutoEncryptionSettings can be immutable, and to support easier construction through chaining.
autoIndex(boolean) - Method in class com.mongodb.client.model.CreateCollectionOptions
Deprecated.
this option was deprecated in MongoDB 3.2 and removed in MongodB 4.0
autoIndex(boolean) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets if _id field of the collection is indexed.
AVAILABLE - com.mongodb.ReadConcernLevel
The available read concern level.
AVAILABLE - Static variable in class com.mongodb.ReadConcern
The available read concern.
avg(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the average of the values of the given expression when applied to all members of the group.

B

background(boolean) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Should the index should be created in the background
background(boolean) - Method in class com.mongodb.client.model.IndexOptions
Should the index should be created in the background
backwards(Boolean) - Method in class com.mongodb.client.model.Collation.Builder
Sets the backwards value
BaseFindAndModifyOperation<T> - Class in com.mongodb.operation
Deprecated.
BaseFindAndModifyOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>) - Constructor for class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
Construct a new instance.
BaseWriteOperation - Class in com.mongodb.operation
Deprecated.
BaseWriteOperation(MongoNamespace, boolean, WriteConcern) - Constructor for class com.mongodb.operation.BaseWriteOperation
BaseWriteOperation(MongoNamespace, boolean, WriteConcern, boolean) - Constructor for class com.mongodb.operation.BaseWriteOperation
Deprecated.
Construct an instance
BasicDBList - Class in com.mongodb
An implementation of List that reflects the way BSON lists work.
BasicDBList() - Constructor for class com.mongodb.BasicDBList
 
BasicDBObject - Class in com.mongodb
A basic implementation of BSON object that is MongoDB specific.
BasicDBObject() - Constructor for class com.mongodb.BasicDBObject
Creates an empty object.
BasicDBObject(int) - Constructor for class com.mongodb.BasicDBObject
Creates an empty object
BasicDBObject(String, Object) - Constructor for class com.mongodb.BasicDBObject
Creates an object with the given key/value
BasicDBObject(Map) - Constructor for class com.mongodb.BasicDBObject
Creates an object from a map.
BasicDBObjectBuilder - Class in com.mongodb
Utility for building complex objects.
BasicDBObjectBuilder() - Constructor for class com.mongodb.BasicDBObjectBuilder
Creates a builder intialized with an empty document.
BatchCursor<T> - Interface in com.mongodb.operation
Deprecated.
batchSize(int) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.client.model.ParallelCollectionScanOptions
Deprecated.
The batch size to use for each cursor.
batchSize(int) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
The batch size to use for each cursor.
batchSize(Integer) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Sets the number of documents to return per batch.
batchSize(Integer) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Sets the number of documents to return per batch.
BEFORE - com.mongodb.client.model.ReturnDocument
Indicates to return the document before the update, replacement, or insert occurred.
Beta - Annotation Type in com.mongodb.annotations
Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.
bits(Integer) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
bits(Integer) - Method in class com.mongodb.client.model.IndexOptions
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
bitsAllClear(String, long) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where all of the bit positions are clear in the field.
bitsAllSet(String, long) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where all of the bit positions are set in the field.
bitsAnyClear(String, long) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where any of the bit positions are clear in the field.
bitsAnySet(String, long) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where any of the bit positions are set in the field.
bitwiseAnd(String, int) - Static method in class com.mongodb.client.model.Updates
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
bitwiseAnd(String, long) - Static method in class com.mongodb.client.model.Updates
Creates an update that performs a bitwise and between the given long value and the integral value of the field with the given name.
bitwiseOr(String, int) - Static method in class com.mongodb.client.model.Updates
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
bitwiseOr(String, long) - Static method in class com.mongodb.client.model.Updates
Creates an update that performs a bitwise or between the given long value and the integral value of the field with the given name.
bitwiseXor(String, int) - Static method in class com.mongodb.client.model.Updates
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
bitwiseXor(String, long) - Static method in class com.mongodb.client.model.Updates
Creates an update that performs a bitwise xor between the given long value and the integral value of the field with the given name.
Block<T> - Interface in com.mongodb
An interface for applying some logic against the given parameter.
BsonField - Class in com.mongodb.client.model
A representation of a BSON document field whose value is another BSON document.
BsonField(String, Bson) - Constructor for class com.mongodb.client.model.BsonField
Construct an instance
BSONTimestampCodec - Class in com.mongodb
Knows how to encode and decode BSON timestamps.
BSONTimestampCodec() - Constructor for class com.mongodb.BSONTimestampCodec
 
bucket(TExpression, List<Boundary>) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucket pipeline stage
bucket(TExpression, List<TBoundary>, BucketOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucket pipeline stage
bucketAuto(TExpression, int) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucketAuto pipeline stage
bucketAuto(TExpression, int, BucketAutoOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucketAuto pipeline stage
BucketAutoOptions - Class in com.mongodb.client.model
The options for a $bucketAuto aggregation pipeline stage
BucketAutoOptions() - Constructor for class com.mongodb.client.model.BucketAutoOptions
 
BucketGranularity - Enum in com.mongodb.client.model
Granularity values for automatic bucketing.
BucketOptions - Class in com.mongodb.client.model
The options for a $bucket aggregation pipeline stage
BucketOptions() - Constructor for class com.mongodb.client.model.BucketOptions
 
bucketSize(Double) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
bucketSize(Double) - Method in class com.mongodb.client.model.IndexOptions
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
BufferProvider - Interface in com.mongodb.connection
A provider of instances of ByteBuf.
build() - Method in class com.mongodb.AutoEncryptionSettings.Builder
Build an instance of AutoEncryptionSettings.
build() - Method in class com.mongodb.client.model.Collation.Builder
Creates a new Collation object with the settings initialised on this builder.
build() - Method in class com.mongodb.ClientEncryptionSettings.Builder
Build an instance of ClientEncryptionSettings.
build() - Method in class com.mongodb.ClientSessionOptions.Builder
Build the session options instance.
build() - Method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory.Builder
Build an instance of AsynchronousSocketChannelStreamFactoryFactory.
build() - Method in class com.mongodb.connection.ClusterSettings.Builder
Build the settings from the builder.
build() - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
Creates a new ConnectionPoolSettings object with the settings initialised on this builder.
build() - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
Build an instance of NettyStreamFactoryFactory.
build() - Method in class com.mongodb.connection.ServerDescription.Builder
Create a new ServerDescription from the settings in this builder.
build() - Method in class com.mongodb.connection.ServerSettings.Builder
Create a new ServerSettings from the settings applied to this builder.
build() - Method in class com.mongodb.connection.SocketSettings.Builder
Build an instance of SocketSettings.
build() - Method in class com.mongodb.connection.SslSettings.Builder
Create a new SSLSettings from the settings in this builder.
build() - Method in class com.mongodb.MongoClientSettings.Builder
Build an instance of MongoClientSettings.
build() - Method in class com.mongodb.MongoDriverInformation.Builder
 
build() - Method in class com.mongodb.TransactionOptions.Builder
Build the transaction options instance.
builder() - Static method in class com.mongodb.AutoEncryptionSettings
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.client.model.Collation
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.ClientEncryptionSettings
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.ClientSessionOptions
Gets an instance of a builder
builder() - Static method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
Gets a builder for an instance of AsynchronousSocketChannelStreamFactoryFactory.
builder() - Static method in class com.mongodb.connection.ClusterSettings
Get a builder for this class.
builder() - Static method in class com.mongodb.connection.ConnectionPoolSettings
Gets a Builder for creating a new ConnectionPoolSettings instance.
builder() - Static method in class com.mongodb.connection.netty.NettyStreamFactoryFactory
Gets a builder for an instance of NettyStreamFactoryFactory.
builder() - Static method in class com.mongodb.connection.ServerDescription
Gets a Builder for creating a new ServerDescription instance.
builder() - Static method in class com.mongodb.connection.ServerSettings
Creates a builder for ServerSettings.
builder() - Static method in class com.mongodb.connection.SocketSettings
Gets a builder for an instance of SocketSettings.
builder() - Static method in class com.mongodb.connection.SslSettings
Gets a Builder for creating a new SSLSettings instance.
builder() - Static method in class com.mongodb.MongoClientSettings
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.MongoDriverInformation
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.TransactionOptions
Gets an instance of a builder
builder(Collation) - Static method in class com.mongodb.client.model.Collation
Convenience method to create a from an existing Collation.
builder(ClientSessionOptions) - Static method in class com.mongodb.ClientSessionOptions
Gets an instance of a builder initialized with the given options
builder(ClusterSettings) - Static method in class com.mongodb.connection.ClusterSettings
Creates a builder instance.
builder(ConnectionPoolSettings) - Static method in class com.mongodb.connection.ConnectionPoolSettings
Gets a Builder for creating a new ConnectionPoolSettings instance.
builder(ServerSettings) - Static method in class com.mongodb.connection.ServerSettings
Creates a builder instance.
builder(SocketSettings) - Static method in class com.mongodb.connection.SocketSettings
Creates a builder instance.
builder(SslSettings) - Static method in class com.mongodb.connection.SslSettings
Creates a builder instance.
builder(MongoClientSettings) - Static method in class com.mongodb.MongoClientSettings
Convenience method to create a from an existing MongoClientSettings.
builder(MongoDriverInformation) - Static method in class com.mongodb.MongoDriverInformation
Convenience method to create a Builder.
Builder() - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory.Builder
 
Builder() - Constructor for class com.mongodb.connection.ServerDescription.Builder
 
BulkWriteBatchCombiner - Class in com.mongodb.connection
Deprecated.
BulkWriteBatchCombiner(ServerAddress, boolean, WriteConcern) - Constructor for class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Construct an instance.
BulkWriteError - Class in com.mongodb.bulk
Represents an error for an item included in a bulk write operation, e.g.
BulkWriteError(int, String, BsonDocument, int) - Constructor for class com.mongodb.bulk.BulkWriteError
Constructs a new instance.
BulkWriteOptions - Class in com.mongodb.client.model
The options to apply to a bulk write.
BulkWriteOptions() - Constructor for class com.mongodb.client.model.BulkWriteOptions
 
BulkWriteResult - Class in com.mongodb.bulk
The result of a successful bulk write operation.
BulkWriteResult() - Constructor for class com.mongodb.bulk.BulkWriteResult
 
BulkWriteUpsert - Class in com.mongodb.bulk
Represents an item in the bulk write that was upserted.
BulkWriteUpsert(int, BsonValue) - Constructor for class com.mongodb.bulk.BulkWriteUpsert
Construct an instance.
bypassAutoEncryption(boolean) - Method in class com.mongodb.AutoEncryptionSettings.Builder
Sets whether auto-encryption should be bypassed.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.BulkWriteOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.InsertManyOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.InsertOneOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.ReplaceOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.UpdateOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Sets the bypass document level validation flag.
ByteBufferBsonOutput - Class in com.mongodb.connection
Deprecated.
ByteBufferBsonOutput(BufferProvider) - Constructor for class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
Construct an instance that uses the given buffer provider to allocate byte buffers as needs as it grows.

C

callGetLastError() - Method in class com.mongodb.WriteConcern
Deprecated.
canonicalAddress(String) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the canonical host name and port of this server.
CANONICALIZE_HOST_NAME_KEY - Static variable in class com.mongodb.MongoCredential
Mechanism property key for specifying whether to canonicalize the host name for GSSAPI authentication.
capped(boolean) - Method in class com.mongodb.client.model.CreateCollectionOptions
sets whether the collection is capped.
capped(boolean) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets whether the collection is capped.
caseLevel(Boolean) - Method in class com.mongodb.client.model.Collation.Builder
Sets the case level value
caseSensitive(Boolean) - Method in class com.mongodb.client.model.TextSearchOptions
Set the case-sensitive flag for the text search
causallyConsistent(boolean) - Method in class com.mongodb.ClientSessionOptions.Builder
Sets whether operations using the session should causally consistent with each other.
ChangeStreamDocument<TDocument> - Class in com.mongodb.client.model.changestream
Represents the $changeStream aggregation output document.
ChangeStreamDocument(OperationType, BsonDocument, BsonDocument, BsonDocument, TDocument, BsonDocument, BsonTimestamp, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
Deprecated.
ChangeStreamDocument(OperationType, BsonDocument, BsonDocument, BsonDocument, TDocument, BsonDocument, BsonTimestamp, UpdateDescription, BsonInt64, BsonDocument) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
Creates a new instance
ChangeStreamDocument(BsonDocument, MongoNamespace, TDocument, BsonDocument, OperationType, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
ChangeStreamDocument(BsonDocument, MongoNamespace, TDocument, BsonDocument, BsonTimestamp, OperationType, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
ChangeStreamDocument(BsonDocument, BsonDocument, TDocument, BsonDocument, BsonTimestamp, OperationType, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
Deprecated.
ChangeStreamLevel - Enum in com.mongodb.client.model.changestream
Deprecated.
ChangeStreamOperation<T> - Class in com.mongodb.operation
Deprecated.
ChangeStreamOperation(MongoNamespace, FullDocument, List<BsonDocument>, Decoder<T>) - Constructor for class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Construct a new instance.
ChangeStreamOperation(MongoNamespace, FullDocument, List<BsonDocument>, Decoder<T>, ChangeStreamLevel) - Constructor for class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Construct a new instance.
checkCollectionNameValidity(String) - Static method in class com.mongodb.MongoNamespace
Check the validity of the given collection name.
checkDatabaseNameValidity(String) - Static method in class com.mongodb.MongoNamespace
Check the validity of the given database name.
choose(ClusterDescription) - Method in class com.mongodb.ReadPreference
Chooses the servers from the given cluster than match this read preference.
chooseForNonReplicaSet(ClusterDescription) - Method in class com.mongodb.ReadPreference
 
chooseForNonReplicaSet(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference
 
chooseForReplicaSet(ClusterDescription) - Method in class com.mongodb.ReadPreference
 
chunkSizeBytes(Integer) - Method in class com.mongodb.client.gridfs.model.GridFSUploadOptions
Sets the chunk size in bytes.
CLIENT - com.mongodb.client.model.changestream.ChangeStreamLevel
Deprecated.
Observing all changes on the Client
ClientEncryptionSettings - Class in com.mongodb
The client-side settings for data key creation and explicit encryption.
ClientEncryptionSettings.Builder - Class in com.mongodb
A builder for ClientEncryptionSettings so that ClientEncryptionSettings can be immutable, and to support easier construction through chaining.
ClientSession - Interface in com.mongodb.session
A client session.
ClientSessionOptions - Class in com.mongodb
The options to apply to a ClientSession.
ClientSessionOptions.Builder - Class in com.mongodb
A builder for instances of ClientSession
close() - Method in interface com.mongodb.async.AsyncBatchCursor
Deprecated.
 
close() - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
close() - Method in interface com.mongodb.connection.Cluster
Deprecated.
Closes connections to the servers in the cluster.
close() - Method in interface com.mongodb.connection.Stream
Closes the connection.
close() - Method in class com.mongodb.connection.TlsChannelStreamFactoryFactory
 
close() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
 
close() - Method in interface com.mongodb.session.ClientSession
 
Cluster - Interface in com.mongodb.connection
Deprecated.
ClusterBinding - Class in com.mongodb.binding
Deprecated.
ClusterBinding(Cluster, ReadPreference) - Constructor for class com.mongodb.binding.ClusterBinding
ClusterBinding(Cluster, ReadPreference, ReadConcern) - Constructor for class com.mongodb.binding.ClusterBinding
Deprecated.
Creates an instance.
clusterClosed(ClusterClosedEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
 
clusterClosed(ClusterClosedEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is closed.
clusterClosed(ClusterClosedEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
ClusterClosedEvent - Class in com.mongodb.event
A cluster closed event.
ClusterClosedEvent(ClusterId) - Constructor for class com.mongodb.event.ClusterClosedEvent
Constructs a new instance of the event.
ClusterConnectionMode - Enum in com.mongodb.connection
The cluster connection mode.
ClusterDescription - Class in com.mongodb.connection
Immutable snapshot state of a cluster.
ClusterDescription(ClusterConnectionMode, ClusterType, MongoException, List<ServerDescription>, ClusterSettings, ServerSettings) - Constructor for class com.mongodb.connection.ClusterDescription
Creates a new ClusterDescription.
ClusterDescription(ClusterConnectionMode, ClusterType, List<ServerDescription>) - Constructor for class com.mongodb.connection.ClusterDescription
Creates a new ClusterDescription.
ClusterDescription(ClusterConnectionMode, ClusterType, List<ServerDescription>, ClusterSettings, ServerSettings) - Constructor for class com.mongodb.connection.ClusterDescription
Creates a new ClusterDescription.
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
 
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster description changes.
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
ClusterDescriptionChangedEvent - Class in com.mongodb.event
An event signifying that the cluster description has changed.
ClusterDescriptionChangedEvent(ClusterId, ClusterDescription, ClusterDescription) - Constructor for class com.mongodb.event.ClusterDescriptionChangedEvent
Constructs a new instance of the event.
ClusterEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple cluster listeners instead
ClusterEventMulticaster(List<ClusterListener>) - Constructor for class com.mongodb.event.ClusterEventMulticaster
Deprecated.
Construct an instance with the given list of cluster listeners
ClusterFactory - Interface in com.mongodb.connection
Deprecated.
ClusterId - Class in com.mongodb.connection
A client-generated identifier that uniquely identifies a connection to a MongoDB cluster, which could be sharded, replica set, or standalone.
ClusterId() - Constructor for class com.mongodb.connection.ClusterId
Construct an instance.
ClusterId(String) - Constructor for class com.mongodb.connection.ClusterId
Construct an instance.
ClusterListener - Interface in com.mongodb.event
A listener for cluster-related events.
ClusterListenerAdapter - Class in com.mongodb.event
An adapter for cluster listener implementations, for clients that want to listen for a subset of cluster events.
ClusterListenerAdapter() - Constructor for class com.mongodb.event.ClusterListenerAdapter
 
clusterOpening(ClusterOpeningEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
 
clusterOpening(ClusterOpeningEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is opened.
clusterOpening(ClusterOpeningEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
ClusterOpeningEvent - Class in com.mongodb.event
A cluster opening event.
ClusterOpeningEvent(ClusterId) - Constructor for class com.mongodb.event.ClusterOpeningEvent
Constructs a new instance of the event.
ClusterSettings - Class in com.mongodb.connection
Settings for the cluster.
ClusterSettings.Builder - Class in com.mongodb.connection
A builder for the cluster settings.
ClusterType - Enum in com.mongodb.connection
An enumeration of all possible cluster types.
codecRegistry(CodecRegistry) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the codec registry
collation(Collation) - Method in class com.mongodb.bulk.DeleteRequest
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.CountOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.CreateCollectionOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.CreateViewOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.DeleteOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.IndexOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.ReplaceOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.UpdateOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Sets the default collation for the view.
collation(Collation) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the collation options
Collation - Class in com.mongodb.client.model
The options regarding collation support in MongoDB 3.4+
Collation.Builder - Class in com.mongodb.client.model
A Collation builder.
collationAlternate(CollationAlternate) - Method in class com.mongodb.client.model.Collation.Builder
Sets the alternate
CollationAlternate - Enum in com.mongodb.client.model
Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
collationCaseFirst(CollationCaseFirst) - Method in class com.mongodb.client.model.Collation.Builder
Sets the collation case first value
CollationCaseFirst - Enum in com.mongodb.client.model
Collation support allows the specific configuration of how character cases are handled.
collationMaxVariable(CollationMaxVariable) - Method in class com.mongodb.client.model.Collation.Builder
Sets the maxVariable
CollationMaxVariable - Enum in com.mongodb.client.model
Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
collationStrength(CollationStrength) - Method in class com.mongodb.client.model.Collation.Builder
Sets the collation strength
CollationStrength - Enum in com.mongodb.client.model
Collation support allows the specific configuration of how differences between characters are handled.
COLLECTION - com.mongodb.client.model.AggregationLevel
Deprecated.
Collection level aggregation
COLLECTION - com.mongodb.client.model.changestream.ChangeStreamLevel
Deprecated.
Observing all changes on a specific collection
com.mongodb - package com.mongodb
The core mongodb package
com.mongodb.annotations - package com.mongodb.annotations
Contains annotations that can apply to any part of the driver code.
com.mongodb.assertions - package com.mongodb.assertions
Contains design by contract assertions
com.mongodb.async - package com.mongodb.async
This package contains async interfaces
com.mongodb.binding - package com.mongodb.binding
This package contains classes that manage binding to MongoDB servers for various operations.
com.mongodb.bulk - package com.mongodb.bulk
Contains classes for representing the result of a bulk write operation.
com.mongodb.client.gridfs.codecs - package com.mongodb.client.gridfs.codecs
This package contains codecs for use with GridFS
com.mongodb.client.gridfs.model - package com.mongodb.client.gridfs.model
This package contains models for use with GridFS
com.mongodb.client.model - package com.mongodb.client.model
This package contains models and options that help describe MongoCollection operations
com.mongodb.client.model.changestream - package com.mongodb.client.model.changestream
This package contains classes for the change stream api
com.mongodb.client.model.geojson - package com.mongodb.client.model.geojson
This package contains classes that represent GeoJSON objects.
com.mongodb.client.model.geojson.codecs - package com.mongodb.client.model.geojson.codecs
This package contains classes that encode and decode GeoJSON objects.
com.mongodb.client.model.vault - package com.mongodb.client.model.vault
This package contains options classes for the key vault API
com.mongodb.client.result - package com.mongodb.client.result
This package contains classes representing operation results
com.mongodb.connection - package com.mongodb.connection
Contains classes that manage connecting to MongoDB servers.
com.mongodb.connection.netty - package com.mongodb.connection.netty
This package contains netty specific classes
com.mongodb.diagnostics.logging - package com.mongodb.diagnostics.logging
This package contains logging classes
com.mongodb.event - package com.mongodb.event
This package contains cluster and connection event related classes
com.mongodb.lang - package com.mongodb.lang
This package contains JSR 305-compatible annotations related to nullability.
com.mongodb.management - package com.mongodb.management
Contains classes for monitoring the server/driver via Java Management Extensions (JMX).
com.mongodb.operation - package com.mongodb.operation
The core of the MongoDB driver works via operations, using the command pattern.
com.mongodb.selector - package com.mongodb.selector
Contains classes that determine how to select the server to connect to in order to send commands or queries.
com.mongodb.session - package com.mongodb.session
Contains classes related to sessions
combine(List<? extends Bson>) - Static method in class com.mongodb.client.model.Updates
Combine a list of updates into a single update.
combine(Bson...) - Static method in class com.mongodb.client.model.Updates
Combine a list of updates into a single update.
command(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>) - Method in interface com.mongodb.connection.Connection
command(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext) - Method in interface com.mongodb.connection.Connection
Deprecated.
Execute the command.
command(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, boolean, SplittablePayload, FieldNameValidator) - Method in interface com.mongodb.connection.Connection
Deprecated.
Executes the command, consuming as much of the SplittablePayload as possible.
COMMAND_COLLECTION_NAME - Static variable in class com.mongodb.MongoNamespace
 
commandAsync(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>, SingleResultCallback<T>) - Method in interface com.mongodb.connection.AsyncConnection
commandAsync(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, boolean, SplittablePayload, FieldNameValidator, SingleResultCallback<T>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Executes the command, consuming as much of the SplittablePayload as possible.
commandAsync(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, SingleResultCallback<T>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Execute the command.
CommandEvent - Class in com.mongodb.event
An event representing a MongoDB database command.
CommandEvent(int, ConnectionDescription, String) - Constructor for class com.mongodb.event.CommandEvent
Construct an instance.
CommandEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple command listeners instead
CommandEventMulticaster(List<CommandListener>) - Constructor for class com.mongodb.event.CommandEventMulticaster
Deprecated.
Construct an instance with the given list of command listeners
commandFailed(CommandFailedEvent) - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
 
commandFailed(CommandFailedEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command failure events
commandFailed(CommandFailedEvent) - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
 
CommandFailedEvent - Class in com.mongodb.event
An event representing the failure of a MongoDB database command.
CommandFailedEvent(int, ConnectionDescription, String, long, Throwable) - Constructor for class com.mongodb.event.CommandFailedEvent
Construct an instance.
CommandListener - Interface in com.mongodb.event
A listener for command events
commandListenerList(List<CommandListener>) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the the command listeners
CommandListenerMulticaster - Class in com.mongodb.event
Deprecated.
register multiple command listeners in the settings
CommandListenerMulticaster(List<CommandListener>) - Constructor for class com.mongodb.event.CommandListenerMulticaster
Deprecated.
Construct an instance with the given list of command listeners
CommandReadOperation<T> - Class in com.mongodb.operation
Deprecated.
CommandReadOperation(String, BsonDocument, Decoder<T>) - Constructor for class com.mongodb.operation.CommandReadOperation
Deprecated.
Construct a new instance.
commandStarted(CommandStartedEvent) - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
 
commandStarted(CommandStartedEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command started events.
commandStarted(CommandStartedEvent) - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
 
CommandStartedEvent - Class in com.mongodb.event
An event representing the start of a command execution.
CommandStartedEvent(int, ConnectionDescription, String, String, BsonDocument) - Constructor for class com.mongodb.event.CommandStartedEvent
Construct an instance.
commandSucceeded(CommandSucceededEvent) - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
 
commandSucceeded(CommandSucceededEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command completed events
commandSucceeded(CommandSucceededEvent) - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
 
CommandSucceededEvent - Class in com.mongodb.event
An event representing the completion of a MongoDB database command.
CommandSucceededEvent(int, ConnectionDescription, String, BsonDocument, long) - Constructor for class com.mongodb.event.CommandSucceededEvent
Construct an instance.
CommandWriteOperation<T> - Class in com.mongodb.operation
Deprecated.
CommandWriteOperation(String, BsonDocument, Decoder<T>) - Constructor for class com.mongodb.operation.CommandWriteOperation
Deprecated.
Construct a new instance.
comment(String) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the comment to the query.
comment(String) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Sets the comment to the aggregation.
comment(String) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Sets the comment to the aggregation.
comment(String) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the comment to the query.
CommitTransactionOperation - Class in com.mongodb.operation
Deprecated.
CommitTransactionOperation(WriteConcern) - Constructor for class com.mongodb.operation.CommitTransactionOperation
Deprecated.
Construct an instance.
CommitTransactionOperation(WriteConcern, boolean) - Constructor for class com.mongodb.operation.CommitTransactionOperation
Deprecated.
Construct an instance.
compareTo(ServerVersion) - Method in class com.mongodb.connection.ServerVersion
 
completed(T) - Method in interface com.mongodb.connection.AsyncCompletionHandler
Invoked when an operation has completed.
CompositeServerSelector - Class in com.mongodb.selector
A server selector that composes a list of server selectors, and selects the servers by iterating through the list from start to finish, passing the result of the previous into the next, and finally returning the result of the last one.
CompositeServerSelector(List<? extends ServerSelector>) - Constructor for class com.mongodb.selector.CompositeServerSelector
Constructs a new instance.
compoundIndex(List<? extends Bson>) - Static method in class com.mongodb.client.model.Indexes
compound multiple index specifications.
compoundIndex(Bson...) - Static method in class com.mongodb.client.model.Indexes
create a compound index specifications.
compressorList(List<MongoCompressor>) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the compressors to use for compressing messages to the server.
computed(String, TExpression) - Static method in class com.mongodb.client.model.Projections
Creates a projection of a field whose value is computed from the given expression.
CONNECTED - com.mongodb.connection.ServerConnectionState
The application is connected to the remote server.
CONNECTING - com.mongodb.connection.ServerConnectionState
The application is actively attempting to connect to the remote server.
Connection - Interface in com.mongodb.connection
Deprecated.
connectionAdded(ConnectionAddedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionAdded(ConnectionAddedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is added to a pool.
connectionAdded(ConnectionAddedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionAdded(ConnectionAddedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionAddedEvent - Class in com.mongodb.event
An event for adding a new connection to the pool.
ConnectionAddedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionAddedEvent
Construct an instance
connectionCheckedIn(ConnectionCheckedInEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionCheckedIn(ConnectionCheckedInEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked in to a pool.
connectionCheckedIn(ConnectionCheckedInEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionCheckedIn(ConnectionCheckedInEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionCheckedInEvent - Class in com.mongodb.event
An event for checking in a connection to the pool.
ConnectionCheckedInEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionCheckedInEvent
Construct an instance
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked out of a pool.
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionCheckedOutEvent - Class in com.mongodb.event
An event for checking our a connection from the pool.
ConnectionCheckedOutEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionCheckedOutEvent
Construct an instance
connectionClosed(ConnectionClosedEvent) - Method in interface com.mongodb.event.ConnectionListener
Deprecated.
Publish a connection message closed event.
ConnectionClosedEvent - Class in com.mongodb.event
Deprecated.
there is no replacement for this class
ConnectionClosedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionClosedEvent
Deprecated.
Constructs a new instance of the event.
ConnectionDescription - Class in com.mongodb.connection
A description of a connection to a MongoDB server.
ConnectionDescription(ConnectionId, int, ServerType, int, int, int, List<String>) - Constructor for class com.mongodb.connection.ConnectionDescription
Construct an instance.
ConnectionDescription(ConnectionId, ServerVersion, int, ServerType, int, int, int, List<String>) - Constructor for class com.mongodb.connection.ConnectionDescription
Deprecated. 
ConnectionDescription(ConnectionId, ServerVersion, ServerType, int, int, int) - Constructor for class com.mongodb.connection.ConnectionDescription
ConnectionDescription(ConnectionId, ServerVersion, ServerType, int, int, int, List<String>) - Constructor for class com.mongodb.connection.ConnectionDescription
ConnectionDescription(ServerId) - Constructor for class com.mongodb.connection.ConnectionDescription
Construct a defaulted connection description instance.
ConnectionId - Class in com.mongodb.connection
An immutable connection identifier of a connection to a MongoDB server.
ConnectionId(ServerId) - Constructor for class com.mongodb.connection.ConnectionId
Construct an instance with the given server id.
ConnectionId(ServerId, int, Integer) - Constructor for class com.mongodb.connection.ConnectionId
Construct an instance with the given serverId, localValue, and serverValue.
ConnectionListener - Interface in com.mongodb.event
Deprecated.
- No longer used
ConnectionMessageReceivedEvent - Class in com.mongodb.event
Deprecated.
- No longer used
ConnectionMessageReceivedEvent(ConnectionId, int, int) - Constructor for class com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
Constructs a new instance of the event.
ConnectionMessagesSentEvent - Class in com.mongodb.event
Deprecated.
- No longer used
ConnectionMessagesSentEvent(ConnectionId, int, int) - Constructor for class com.mongodb.event.ConnectionMessagesSentEvent
Deprecated.
Constructs a new instance of the event.
connectionOpened(ConnectionOpenedEvent) - Method in interface com.mongodb.event.ConnectionListener
Deprecated.
Publish a connection opened event.
ConnectionOpenedEvent - Class in com.mongodb.event
Deprecated.
there is no replacement for this class
ConnectionOpenedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionOpenedEvent
Deprecated.
Construct an instance
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is closed.
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionPoolClosedEvent - Class in com.mongodb.event
An event signifying the closing of a connection pool.
ConnectionPoolClosedEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolClosedEvent
Constructs a new instance of the event.
ConnectionPoolEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple command listeners instead
ConnectionPoolEventMulticaster() - Constructor for class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
ConnectionPoolListener - Interface in com.mongodb.event
A listener for connection pool-related events.
ConnectionPoolListenerAdapter - Class in com.mongodb.event
An adapter for connection pool listener implementations, for clients that want to listen for a subset of connection pool events.
ConnectionPoolListenerAdapter() - Constructor for class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is opened.
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionPoolOpenedEvent - Class in com.mongodb.event
An event signifying the opening of a connection pool.
ConnectionPoolOpenedEvent(ServerId, ConnectionPoolSettings) - Constructor for class com.mongodb.event.ConnectionPoolOpenedEvent
Constructs a new instance of the event.
ConnectionPoolSettings - Class in com.mongodb.connection
All settings that relate to the pool of connections to a MongoDB server.
ConnectionPoolSettings.Builder - Class in com.mongodb.connection
A builder for creating ConnectionPoolSettings.
ConnectionPoolStatisticsMBean - Interface in com.mongodb.management
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
ConnectionPoolWaitQueueEnteredEvent - Class in com.mongodb.event
An event for entering the wait queue of the connection pool.
ConnectionPoolWaitQueueEnteredEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent
Construct an instance.
ConnectionPoolWaitQueueExitedEvent - Class in com.mongodb.event
An event for entering the wait queue of the connection pool.
ConnectionPoolWaitQueueExitedEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolWaitQueueExitedEvent
Construct an instance.
connectionRemoved(ConnectionRemovedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionRemoved(ConnectionRemovedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is removed from a pool.
connectionRemoved(ConnectionRemovedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionRemoved(ConnectionRemovedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionRemovedEvent - Class in com.mongodb.event
An event for removing a connection from the pool.
ConnectionRemovedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionRemovedEvent
ConnectionRemovedEvent(ConnectionId, ConnectionRemovedEvent.Reason) - Constructor for class com.mongodb.event.ConnectionRemovedEvent
Constructs an instance.
ConnectionRemovedEvent.Reason - Enum in com.mongodb.event
An enumeration of the reasons a connection could be closed
ConnectionSource - Interface in com.mongodb.binding
Deprecated.
ConnectionString - Class in com.mongodb
Represents a Connection String.
ConnectionString(String) - Constructor for class com.mongodb.ConnectionString
Creates a ConnectionString from the given string.
connectTimeout(int, TimeUnit) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the socket connect timeout.
containsAll(TagSet) - Method in class com.mongodb.TagSet
Returns true if this tag set contains all of the elements of the specified tag set.
context(SSLContext) - Method in class com.mongodb.connection.SslSettings.Builder
Sets the SSLContext for use when SSL is enabled.
CoordinateReferenceSystem - Class in com.mongodb.client.model.geojson
A GeoJSON Coordinate Reference System (CRS).
CoordinateReferenceSystem() - Constructor for class com.mongodb.client.model.geojson.CoordinateReferenceSystem
 
CoordinateReferenceSystemType - Enum in com.mongodb.client.model.geojson
An enumeration of the GeoJSON coordinate reference system types.
copy() - Method in class com.mongodb.BasicDBList
Copies this instance into a new Object.
copy() - Method in class com.mongodb.BasicDBObject
Creates a new instance which is a copy of this BasicDBObject.
copyClusterDescription(ClusterDescription, List<ServerDescription>) - Static method in class com.mongodb.TaggableReadPreference
 
count() - Static method in class com.mongodb.client.model.Aggregates
Creates a $count pipeline stage using the field name "count" to store the result
count(String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $count pipeline stage using the named field to store the result
CountOperation - Class in com.mongodb.operation
Deprecated.
CountOperation(MongoNamespace) - Constructor for class com.mongodb.operation.CountOperation
Deprecated.
Construct a new instance.
CountOperation(MongoNamespace, CountStrategy) - Constructor for class com.mongodb.operation.CountOperation
Deprecated.
Construct a new instance.
CountOptions - Class in com.mongodb.client.model
The options for a count operation.
CountOptions() - Constructor for class com.mongodb.client.model.CountOptions
 
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener) - Method in interface com.mongodb.connection.ClusterFactory
Deprecated.
Creates a cluster with the given settings.
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener) - Method in class com.mongodb.connection.DefaultClusterFactory
Deprecated.
 
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener, CommandListener) - Method in class com.mongodb.connection.DefaultClusterFactory
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener, CommandListener, String, MongoDriverInformation) - Method in class com.mongodb.connection.DefaultClusterFactory
create(SocketSettings, SslSettings) - Method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
 
create(SocketSettings, SslSettings) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory
 
create(SocketSettings, SslSettings) - Method in interface com.mongodb.connection.StreamFactoryFactory
Create a StreamFactory with the given settings.
create(SocketSettings, SslSettings) - Method in class com.mongodb.connection.TlsChannelStreamFactoryFactory
 
create(ServerAddress) - Method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactory
 
create(ServerAddress) - Method in class com.mongodb.connection.netty.NettyStreamFactory
 
create(ServerAddress) - Method in class com.mongodb.connection.SocketStreamFactory
 
create(ServerAddress) - Method in interface com.mongodb.connection.StreamFactory
Create a Stream to the given address
createCluster(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, CommandListener, String, MongoDriverInformation) - Method in class com.mongodb.connection.DefaultClusterFactory
createCluster(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, CommandListener, String, MongoDriverInformation, List<MongoCompressor>) - Method in class com.mongodb.connection.DefaultClusterFactory
Deprecated.
Creates a cluster with the given settings.
createCodec(Class<TFullDocument>, CodecRegistry) - Static method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Creates the codec for the specific ChangeStreamOutput type
CreateCollectionOperation - Class in com.mongodb.operation
Deprecated.
CreateCollectionOperation(String, String) - Constructor for class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Construct a new instance.
CreateCollectionOperation(String, String, WriteConcern) - Constructor for class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Construct a new instance.
CreateCollectionOptions - Class in com.mongodb.client.model
Options for creating a collection
CreateCollectionOptions() - Constructor for class com.mongodb.client.model.CreateCollectionOptions
 
createCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance with an unspecified mechanism.
createGSSAPICredential(String) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
CreateIndexesOperation - Class in com.mongodb.operation
Deprecated.
CreateIndexesOperation(MongoNamespace, List<IndexRequest>) - Constructor for class com.mongodb.operation.CreateIndexesOperation
CreateIndexesOperation(MongoNamespace, List<IndexRequest>, WriteConcern) - Constructor for class com.mongodb.operation.CreateIndexesOperation
Deprecated.
Construct a new instance.
CreateIndexOptions - Class in com.mongodb.client.model
The options to apply to the command when creating indexes.
CreateIndexOptions() - Constructor for class com.mongodb.client.model.CreateIndexOptions
 
createMongoCRCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Deprecated.
MONGODB-CR was replaced by SCRAM-SHA-1 in MongoDB 3.0, and is now deprecated. Use the MongoCredential.createCredential(String, String, char[]) factory method instead.
createMongoX509Credential() - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the MongoDB X.509 protocol where the distinguished subject name of the client certificate acts as the userName.
createMongoX509Credential(String) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the MongoDB X.509 protocol.
createPlainCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the PLAIN SASL mechanism.
createReplaceOptions(UpdateOptions) - Static method in class com.mongodb.client.model.ReplaceOptions
Deprecated.
there is no replacement for this method
createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
createScramSha256Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-256 SASL mechanism.
createSnappyCompressor() - Static method in class com.mongodb.MongoCompressor
Create an instance for snappy compression.
CreateUserOperation - Class in com.mongodb.operation
Deprecated.
use CommandWriteOperation directly or the mongod shell helpers.
CreateUserOperation(MongoCredential, boolean) - Constructor for class com.mongodb.operation.CreateUserOperation
Deprecated.
Construct a new instance.
CreateUserOperation(MongoCredential, boolean, WriteConcern) - Constructor for class com.mongodb.operation.CreateUserOperation
Deprecated.
Construct a new instance.
CreateViewOperation - Class in com.mongodb.operation
Deprecated.
CreateViewOperation(String, String, String, List<BsonDocument>, WriteConcern) - Constructor for class com.mongodb.operation.CreateViewOperation
Deprecated.
Construct a new instance.
CreateViewOptions - Class in com.mongodb.client.model
Options for creating a view
CreateViewOptions() - Constructor for class com.mongodb.client.model.CreateViewOptions
 
createZlibCompressor() - Static method in class com.mongodb.MongoCompressor
Create an instance for zlib compression.
createZstdCompressor() - Static method in class com.mongodb.MongoCompressor
Create an instance for zstd compression.
credential(MongoCredential) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the credential.
CRS_84 - Static variable in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
The urn:ogc:def:crs:OGC:1.3:CRS84 Coordinate Reference System
currentDate(String) - Static method in class com.mongodb.client.model.Updates
Creates an update that sets the value of the field to the current date as a BSON date.
CurrentOpOperation - Class in com.mongodb.operation
Deprecated.
CurrentOpOperation() - Constructor for class com.mongodb.operation.CurrentOpOperation
Deprecated.
 
currentTimestamp(String) - Static method in class com.mongodb.client.model.Updates
Creates an update that sets the value of the field to the current date as a BSON timestamp.
cursorType(CursorType) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the cursor type.
cursorType(CursorType) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the cursor type.
CursorType - Enum in com.mongodb
An enumeration of cursor types.

D

DATABASE - com.mongodb.client.model.AggregationLevel
Deprecated.
Database level aggregation
DATABASE - com.mongodb.client.model.changestream.ChangeStreamLevel
Deprecated.
Observing all changes on a specific database
databaseName(String) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the name of the database to output into.
DataKeyOptions - Class in com.mongodb.client.model.vault
The options for creating a data key.
DataKeyOptions() - Constructor for class com.mongodb.client.model.vault.DataKeyOptions
 
DBObject - Interface in com.mongodb
This interface adds some specific behaviour to BSONObject for MongoDB documents.
DBObjectCodec - Class in com.mongodb
A collectible codec for a DBObject.
DBObjectCodec() - Constructor for class com.mongodb.DBObjectCodec
Construct an instance with the default codec registry
DBObjectCodec(CodecRegistry) - Constructor for class com.mongodb.DBObjectCodec
Construct an instance with the given codec registry.
DBObjectCodec(CodecRegistry, BsonTypeClassMap) - Constructor for class com.mongodb.DBObjectCodec
Construct an instance.
DBObjectCodec(CodecRegistry, BsonTypeClassMap, DBObjectFactory) - Constructor for class com.mongodb.DBObjectCodec
Construct an instance.
DBObjectCodecProvider - Class in com.mongodb
A provider for a DBObjectCodec.
DBObjectCodecProvider() - Constructor for class com.mongodb.DBObjectCodecProvider
Construct an instance using the default BsonTypeClassMap.
DBObjectCodecProvider(BsonTypeClassMap) - Constructor for class com.mongodb.DBObjectCodecProvider
Construct an instance with the given BsonTypeClassMap.
DBRef - Class in com.mongodb
A representation of a database reference.
DBRef(String, Object) - Constructor for class com.mongodb.DBRef
Construct an instance.
DBRef(String, String, Object) - Constructor for class com.mongodb.DBRef
Construct an instance.
DBRefCodec - Class in com.mongodb
A Codec for DBRef instances.
DBRefCodec(CodecRegistry) - Constructor for class com.mongodb.DBRefCodec
Construct an instance with the given registry, which is used to encode the id of the referenced document.
DBRefCodecProvider - Class in com.mongodb
A codec provider for DBRef.
DBRefCodecProvider() - Constructor for class com.mongodb.DBRefCodecProvider
 
debug(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the DEBUG level.
debug(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the DEBUG level with an accompanying message.
decode(BsonReader, DecoderContext) - Method in class com.mongodb.BSONTimestampCodec
 
decode(BsonReader, DecoderContext) - Method in class com.mongodb.client.gridfs.codecs.GridFSFileCodec
 
decode(BsonReader, DecoderContext) - Method in class com.mongodb.client.model.geojson.codecs.NamedCoordinateReferenceSystemCodec
 
decode(BsonReader, DecoderContext) - Method in class com.mongodb.DBObjectCodec
 
decode(BsonReader, DecoderContext) - Method in class com.mongodb.DBRefCodec
 
DEFAULT - com.mongodb.client.model.changestream.FullDocument
Default
DEFAULT - Static variable in class com.mongodb.ReadConcern
Use the servers default read concern.
defaultBucket(Object) - Method in class com.mongodb.client.model.BucketOptions
The name of the default bucket for values outside the defined buckets
DefaultClusterFactory - Class in com.mongodb.connection
Deprecated.
DefaultClusterFactory() - Constructor for class com.mongodb.connection.DefaultClusterFactory
Deprecated.
 
defaultHost() - Static method in class com.mongodb.ServerAddress
Returns the default database host: "127.0.0.1"
defaultLanguage(String) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the language for the text index.
defaultLanguage(String) - Method in class com.mongodb.client.model.IndexOptions
Sets the language for the text index.
defaultPort() - Static method in class com.mongodb.ServerAddress
Returns the default database port: 27017
defaultTransactionOptions(TransactionOptions) - Method in class com.mongodb.ClientSessionOptions.Builder
Sets whether operations using the session should causally consistent with each other.
delete(MongoNamespace, boolean, DeleteRequest) - Method in interface com.mongodb.connection.Connection
Deprecated.
Delete the documents using the delete wire protocol and apply the write concern.
DELETE - com.mongodb.bulk.WriteRequest.Type
Deprecated.
A delete.
DELETE - com.mongodb.client.model.changestream.OperationType
The delete operation type
DELETE - com.mongodb.connection.SplittablePayload.Type
Deprecated.
A delete.
deleteAsync(MongoNamespace, boolean, DeleteRequest, SingleResultCallback<WriteConcernResult>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Delete the documents using the delete wire protocol and apply the write concern asynchronously.
DeleteManyModel<T> - Class in com.mongodb.client.model
A model describing the removal of all documents matching the query filter.
DeleteManyModel(Bson) - Constructor for class com.mongodb.client.model.DeleteManyModel
Construct a new instance.
DeleteManyModel(Bson, DeleteOptions) - Constructor for class com.mongodb.client.model.DeleteManyModel
Construct a new instance.
DeleteOneModel<T> - Class in com.mongodb.client.model
A model describing the removal of at most one document matching the query filter.
DeleteOneModel(Bson) - Constructor for class com.mongodb.client.model.DeleteOneModel
Construct a new instance.
DeleteOneModel(Bson, DeleteOptions) - Constructor for class com.mongodb.client.model.DeleteOneModel
Construct a new instance.
DeleteOperation - Class in com.mongodb.operation
Deprecated.
DeleteOperation(MongoNamespace, boolean, WriteConcern, boolean, List<DeleteRequest>) - Constructor for class com.mongodb.operation.DeleteOperation
Deprecated.
Construct an instance.
DeleteOperation(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Constructor for class com.mongodb.operation.DeleteOperation
DeleteOptions - Class in com.mongodb.client.model
The options to apply when deleting documents.
DeleteOptions() - Constructor for class com.mongodb.client.model.DeleteOptions
 
DeleteRequest - Class in com.mongodb.bulk
Deprecated.
DeleteRequest(BsonDocument) - Constructor for class com.mongodb.bulk.DeleteRequest
Deprecated.
Construct a new instance.
DeleteResult - Class in com.mongodb.client.result
The result of a delete operation.
DeleteResult() - Constructor for class com.mongodb.client.result.DeleteResult
 
depthField(String) - Method in class com.mongodb.client.model.GraphLookupOptions
The name of the field in which to store the depth value
DESC - com.mongodb.operation.OrderBy
Deprecated.
Descending order
descending(String...) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
descending(String...) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for a descending sort on the given fields.
descending(List<String>) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
descending(List<String>) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for a descending sort on the given fields.
description(String) - Method in class com.mongodb.connection.ClusterSettings.Builder
diacriticSensitive(Boolean) - Method in class com.mongodb.client.model.TextSearchOptions
Set the diacritic-sensitive flag for the text search
DISCARD - com.mongodb.client.model.MergeOptions.WhenNotMatched
Discard the document; i.e.
DistinctOperation<T> - Class in com.mongodb.operation
Deprecated.
DistinctOperation(MongoNamespace, String, Decoder<T>) - Constructor for class com.mongodb.operation.DistinctOperation
Deprecated.
Construct an instance.
documentHasId(DBObject) - Method in class com.mongodb.DBObjectCodec
 
DocumentToDBRefTransformer - Class in com.mongodb
A Document to DBRef Transformer.
DocumentToDBRefTransformer() - Constructor for class com.mongodb.DocumentToDBRefTransformer
 
driverName(String) - Method in class com.mongodb.MongoDriverInformation.Builder
Sets the name
driverPlatform(String) - Method in class com.mongodb.MongoDriverInformation.Builder
Sets the platform
driverVersion(String) - Method in class com.mongodb.MongoDriverInformation.Builder
Sets the version
DROP - com.mongodb.client.model.changestream.OperationType
The drop operation type
DROP_DATABASE - com.mongodb.client.model.changestream.OperationType
The dropDatabase operation type
DropCollectionOperation - Class in com.mongodb.operation
Deprecated.
DropCollectionOperation(MongoNamespace) - Constructor for class com.mongodb.operation.DropCollectionOperation
DropCollectionOperation(MongoNamespace, WriteConcern) - Constructor for class com.mongodb.operation.DropCollectionOperation
Deprecated.
Construct a new instance.
DropDatabaseOperation - Class in com.mongodb.operation
Deprecated.
DropDatabaseOperation(String) - Constructor for class com.mongodb.operation.DropDatabaseOperation
Deprecated.
DropDatabaseOperation(String, WriteConcern) - Constructor for class com.mongodb.operation.DropDatabaseOperation
Deprecated.
Construct a new instance.
dropDups(boolean) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the legacy dropDups setting
DropIndexOperation - Class in com.mongodb.operation
Deprecated.
DropIndexOperation(MongoNamespace, String) - Constructor for class com.mongodb.operation.DropIndexOperation
DropIndexOperation(MongoNamespace, String, WriteConcern) - Constructor for class com.mongodb.operation.DropIndexOperation
Deprecated.
Construct a new instance.
DropIndexOperation(MongoNamespace, BsonDocument) - Constructor for class com.mongodb.operation.DropIndexOperation
DropIndexOperation(MongoNamespace, BsonDocument, WriteConcern) - Constructor for class com.mongodb.operation.DropIndexOperation
Deprecated.
Construct a new instance.
DropIndexOptions - Class in com.mongodb.client.model
The options to apply to the command when dropping indexes.
DropIndexOptions() - Constructor for class com.mongodb.client.model.DropIndexOptions
 
dropTarget(boolean) - Method in class com.mongodb.client.model.RenameCollectionOptions
Sets if mongod should drop the target of renameCollection prior to renaming the collection.
dropTarget(boolean) - Method in class com.mongodb.operation.RenameCollectionOperation
Deprecated.
Sets if mongod should drop the target of renameCollection prior to renaming the collection.
DropUserOperation - Class in com.mongodb.operation
Deprecated.
use CommandWriteOperation directly or the mongod shell helpers.
DropUserOperation(String, String) - Constructor for class com.mongodb.operation.DropUserOperation
Deprecated.
Construct a new instance.
DropUserOperation(String, String, WriteConcern) - Constructor for class com.mongodb.operation.DropUserOperation
Deprecated.
Construct a new instance.
DUPLICATE_KEY - com.mongodb.ErrorCategory
A duplicate key error
DuplicateKeyException - Exception in com.mongodb
Subclass of WriteConcernException representing a duplicate key exception
DuplicateKeyException(BsonDocument, ServerAddress, WriteConcernResult) - Constructor for exception com.mongodb.DuplicateKeyException
Construct an instance.

E

E12 - com.mongodb.client.model.BucketGranularity
 
E192 - com.mongodb.client.model.BucketGranularity
 
E24 - com.mongodb.client.model.BucketGranularity
 
E48 - com.mongodb.client.model.BucketGranularity
 
E6 - com.mongodb.client.model.BucketGranularity
 
E96 - com.mongodb.client.model.BucketGranularity
 
electionId(ObjectId) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the electionId reported by this server.
elemMatch(String) - Static method in class com.mongodb.client.model.Projections
Creates a projection that includes for the given field only the first element of an array that matches the query filter.
elemMatch(String, Bson) - Static method in class com.mongodb.client.model.Filters
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.
elemMatch(String, Bson) - Static method in class com.mongodb.client.model.Projections
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.
enabled(boolean) - Method in class com.mongodb.connection.SslSettings.Builder
Define whether SSL should be enabled.
encode(BsonWriter, GridFSFile, EncoderContext) - Method in class com.mongodb.client.gridfs.codecs.GridFSFileCodec
 
encode(BsonWriter, NamedCoordinateReferenceSystem, EncoderContext) - Method in class com.mongodb.client.model.geojson.codecs.NamedCoordinateReferenceSystemCodec
 
encode(BsonWriter, DBObject, EncoderContext) - Method in class com.mongodb.DBObjectCodec
 
encode(BsonWriter, DBRef, EncoderContext) - Method in class com.mongodb.DBRefCodec
 
encode(BsonWriter, BSONTimestamp, EncoderContext) - Method in class com.mongodb.BSONTimestampCodec
 
EncryptOptions - Class in com.mongodb.client.model.vault
The options for explicit encryption.
EncryptOptions(String) - Constructor for class com.mongodb.client.model.vault.EncryptOptions
Construct an instance with the given algorithm.
EPSG_4326 - Static variable in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
The EPSG:4326 Coordinate Reference System.
EPSG_4326_STRICT_WINDING - Static variable in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
A custom MongoDB EPSG:4326 Coordinate Reference System that uses a strict counter-clockwise winding order.
eq(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field name equals the specified value.
eq(TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of _id field equals the specified value.
equals(Object) - Method in class com.mongodb.BasicDBObject
 
equals(Object) - Method in class com.mongodb.bulk.BulkWriteError
 
equals(Object) - Method in class com.mongodb.bulk.BulkWriteUpsert
 
equals(Object) - Method in class com.mongodb.bulk.WriteConcernError
 
equals(Object) - Method in class com.mongodb.client.gridfs.model.GridFSFile
 
equals(Object) - Method in class com.mongodb.client.model.BsonField
 
equals(Object) - Method in class com.mongodb.client.model.BucketAutoOptions
 
equals(Object) - Method in class com.mongodb.client.model.BucketOptions
 
equals(Object) - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
 
equals(Object) - Method in class com.mongodb.client.model.changestream.UpdateDescription
 
equals(Object) - Method in class com.mongodb.client.model.Collation
 
equals(Object) - Method in class com.mongodb.client.model.Facet
 
equals(Object) - Method in class com.mongodb.client.model.Field
 
equals(Object) - Method in class com.mongodb.client.model.geojson.Geometry
 
equals(Object) - Method in class com.mongodb.client.model.geojson.GeometryCollection
 
equals(Object) - Method in class com.mongodb.client.model.geojson.LineString
 
equals(Object) - Method in class com.mongodb.client.model.geojson.MultiLineString
 
equals(Object) - Method in class com.mongodb.client.model.geojson.MultiPoint
 
equals(Object) - Method in class com.mongodb.client.model.geojson.MultiPolygon
 
equals(Object) - Method in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
 
equals(Object) - Method in class com.mongodb.client.model.geojson.Point
 
equals(Object) - Method in class com.mongodb.client.model.geojson.Polygon
 
equals(Object) - Method in class com.mongodb.client.model.geojson.PolygonCoordinates
 
equals(Object) - Method in class com.mongodb.client.model.geojson.Position
 
equals(Object) - Method in class com.mongodb.client.model.GraphLookupOptions
 
equals(Object) - Method in class com.mongodb.client.model.MergeOptions
 
equals(Object) - Method in class com.mongodb.client.model.PushOptions
 
equals(Object) - Method in class com.mongodb.client.model.TextSearchOptions
 
equals(Object) - Method in class com.mongodb.client.model.Variable
 
equals(Object) - Method in class com.mongodb.ClientSessionOptions
 
equals(Object) - Method in class com.mongodb.connection.ClusterDescription
 
equals(Object) - Method in class com.mongodb.connection.ClusterId
 
equals(Object) - Method in class com.mongodb.connection.ClusterSettings
 
equals(Object) - Method in class com.mongodb.connection.ConnectionDescription
 
equals(Object) - Method in class com.mongodb.connection.ConnectionId
 
equals(Object) - Method in class com.mongodb.connection.ConnectionPoolSettings
 
equals(Object) - Method in class com.mongodb.connection.ServerDescription
Returns true if this instance is equals to @code{o}.
equals(Object) - Method in class com.mongodb.connection.ServerId
 
equals(Object) - Method in class com.mongodb.connection.ServerSettings
 
equals(Object) - Method in class com.mongodb.connection.ServerVersion
 
equals(Object) - Method in class com.mongodb.connection.SocketSettings
 
equals(Object) - Method in class com.mongodb.connection.SslSettings
 
equals(Object) - Method in class com.mongodb.ConnectionString
 
equals(Object) - Method in class com.mongodb.DBObjectCodecProvider
 
equals(Object) - Method in class com.mongodb.DBRef
 
equals(Object) - Method in class com.mongodb.DBRefCodecProvider
 
equals(Object) - Method in class com.mongodb.DocumentToDBRefTransformer
 
equals(Object) - Method in exception com.mongodb.MongoBulkWriteException
 
equals(Object) - Method in class com.mongodb.MongoCompressor
 
equals(Object) - Method in class com.mongodb.MongoCredential
 
equals(Object) - Method in class com.mongodb.MongoNamespace
 
equals(Object) - Method in class com.mongodb.ReadConcern
 
equals(Object) - Method in class com.mongodb.selector.CompositeServerSelector
 
equals(Object) - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
Deprecated.
 
equals(Object) - Method in class com.mongodb.ServerAddress
 
equals(Object) - Method in class com.mongodb.ServerCursor
 
equals(Object) - Method in class com.mongodb.Tag
 
equals(Object) - Method in class com.mongodb.TaggableReadPreference
 
equals(Object) - Method in class com.mongodb.TagSet
 
equals(Object) - Method in class com.mongodb.TransactionOptions
 
equals(Object) - Method in class com.mongodb.WriteConcern
 
equals(Object) - Method in class com.mongodb.WriteError
 
error(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the ERROR level.
error(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the ERROR level with an accompanying message.
ERROR - com.mongodb.client.model.ValidationAction
Documents must pass validation before the write occurs.
ERROR - com.mongodb.event.ConnectionRemovedEvent.Reason
The connection experienced an error, making it no longer valid
ErrorCategory - Enum in com.mongodb
A categorization of errors returned by a MongoDB server command.
EstimatedDocumentCountOptions - Class in com.mongodb.client.model
The options an estimated count operation.
EstimatedDocumentCountOptions() - Constructor for class com.mongodb.client.model.EstimatedDocumentCountOptions
 
eventLoopGroup(EventLoopGroup) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
Sets the event loop group.
exception(Throwable) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the exception thrown while attempting to determine the server description.
exclude(String...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that excludes all of the given fields.
exclude(List<String>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that excludes all of the given fields.
excludeId() - Static method in class com.mongodb.client.model.Projections
Creates a projection that excludes the _id field.
execute(ReadBinding) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.CommandReadOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.CountOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.CurrentOpOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.FindOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.FsyncUnlockOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Will return a cursor of Documents containing the results of the group operation.
execute(ReadBinding) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Executing this will return a list of all the databases names in the MongoDB instance.
execute(ReadBinding) - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
 
execute(ReadBinding) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Executing this will return a cursor with your results and the statistics in.
execute(ReadBinding) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
 
execute(ReadBinding) - Method in interface com.mongodb.operation.ReadOperation
Deprecated.
General execute which can return anything of type T
execute(ReadBinding) - Method in class com.mongodb.operation.UserExistsOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CommandWriteOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateUserOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropCollectionOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropDatabaseOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropIndexOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropUserOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.FsyncUnlockOperation
execute(WriteBinding) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Executing this will return a cursor with your results in.
execute(WriteBinding) - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Executes a bulk write operation.
execute(WriteBinding) - Method in class com.mongodb.operation.RenameCollectionOperation
Deprecated.
Rename the collection with oldCollectionName in database databaseName to the newCollectionName.
execute(WriteBinding) - Method in class com.mongodb.operation.TransactionOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.UpdateUserOperation
Deprecated.
 
execute(WriteBinding) - Method in interface com.mongodb.operation.WriteOperation
Deprecated.
General execute which can return anything of type T
execute(AsyncReadOperation<T>, ReadPreference, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the read operation with the given read preference.
execute(AsyncReadOperation<T>, ReadPreference, ClientSession, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the read operation with the given read preference.
execute(AsyncWriteOperation<T>, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the write operation.
execute(AsyncWriteOperation<T>, ClientSession, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the write operation.
execute(ReadOperation<T>, ReadPreference) - Method in interface com.mongodb.operation.OperationExecutor
Deprecated.
Execute the read operation with the given read preference.
execute(WriteOperation<T>) - Method in interface com.mongodb.operation.OperationExecutor
Deprecated.
Execute the write operation.
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.FindOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<MapReduceAsyncBatchCursor<T>>) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<Boolean>) - Method in class com.mongodb.operation.UserExistsOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<Long>) - Method in class com.mongodb.operation.CountOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<List<AsyncBatchCursor<T>>>) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncReadOperation
Deprecated.
General execute which can return anything of type T
executeAsync(AsyncReadBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.CommandReadOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<MapReduceStatistics>) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateUserOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropCollectionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropDatabaseOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropIndexOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropUserOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.RenameCollectionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.TransactionOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.UpdateUserOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncWriteOperation
Deprecated.
General execute which can return anything of type T
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.CommandWriteOperation
Deprecated.
 
EXECUTION_STATS - com.mongodb.ExplainVerbosity
Runs the query optimizer, and then runs the winning plan to completion.
EXECUTION_TIMEOUT - com.mongodb.ErrorCategory
An execution timeout error
exists(String) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents that contain the given field.
exists(String, boolean) - Static method in class com.mongodb.client.model.Filters
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.
expireAfter(Long, TimeUnit) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the time to live for documents in the collection
expireAfter(Long, TimeUnit) - Method in class com.mongodb.client.model.IndexOptions
Sets the time to live for documents in the collection
ExplainVerbosity - Enum in com.mongodb
An enumeration of the verbosity levels available for explaining query execution.
expr(TExpression) - Static method in class com.mongodb.client.model.Filters
Allows the use of aggregation expressions within the query language.
extractErrorCode(BsonDocument) - Static method in exception com.mongodb.WriteConcernException
For internal use only: extract the error code from the response to a write command.
extractErrorMessage(BsonDocument) - Static method in exception com.mongodb.WriteConcernException
For internal use only: extract the error message from the response to a write command.
extraOptions(Map<String, Object>) - Method in class com.mongodb.AutoEncryptionSettings.Builder
Sets the extra options.

F

facet(Facet...) - Static method in class com.mongodb.client.model.Aggregates
Creates a facet pipeline stage
facet(List<Facet>) - Static method in class com.mongodb.client.model.Aggregates
Creates a facet pipeline stage
Facet - Class in com.mongodb.client.model
Defines a Facet for use in $facet pipeline stages.
Facet(String, List<? extends Bson>) - Constructor for class com.mongodb.client.model.Facet
 
Facet(String, Bson...) - Constructor for class com.mongodb.client.model.Facet
 
FAIL - com.mongodb.client.model.MergeOptions.WhenMatched
Stop and fail the aggregation operation.
FAIL - com.mongodb.client.model.MergeOptions.WhenNotMatched
Stop and fail the aggregation operation.
failed(Throwable) - Method in interface com.mongodb.connection.AsyncCompletionHandler
Invoked when an operation fails.
Field<TExpression> - Class in com.mongodb.client.model
Helps define new fields for the $addFields pipeline stage
Field(String, TExpression) - Constructor for class com.mongodb.client.model.Field
Creates a new field definition for use in $addFields pipeline stages
fields(List<? extends Bson>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that combines the list of projections into a single one.
fields(Bson...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that combines the list of projections into a single one.
filter(BsonDocument) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Sets the optional query filter to determine which documents in the collection to process.
filter(BsonDocument) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Sets the query filter to apply to the returned database names.
filter(BsonDocument) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the filter to apply to the query.
Filters - Class in com.mongodb.client.model
A factory for query filters.
finalizeFunction(BsonJavaScript) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Sets the function that runs each item in the result set before returning the final value.
finalizeFunction(BsonJavaScript) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the JavaScript function that follows the reduce method and modifies the output.
finalizeFunction(BsonJavaScript) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the JavaScript function that follows the reduce method and modifies the output.
FindAndDeleteOperation<T> - Class in com.mongodb.operation
Deprecated.
FindAndDeleteOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Construct a new instance.
FindAndDeleteOperation(MongoNamespace, WriteConcern, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
FindAndDeleteOperation(MongoNamespace, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
FindAndReplaceOperation<T> - Class in com.mongodb.operation
Deprecated.
FindAndReplaceOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Construct a new instance.
FindAndReplaceOperation(MongoNamespace, WriteConcern, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
FindAndReplaceOperation(MongoNamespace, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
FindAndUpdateOperation<T> - Class in com.mongodb.operation
Deprecated.
FindAndUpdateOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>, List<? extends Bson>) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Construct a new instance.
FindAndUpdateOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Construct a new instance.
FindAndUpdateOperation(MongoNamespace, WriteConcern, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
FindAndUpdateOperation(MongoNamespace, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
FindOneAndDeleteOptions - Class in com.mongodb.client.model
The options to apply to an operation that atomically finds a document and deletes it.
FindOneAndDeleteOptions() - Constructor for class com.mongodb.client.model.FindOneAndDeleteOptions
 
FindOneAndReplaceOptions - Class in com.mongodb.client.model
The options to apply to an operation that atomically finds a document and replaces it.
FindOneAndReplaceOptions() - Constructor for class com.mongodb.client.model.FindOneAndReplaceOptions
 
FindOneAndUpdateOptions - Class in com.mongodb.client.model
The options to apply to an operation that atomically finds a document and updates it.
FindOneAndUpdateOptions() - Constructor for class com.mongodb.client.model.FindOneAndUpdateOptions
 
FindOperation<T> - Class in com.mongodb.operation
Deprecated.
FindOperation(MongoNamespace, Decoder<T>) - Constructor for class com.mongodb.operation.FindOperation
Deprecated.
Construct a new instance.
FindOptions - Class in com.mongodb.client.model
Deprecated.
there is no replacement for this class
FindOptions() - Constructor for class com.mongodb.client.model.FindOptions
Deprecated.
Construct a new instance.
FindOptions(FindOptions) - Constructor for class com.mongodb.client.model.FindOptions
Deprecated.
this constructor is unused
findServerIncompatiblyNewerThanDriver() - Method in class com.mongodb.connection.ClusterDescription
Return a server in the cluster that is incompatibly newer than the driver.
findServerIncompatiblyOlderThanDriver() - Method in class com.mongodb.connection.ClusterDescription
Return a server in the cluster that is incompatibly older than the driver.
first(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the value of the given expression when applied to the first member of the group.
fromErrorCode(int) - Static method in enum com.mongodb.ErrorCategory
Translate an error code into an error category
fromInt(int) - Static method in enum com.mongodb.client.model.CollationStrength
Gets the order from the given integer representation.
fromInt(int) - Static method in enum com.mongodb.operation.OrderBy
Deprecated.
Gets the order from the given integer representation.
fromMechanismName(String) - Static method in enum com.mongodb.AuthenticationMechanism
Gets the mechanism by its name.
fromString(String) - Static method in enum com.mongodb.client.model.BucketGranularity
Tries find the enum instance for the given value
fromString(String) - Static method in enum com.mongodb.client.model.changestream.FullDocument
Returns the ChangeStreamFullDocument from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.changestream.OperationType
Returns the ChangeStreamOperationType from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.CollationAlternate
Returns the CollationAlternate from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.CollationCaseFirst
Returns the CollationCaseFirst from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.CollationMaxVariable
Returns the CollationMaxVariable from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.ValidationAction
Returns the validationAction from the string representation of a validation action.
fromString(String) - Static method in enum com.mongodb.client.model.ValidationLevel
Returns the ValidationLevel from the string representation of the validation level.
fromString(String) - Static method in enum com.mongodb.ReadConcernLevel
Returns the ReadConcern from the string read concern level.
fromThrowable(Throwable) - Static method in exception com.mongodb.MongoException
Static helper to create or cast a MongoException from a throwable
fromThrowableNonNull(Throwable) - Static method in exception com.mongodb.MongoException
Static helper to create or cast a MongoException from a throwable
fsync() - Method in class com.mongodb.WriteConcern
Deprecated.
FSYNC_SAFE - Static variable in class com.mongodb.WriteConcern
Deprecated.
FSYNCED - Static variable in class com.mongodb.WriteConcern
Deprecated.
FsyncUnlockOperation - Class in com.mongodb.operation
Deprecated.
FsyncUnlockOperation() - Constructor for class com.mongodb.operation.FsyncUnlockOperation
Deprecated.
 
FullDocument - Enum in com.mongodb.client.model.changestream
Change Stream fullDocument configuration.
Function<T,​R> - Interface in com.mongodb
Apply a function to the input object yielding an appropriate result object.

G

generateIdIfAbsentFromDocument(DBObject) - Method in class com.mongodb.DBObjectCodec
 
geo2d(String) - Static method in class com.mongodb.client.model.Indexes
Create an index key for a 2d index on the given field.
geo2dsphere(String...) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an 2dsphere index on the given fields.
geo2dsphere(List<String>) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
geoHaystack(String, Bson) - Static method in class com.mongodb.client.model.Indexes
Create an index key for a geohaystack index on the given field.
geoIntersects(String, Geometry) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
geoIntersects(String, Bson) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
GeoJsonCodecProvider - Class in com.mongodb.client.model.geojson.codecs
A provider of codecs for GeoJSON objects.
GeoJsonCodecProvider() - Constructor for class com.mongodb.client.model.geojson.codecs.GeoJsonCodecProvider
 
GeoJsonObjectType - Enum in com.mongodb.client.model.geojson
An enumeration of GeoJSON object types.
Geometry - Class in com.mongodb.client.model.geojson
An abstract class for representations of GeoJSON geometry objects.
Geometry() - Constructor for class com.mongodb.client.model.geojson.Geometry
Construct an instance with no specified coordinate reference system.
Geometry(CoordinateReferenceSystem) - Constructor for class com.mongodb.client.model.geojson.Geometry
Construct an instance with the specified coordinate reference system.
GEOMETRY_COLLECTION - com.mongodb.client.model.geojson.GeoJsonObjectType
A GeometryCollection
GeometryCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON Geometry.
GeometryCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.GeometryCodec
Construct a new instance
GeometryCollection - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON GeometryCollection.
GeometryCollection(CoordinateReferenceSystem, List<? extends Geometry>) - Constructor for class com.mongodb.client.model.geojson.GeometryCollection
Construct an instance with the given list of Geometry objects
GeometryCollection(List<? extends Geometry>) - Constructor for class com.mongodb.client.model.geojson.GeometryCollection
Construct an instance with the given list of Geometry objects
GeometryCollectionCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON GeometryCollection.
GeometryCollectionCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.GeometryCollectionCodec
Constructs an instance.
geoWithin(String, Geometry) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
geoWithin(String, Bson) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
geoWithinBox(String, double, double, double, double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified box.
geoWithinCenter(String, double, double, double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified circle.
geoWithinCenterSphere(String, double, double, double) - Static method in class com.mongodb.client.model.Filters
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.
geoWithinPolygon(String, List<List<Double>>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified polygon.
get() - Method in class com.mongodb.BasicDBObjectBuilder
Gets the top level document.
get(Class<T>, CodecRegistry) - Method in class com.mongodb.client.gridfs.codecs.GridFSFileCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class com.mongodb.client.model.geojson.codecs.GeoJsonCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class com.mongodb.DBObjectCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class com.mongodb.DBRefCodecProvider
 
getAcceptableLatencyDifference(TimeUnit) - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
Deprecated.
Gets the acceptable latency difference.
getAction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the output action, one of: "replace", "merge", "reduce".
getAddress() - Method in class com.mongodb.connection.QueryResult
Deprecated.
Gets the server address.
getAddress() - Method in class com.mongodb.connection.ServerDescription
Gets the address of this server
getAddress() - Method in class com.mongodb.connection.ServerId
Gets the server address.
getAddress() - Method in interface com.mongodb.connection.Stream
The address that this stream is connected to.
getAddress() - Method in class com.mongodb.ServerCursor
Gets the server address.
getAlgorithm() - Method in class com.mongodb.client.model.vault.EncryptOptions
Gets the encryption algorithm, which must be either "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic" or "AEAD_AES_256_CBC_HMAC_SHA_512-Random".
getAliases() - Method in class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
any aliases should be stored in the metadata document instead.
getAll() - Method in class com.mongodb.connection.ClusterDescription
getAllowDiskUse() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Whether writing to temporary files is enabled.
getAllowDiskUse() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Whether writing to temporary files is enabled.
getAlternate() - Method in class com.mongodb.client.model.Collation
Returns the collation alternate
getAny() - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getAnyPrimaryOrSecondary() - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getAnyPrimaryOrSecondary(TagSet) - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getApplicationName() - Method in class com.mongodb.ConnectionString
Gets the logical name of the application.
getApplicationName() - Method in class com.mongodb.MongoClientSettings
Gets the logical name of the application using this MongoClient.
getArbiters() - Method in class com.mongodb.connection.ServerDescription
Gets the arbiters in the replica set
getArrayFilters() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.client.model.UpdateOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Returns the array filters option
getAuthenticationMechanism() - Method in class com.mongodb.MongoCredential
Gets the mechanism
getAutoEncryptionSettings() - Method in class com.mongodb.MongoClientSettings
Gets the auto-encryption settings.
getBackwards() - Method in class com.mongodb.client.model.Collation
Returns the backwards value
getBatchSize() - Method in interface com.mongodb.async.AsyncBatchCursor
Deprecated.
Gets the batch size to use when requesting the next batch.
getBatchSize() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.client.model.ParallelCollectionScanOptions
Deprecated.
Gets the batch size to use for each cursor.
getBatchSize() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Gets the number of documents to return per batch.
getBatchSize() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
Gets the batch size to use when requesting the next batch.
getBatchSize() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
Gets the batch size to use for each cursor.
getBits() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the number of precision of the stored geohash value of the location data in 2d indexes.
getBits() - Method in class com.mongodb.client.model.IndexOptions
Gets the number of precision of the stored geohash value of the location data in 2d indexes.
getBucketSize() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the specified the number of units within which to group the location values for geoHaystack Indexes
getBucketSize() - Method in class com.mongodb.client.model.IndexOptions
Gets the specified the number of units within which to group the location values for geoHaystack Indexes
getBuffer(int) - Method in interface com.mongodb.connection.BufferProvider
Gets a buffer with the givens capacity.
getBypassDocumentValidation() - Method in class com.mongodb.client.model.BulkWriteOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.InsertManyOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.InsertOneOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.ReplaceOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.UpdateOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Gets the the bypass document level validation flag
getByServerAddress(ServerAddress) - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getByteBuffers() - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
getCanonicalAddress() - Method in class com.mongodb.connection.ServerDescription
Gets the string representing the host name and port that this member of a replica set was configured with, e.g.
getCaseFirst() - Method in class com.mongodb.client.model.Collation
Returns the collation case first value
getCaseLevel() - Method in class com.mongodb.client.model.Collation
Returns the case level value
getCaseSensitive() - Method in class com.mongodb.client.model.TextSearchOptions
Returns the case-sensitive flag to use with the text search
getCategory() - Method in class com.mongodb.WriteError
Gets the category of this error.
getCheckedOutCount() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the count of connections that are currently in use.
getChunkSize() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The size, in bytes, of each data chunk of this file
getChunkSizeBytes() - Method in class com.mongodb.client.gridfs.model.GridFSUploadOptions
The number of bytes per chunk of this file.
getCluster() - Method in class com.mongodb.binding.AsyncClusterBinding
Deprecated.
 
getCluster() - Method in class com.mongodb.binding.ClusterBinding
Deprecated.
Return the cluster.
getClusterDescription() - Method in exception com.mongodb.MongoIncompatibleDriverException
The cluster description which was determined to be incompatible.
getClusterId() - Method in class com.mongodb.connection.ServerId
Gets the cluster identifier.
getClusterId() - Method in class com.mongodb.event.ClusterClosedEvent
Gets the cluster id associated with this event.
getClusterId() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
Gets the cluster id associated with this event.
getClusterId() - Method in class com.mongodb.event.ClusterOpeningEvent
Gets the cluster id.
getClusterListeners() - Method in class com.mongodb.connection.ClusterSettings
Gets the cluster listeners.
getClusterListeners() - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
Gets the cluster listeners.
getClusterSettings() - Method in class com.mongodb.connection.ClusterDescription
Gets the cluster settings, which may be null if not provided.
getClusterSettings() - Method in class com.mongodb.MongoClientSettings
Gets the cluster settings.
getClusterTime() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Gets the cluster time at which the change occurred.
getClusterTime() - Method in interface com.mongodb.connection.Cluster
Deprecated.
Get the last seen cluster time
getClusterTime() - Method in interface com.mongodb.session.ClientSession
 
getClusterTime() - Method in interface com.mongodb.session.SessionContext
Gets the current cluster time for this session context.
getClusterType() - Method in class com.mongodb.connection.ServerDescription
Gets the type of the cluster this server is in (for example, replica set).
getClusterType() - Method in enum com.mongodb.connection.ServerType
The type of the cluster to which this server belongs
getCode() - Method in class com.mongodb.bulk.WriteConcernError
Gets the code associated with this error.
getCode() - Method in exception com.mongodb.MongoException
Gets the exception code
getCode() - Method in class com.mongodb.WriteError
Gets the code associated with this error.
getCodecRegistry() - Method in class com.mongodb.MongoClientSettings
The codec registry to use, or null if not set.
getCodeName() - Method in class com.mongodb.bulk.WriteConcernError
Gets the name associated with the error code.
getCollation() - Method in class com.mongodb.bulk.DeleteRequest
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.CountOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.CreateCollectionOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.CreateViewOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.DeleteOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.IndexOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.ReplaceOptions
Returns the collation options
getCollation() - Method in class com.mongodb.client.model.UpdateOptions
Returns the collation options
getCollation() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.CountOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Gets the default collation for the view
getCollation() - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Returns the collation options
getCollation() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Returns the collation options
getCollection() - Method in class com.mongodb.ConnectionString
Gets the collection name
getCollectionName() - Method in class com.mongodb.DBRef
Gets the name of the collection in which the referenced document is stored.
getCollectionName() - Method in class com.mongodb.MongoNamespace
Gets the collection name.
getCollectionName() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the name of the collection to create.
getCollectionName() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the name of the collection to output the results to.
getCommand() - Method in class com.mongodb.event.CommandStartedEvent
Gets the command document.
getCommandCreator(SessionContext) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
getCommandCreator(SessionContext) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
 
getCommandCreator(SessionContext) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
 
getCommandCreator(SessionContext) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
 
getCommandListeners() - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
Gets the command listeners.
getCommandListeners() - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
Gets the command listeners.
getCommandListeners() - Method in class com.mongodb.MongoClientSettings
Gets the list of added CommandListener.
getCommandName() - Method in class com.mongodb.event.CommandEvent
Gets the name of the command.
getCommandName() - Method in class com.mongodb.operation.AbortTransactionOperation
Deprecated.
 
getCommandName() - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
 
getCommandName() - Method in class com.mongodb.operation.TransactionOperation
Deprecated.
Gets the command name.
getComment() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the comment to send with the query.
getComment() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Returns the comment to send with the aggregate.
getComment() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Returns the comment to send with the aggregate.
getComment() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the comment to send with the query.
getCompressorList() - Method in class com.mongodb.ConnectionString
Gets the list of compressors.
getCompressorList() - Method in class com.mongodb.MongoClientSettings
Gets the compressors to use for compressing messages to the server.
getCompressors() - Method in class com.mongodb.connection.ConnectionDescription
Gets the compressors supported by this connection.
getConnection() - Method in interface com.mongodb.binding.ConnectionSource
Deprecated.
Gets a connection from this source.
getConnection() - Method in interface com.mongodb.connection.Server
Deprecated.
Gets a connection to this server.
getConnection(SingleResultCallback<AsyncConnection>) - Method in interface com.mongodb.binding.AsyncConnectionSource
Deprecated.
Gets a connection from this source.
getConnectionAsync(SingleResultCallback<AsyncConnection>) - Method in interface com.mongodb.connection.Server
Deprecated.
Gets a connection to this server asynchronously.
getConnectionDescription() - Method in class com.mongodb.event.CommandEvent
Gets the description of the connection to which the operation will be sent.
getConnectionId() - Method in class com.mongodb.connection.ConnectionDescription
Gets the id of the connection.
getConnectionId() - Method in class com.mongodb.event.ConnectionAddedEvent
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionCheckedInEvent
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionCheckedOutEvent
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionClosedEvent
Deprecated.
Gets the identifier for this connection.
getConnectionId() - Method in class com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
Gets the identifier for this connection.
getConnectionId() - Method in class com.mongodb.event.ConnectionMessagesSentEvent
Deprecated.
Gets the identifier for this connection.
getConnectionId() - Method in class com.mongodb.event.ConnectionOpenedEvent
Deprecated.
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionRemovedEvent
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ServerHeartbeatFailedEvent
Gets the connectionId.
getConnectionId() - Method in class com.mongodb.event.ServerHeartbeatStartedEvent
Gets the connectionId.
getConnectionId() - Method in class com.mongodb.event.ServerHeartbeatSucceededEvent
Gets the connectionId.
getConnectionMode() - Method in class com.mongodb.connection.ClusterDescription
Gets whether this cluster is connecting to a single server or multiple servers.
getConnectionPoolListeners() - Method in class com.mongodb.connection.ConnectionPoolSettings
Gets the list of added ConnectionPoolListener.
getConnectionPoolSettings() - Method in class com.mongodb.MongoClientSettings
Gets the settings for the connection provider in a settings object.
getConnectionString() - Method in class com.mongodb.ConnectionString
Get the unparsed connection string.
getConnectTimeout() - Method in class com.mongodb.ConnectionString
Gets the socket connect timeout specified in the connection string.
getConnectTimeout(TimeUnit) - Method in class com.mongodb.connection.SocketSettings
Gets the timeout for socket connect.
getContentType() - Method in class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
content type information should be stored the metadata document instead.
getContext() - Method in class com.mongodb.connection.SslSettings
Gets the SSLContext configured for use with SSL connections.
getCoordinateReferenceSystem() - Method in class com.mongodb.client.model.geojson.Geometry
Gets the coordinate reference system, which may be null
getCoordinates() - Method in class com.mongodb.client.model.geojson.LineString
Gets the GeoJSON coordinates of this LineString.
getCoordinates() - Method in class com.mongodb.client.model.geojson.MultiLineString
Gets the GeoJSON coordinates of this MultiLineString
getCoordinates() - Method in class com.mongodb.client.model.geojson.MultiPoint
Gets the GeoJSON coordinates of this MultiPoint.
getCoordinates() - Method in class com.mongodb.client.model.geojson.MultiPolygon
Gets the coordinates.
getCoordinates() - Method in class com.mongodb.client.model.geojson.Point
Gets the GeoJSON coordinates of this point.
getCoordinates() - Method in class com.mongodb.client.model.geojson.Polygon
Gets the GeoJSON coordinates of the polygon
getCount() - Method in interface com.mongodb.binding.ReferenceCounted
Deprecated.
Gets the current reference count, which starts at 0.
getCount() - Method in class com.mongodb.WriteConcernResult
Returns the number of documents affected by the write operation.
getCredential() - Method in class com.mongodb.ConnectionString
Gets the credential or null if no credentials were specified in the connection string.
getCredential() - Method in class com.mongodb.MongoClientSettings
Gets the credential.
getCredential() - Method in exception com.mongodb.MongoSecurityException
The credential being authenticated.
getCredential() - Method in class com.mongodb.operation.CreateUserOperation
Deprecated.
Gets the users credentials.
getCredential() - Method in class com.mongodb.operation.UpdateUserOperation
Deprecated.
Gets the users credentials.
getCredentialList() - Method in class com.mongodb.ConnectionString
getCurrentDescription() - Method in interface com.mongodb.connection.Cluster
Deprecated.
Get the current description of this cluster.
getCursor() - Method in class com.mongodb.connection.QueryResult
Deprecated.
Gets the cursor.
getCursorId() - Method in exception com.mongodb.MongoCursorNotFoundException
Get the cursor id that wasn't found.
getCursorType() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Get the cursor type.
getCursorType() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Get the cursor type.
getDatabase() - Method in class com.mongodb.ConnectionString
Gets the database name
getDatabaseName() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the database name
getDatabaseName() - Method in class com.mongodb.DBRef
Gets the name of the database in which the referenced document is stored.
getDatabaseName() - Method in class com.mongodb.event.CommandStartedEvent
Gets the database on which the operation will be executed.
getDatabaseName() - Method in class com.mongodb.MongoNamespace
Gets the database name.
getDatabaseName() - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
getDatabaseName() - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Gets the database name
getDatabaseName() - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
 
getDatabaseName() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
 
getDatabaseName() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
 
getDatabaseName() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the name of the database to output into.
getDecoder() - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
Gets the decoder used to decode the result documents.
getDecoder() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
 
getDecoder() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the decoder used to decode the result documents.
getDecoder() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the decoder used to decode the result documents.
getDecoder() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the decoder used to decode the result documents.
getDefaultBucket() - Method in class com.mongodb.client.model.BucketOptions
 
getDefaultCodecRegistry() - Static method in class com.mongodb.MongoClientSettings
Gets the default codec registry.
getDefaultLanguage() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the language for a text index.
getDefaultLanguage() - Method in class com.mongodb.client.model.IndexOptions
Gets the language for a text index.
getDefaultMaxDocumentSize() - Static method in class com.mongodb.connection.ServerDescription
Get the default maximum document size.
getDefaultMaxMessageSize() - Static method in class com.mongodb.connection.ConnectionDescription
Get the default maximum message size.
getDefaultMaxWireVersion() - Static method in class com.mongodb.connection.ServerDescription
Get the default maximum wire version
getDefaultMaxWriteBatchSize() - Static method in class com.mongodb.connection.ConnectionDescription
Get the default maximum write batch size.
getDefaultMinWireVersion() - Static method in class com.mongodb.connection.ServerDescription
Get the default minimum wire version
getDefaultTransactionOptions() - Method in class com.mongodb.ClientSessionOptions
Gets the default transaction options for the session.
getDeletedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents deleted by the write operation.
getDeletedCount() - Method in class com.mongodb.client.result.DeleteResult
Gets the number of documents deleted.
getDeleteRequests() - Method in class com.mongodb.operation.DeleteOperation
Deprecated.
Gets the list of remove requests.
getDepthField() - Method in class com.mongodb.client.model.GraphLookupOptions
 
getDescription() - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Gets the description of the connection.
getDescription() - Method in interface com.mongodb.connection.Cluster
Deprecated.
Get the description of this cluster.
getDescription() - Method in class com.mongodb.connection.ClusterId
Gets the user defined description of the MongoClient.
getDescription() - Method in class com.mongodb.connection.ClusterSettings
getDescription() - Method in interface com.mongodb.connection.Connection
Deprecated.
Gets the description of the connection.
getDescription() - Method in interface com.mongodb.connection.Server
Deprecated.
Gets the description of this server.
getDestinationNamespace() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the destination namespace, derived from the "to" field in a change stream document.
getDestinationNamespaceDocument() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the destination namespace document, derived from the "to" field in a change stream document.
getDetails() - Method in class com.mongodb.bulk.WriteConcernError
Gets the details associated with this error.
getDetails() - Method in class com.mongodb.WriteError
Gets the details associated with this error.
getDiacriticSensitive() - Method in class com.mongodb.client.model.TextSearchOptions
Returns the diacritic-sensitive flag to use with the text search
getDocument() - Method in class com.mongodb.bulk.InsertRequest
Deprecated.
Gets the document to insert.
getDocument() - Method in class com.mongodb.client.model.InsertOneModel
Gets the document to insert.
getDocumentId(DBObject) - Method in class com.mongodb.DBObjectCodec
 
getDocumentKey() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns a document containing just the _id of the changed document.
getDriverNames() - Method in class com.mongodb.MongoDriverInformation
Returns the driverNames
getDriverPlatforms() - Method in class com.mongodb.MongoDriverInformation
Returns the driverPlatforms
getDriverVersions() - Method in class com.mongodb.MongoDriverInformation
Returns the driverVersions
getDropDups() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Returns the legacy dropDups setting
getDuration() - Method in class com.mongodb.operation.MapReduceStatistics
Deprecated.
Get the amount of time it took to run the map-reduce.
getElapsedTime(TimeUnit) - Method in class com.mongodb.event.CommandFailedEvent
Gets the elapsed time in the given unit of time.
getElapsedTime(TimeUnit) - Method in class com.mongodb.event.CommandSucceededEvent
Gets the elapsed time in the given unit of time.
getElapsedTime(TimeUnit) - Method in class com.mongodb.event.ServerHeartbeatFailedEvent
Gets the elapsed time in the given time unit.
getElapsedTime(TimeUnit) - Method in class com.mongodb.event.ServerHeartbeatSucceededEvent
Gets the elapsed time in the given time unit.
getElectionId() - Method in class com.mongodb.connection.ServerDescription
The replica set electionid reported by this MongoDB server.
getEmitCount() - Method in class com.mongodb.operation.MapReduceStatistics
Deprecated.
Get the number of messages emitted from the provided map function.
getEncoderClass() - Method in class com.mongodb.BSONTimestampCodec
 
getEncoderClass() - Method in class com.mongodb.client.gridfs.codecs.GridFSFileCodec
 
getEncoderClass() - Method in class com.mongodb.client.model.geojson.codecs.NamedCoordinateReferenceSystemCodec
 
getEncoderClass() - Method in class com.mongodb.DBObjectCodec
 
getEncoderClass() - Method in class com.mongodb.DBRefCodec
 
getError() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Gets the combined errors as an exception
getError() - Method in exception com.mongodb.MongoWriteException
Gets the error.
getErrorCode() - Method in exception com.mongodb.MongoCommandException
Gets the error code associated with the command failure.
getErrorCode() - Method in exception com.mongodb.MongoQueryException
Gets the error code for this query failure.
getErrorCode() - Method in exception com.mongodb.WriteConcernException
Gets the error code associated with the write concern failure.
getErrorCodeName() - Method in exception com.mongodb.MongoCommandException
Gets the name associated with the error code.
getErrorLabels() - Method in exception com.mongodb.MongoException
Gets the set of error labels associated with this exception.
getErrorMessage() - Method in exception com.mongodb.MongoCommandException
Gets the error message associated with the command failure.
getErrorMessage() - Method in exception com.mongodb.MongoQueryException
Gets the error message for this query failure.
getErrorMessage() - Method in exception com.mongodb.WriteConcernException
Gets the error message associated with the write concern failure.
getException() - Method in class com.mongodb.connection.ServerDescription
Gets the exception thrown while attempting to determine the server description.
getExpireAfter(TimeUnit) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the time to live for documents in the collection
getExpireAfter(TimeUnit) - Method in class com.mongodb.client.model.IndexOptions
Gets the time to live for documents in the collection
getExterior() - Method in class com.mongodb.client.model.geojson.Polygon
Gets the exterior coordinates.
getExterior() - Method in class com.mongodb.client.model.geojson.PolygonCoordinates
Gets the exterior of the polygon.
getExtraElements() - Method in class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
any extra information should be stored in the metadata document instead.
getExtraOptions() - Method in class com.mongodb.AutoEncryptionSettings
Gets the extra options that control the behavior of auto-encryption components.
getFieldNameValidator() - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
 
getFieldNameValidator() - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
 
getFieldNameValidator() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
 
getFieldNameValidator() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
 
getFilename() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The filename
getFilter() - Method in class com.mongodb.bulk.DeleteRequest
Deprecated.
Gets the query Object filter.
getFilter() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Gets the query filter for the update.
getFilter() - Method in class com.mongodb.client.model.DeleteManyModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.DeleteOneModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.ReplaceOneModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the query filter to determine which documents in the collection to process.
getFilter() - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Gets the query filter to apply to the returned database names.
getFilter() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the query filter.
getFinalizeFunction() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the function that runs each item in the result before returning the final value.
getFinalizeFunction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the JavaScript function that follows the reduce method and modifies the output.
getFinalizeFunction() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the JavaScript function that follows the reduce method and modifies the output.
getFsync() - Method in class com.mongodb.WriteConcern
Deprecated.
getFullDocument() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the fullDocument
getFullDocument() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Returns the fullDocument value, in 3.6
getFullName() - Method in class com.mongodb.MongoNamespace
Gets the full name, which is the database name and the collection name, separated by a period.
getGeometries() - Method in class com.mongodb.client.model.geojson.GeometryCollection
Gets the list of Geometry objects in this collection.
getGranularity() - Method in class com.mongodb.client.model.BucketAutoOptions
 
getHeartbeatFrequency() - Method in class com.mongodb.ConnectionString
 
getHeartbeatFrequency(TimeUnit) - Method in class com.mongodb.connection.ServerSettings
Gets the frequency that the cluster monitor attempts to reach each server.
getHeartbeatSocketSettings() - Method in class com.mongodb.MongoClientSettings
Gets the connection settings for the heartbeat thread (the background task that checks the state of the cluster) wrapped in a settings object.
getHint() - Method in class com.mongodb.client.model.CountOptions
Gets the hint to apply.
getHint() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the hint for which index to use.
getHint() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Returns the hint for which index to use.
getHint() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Returns the hint for which index to use.
getHint() - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets the hint to apply.
getHint() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the hint for which index to use.
getHintBsonValue() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Returns the hint BsonValue for which index to use.
getHintString() - Method in class com.mongodb.client.model.CountOptions
Deprecated.
getHoles() - Method in class com.mongodb.client.model.geojson.Polygon
Get the holes in this polygon.
getHoles() - Method in class com.mongodb.client.model.geojson.PolygonCoordinates
Gets the holes in the polygon.
getHost() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the host that this connection pool is connecting to.
getHost() - Method in class com.mongodb.ServerAddress
Gets the hostname
getHosts() - Method in class com.mongodb.connection.ClusterSettings
Gets the seed list of hosts for the cluster.
getHosts() - Method in class com.mongodb.connection.ServerDescription
Get a Set of strings in the format of "[hostname]:[port]" that contains all members of the replica set that are neither hidden, passive, nor arbiters.
getHosts() - Method in class com.mongodb.ConnectionString
Gets the list of hosts
getId() - Method in class com.mongodb.bulk.BulkWriteUpsert
Gets the id of the upserted item.
getId() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The BsonValue id for this file.
getId() - Method in class com.mongodb.DBRef
Gets the _id of the referenced document
getId() - Method in class com.mongodb.ServerCursor
Gets the cursor id that the server uses to uniquely identify the cursor.
getIdentifier() - Method in interface com.mongodb.session.ServerSession
 
getIncludeArrayIndex() - Method in class com.mongodb.client.model.UnwindOptions
Gets the includeArrayIndex field if set or null
getIndex() - Method in class com.mongodb.bulk.BulkWriteError
The index of the item in the bulk write operation with this error.
getIndex() - Method in class com.mongodb.bulk.BulkWriteUpsert
Gets the index of the upserted item based on the order it was added to the bulk write operation.
getIndexNames() - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
Gets the index names.
getIndexOptionDefaults() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the index option defaults for the collection.
getIndexOptionDefaults() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the index option defaults for the collection.
getInitial() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the initial the aggregation result document.
getInputCount() - Method in class com.mongodb.operation.MapReduceStatistics
Deprecated.
Get the number of documents that were input into the map reduce operation
getInsertedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents inserted by the write operation.
getInsertRequests() - Method in class com.mongodb.operation.InsertOperation
Deprecated.
Gets the list of insert requests.
getIntRepresentation() - Method in enum com.mongodb.client.model.CollationStrength
The integer representation of the collation strength.
getIntRepresentation() - Method in enum com.mongodb.operation.OrderBy
Deprecated.
The integer representation of the order.
getJ() - Method in class com.mongodb.WriteConcern
Deprecated.
getJournal() - Method in class com.mongodb.WriteConcern
Gets the journal property.
getKey() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the document containing the field or fields to group.
getKeyAltName() - Method in class com.mongodb.client.model.vault.EncryptOptions
Gets the alternate name with which to look up the key.
getKeyAltNames() - Method in class com.mongodb.client.model.vault.DataKeyOptions
Gets the alternate key names.
getKeyFunction() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the function that creates a "key object" for use as the grouping key.
getKeyId() - Method in class com.mongodb.client.model.vault.EncryptOptions
Gets the key identifier.
getKeys() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the index keys
getKeys() - Method in class com.mongodb.client.model.IndexModel
Gets the index keys.
getKeyVaultMongoClientSettings() - Method in class com.mongodb.AutoEncryptionSettings
Gets the key vault settings.
getKeyVaultMongoClientSettings() - Method in class com.mongodb.ClientEncryptionSettings
Gets the key vault settings.
getKeyVaultNamespace() - Method in class com.mongodb.AutoEncryptionSettings
Gets the key vault namespace.
getKeyVaultNamespace() - Method in class com.mongodb.ClientEncryptionSettings
Gets the key vault namespace.
getKmsProviders() - Method in class com.mongodb.AutoEncryptionSettings
Gets the map of KMS provider properties.
getKmsProviders() - Method in class com.mongodb.ClientEncryptionSettings
Gets the map of KMS provider properties.
getLanguage() - Method in class com.mongodb.client.model.TextSearchOptions
Returns the language to be used with the text search
getLanguageOverride() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the name of the field that contains the language string.
getLanguageOverride() - Method in class com.mongodb.client.model.IndexOptions
Gets the name of the field that contains the language string.
getLastUpdateTime(TimeUnit) - Method in class com.mongodb.connection.ServerDescription
Gets the time that this server description was created, using a monotonic clock like System.nanoTime().
getLastWriteDate() - Method in class com.mongodb.connection.ServerDescription
Gets the last write date.
getLength() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The length, in bytes of this file
getLevel() - Method in class com.mongodb.ReadConcern
Gets the read concern level.
getLimit() - Method in class com.mongodb.client.model.CountOptions
Gets the limit to apply.
getLimit() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the limit to apply.
getLocale() - Method in class com.mongodb.client.model.Collation
Returns the locale
getLocalThreshold() - Method in class com.mongodb.ConnectionString
 
getLocalThreshold(TimeUnit) - Method in class com.mongodb.connection.ClusterSettings
Gets the local threshold.
getLocalValue() - Method in class com.mongodb.connection.ConnectionId
Gets the locally created id value for the connection
getLogger(String) - Static method in class com.mongodb.diagnostics.logging.Loggers
Gets a logger with the given suffix appended on to PREFIX, separated by a '.'.
getLogicalSessionTimeoutMinutes() - Method in class com.mongodb.connection.ClusterDescription
Gets the logical session timeout in minutes, or null if at least one of the known servers does not support logical sessions.
getLogicalSessionTimeoutMinutes() - Method in class com.mongodb.connection.ServerDescription
Gets the session timeout in minutes.
getLsid() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the identifier for the session associated with the transaction
getMaintenanceFrequency(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
Returns the time period between runs of the maintenance job.
getMaintenanceInitialDelay(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
Returns the period of time to wait before running the first maintenance job on the connection pool.
getMapFunction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
getMapFunction() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
getMasterKey() - Method in class com.mongodb.client.model.vault.DataKeyOptions
Gets the master key document
getMatchedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents matched by updates or replacements in the write operation.
getMatchedCount() - Method in class com.mongodb.client.result.UpdateResult
Gets the number of documents matched by the query.
getMax() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
getMax() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the exclusive upper bound for a specific index.
getMax() - Method in class com.mongodb.client.model.IndexOptions
Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
getMax() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the exclusive upper bound for a specific index.
getMaxAwaitTime(TimeUnit) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
getMaxAwaitTime(TimeUnit) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
getMaxAwaitTime(TimeUnit) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
getMaxAwaitTime(TimeUnit) - Method in class com.mongodb.operation.FindOperation
Deprecated.
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
getMaxBatchCount() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max batch count for bulk write operations.
getMaxCommitTime(TimeUnit) - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
Gets the maximum amount of time to allow a single commitTransaction command to execute.
getMaxCommitTime(TimeUnit) - Method in class com.mongodb.TransactionOptions
Gets the maximum amount of time to allow a single commitTransaction command to execute.
getMaxConnectionIdleTime() - Method in class com.mongodb.ConnectionString
Gets the maximum connection idle time specified in the connection string.
getMaxConnectionIdleTime(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
Returns the maximum idle time of a pooled connection.
getMaxConnectionLifeTime() - Method in class com.mongodb.ConnectionString
Gets the maximum connection life time specified in the connection string.
getMaxConnectionLifeTime(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
The maximum time a pooled connection can live for.
getMaxConnectionPoolSize() - Method in class com.mongodb.ConnectionString
Gets the maximum connection pool size specified in the connection string.
getMaxDepth() - Method in class com.mongodb.client.model.GraphLookupOptions
 
getMaxDocuments() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the maximum number of documents allowed in a capped collection.
getMaxDocuments() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the maximum number of documents allowed in the collection.
getMaxDocumentSize() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max document size in bytes for documents to be stored in collections.
getMaxDocumentSize() - Method in class com.mongodb.connection.ServerDescription
The maximum permitted size of a BSON object in bytes for this mongod process.
getMaxMessageSize() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max message size in bytes for wire protocol messages to be sent to the server.
getMaxScan() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Deprecated as of MongoDB 4.0 release
getMaxScan() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Deprecated as of MongoDB 4.0 release
getMaxSize() - Method in class com.mongodb.connection.ConnectionPoolSettings
The maximum number of connections allowed.
getMaxSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxStaleness(TimeUnit) - Method in class com.mongodb.TaggableReadPreference
Gets the maximum acceptable staleness of a secondary in order to be considered for read operations.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.CountOptions
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.CreateIndexOptions
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.DropIndexOptions
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.EstimatedDocumentCountOptions
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Gets the maximum execution time for the find one and delete operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the maximum execution time for the find one and replace operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the maximum execution time for the find one and update operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.DropIndexOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the maximum execution time on the server for this operation.
getMaxVariable() - Method in class com.mongodb.client.model.Collation
Returns the maxVariable
getMaxWaitQueueSize() - Method in class com.mongodb.connection.ClusterSettings
This is the maximum number of threads that may be waiting for a connection to become available from the pool.
getMaxWaitQueueSize() - Method in class com.mongodb.connection.ConnectionPoolSettings
This is the maximum number of operations that may be waiting for a connection to become available from the pool.
getMaxWaitTime() - Method in class com.mongodb.ConnectionString
Gets the maximum wait time of a thread waiting for a connection specified in the connection string.
getMaxWaitTime(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
The maximum time that a thread may wait for a connection to become available.
getMaxWireVersion() - Method in class com.mongodb.connection.ConnectionDescription
The latest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
getMaxWireVersion() - Method in class com.mongodb.connection.ServerDescription
The latest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
getMBeanServer() - Static method in class com.mongodb.management.MBeanServerFactory
Deprecated.
Gets the MBeanServer for registering or unregistering MBeans.
getMD5() - Method in class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
file hashing is deprecated and may be removed in the future.
getMechanism() - Method in class com.mongodb.MongoCredential
Gets the mechanism
getMechanismName() - Method in enum com.mongodb.AuthenticationMechanism
Get the mechanism name.
getMechanismProperty(String, T) - Method in class com.mongodb.MongoCredential
Get the value of the given key to a mechanism property, or defaultValue if there is no mapping.
getMessage() - Method in class com.mongodb.bulk.WriteConcernError
Gets the message associated with this error.
getMessage() - Method in class com.mongodb.WriteError
Gets the message associated with this error.
getMetadata() - Method in class com.mongodb.client.gridfs.model.GridFSFile
Any additional metadata stored along with the file
getMetadata() - Method in class com.mongodb.client.gridfs.model.GridFSUploadOptions
Returns any user provided data for the 'metadata' field of the files collection document.
getMin() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
getMin() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the minimum inclusive lower bound for a specific index.
getMin() - Method in class com.mongodb.client.model.IndexOptions
Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
getMin() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the minimum inclusive lower bound for a specific index.
getMinConnectionPoolSize() - Method in class com.mongodb.ConnectionString
Gets the minimum connection pool size specified in the connection string.
getMinHeartbeatFrequency(TimeUnit) - Method in class com.mongodb.connection.ServerSettings
Gets the minimum heartbeat frequency.
getMinSize() - Method in class com.mongodb.connection.ConnectionPoolSettings
The minimum number of connections.
getMinSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the minimum allowed size of the pool, including idle and in-use members.
getMinWireVersion() - Method in class com.mongodb.connection.ServerDescription
The earliest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
getMode() - Method in class com.mongodb.connection.ClusterSettings
Gets the mode.
getModifiedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents modified by the write operation.
getModifiedCount() - Method in class com.mongodb.client.result.UpdateResult
Gets the number of documents modified by the update.
getModifiers() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
use the individual modifier methods instead.
getModifiers() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the query modifiers to apply to this operation.
getMore(MongoNamespace, long, int, Decoder<T>) - Method in interface com.mongodb.connection.Connection
Deprecated.
Get more result documents from a cursor.
getMoreAsync(MongoNamespace, long, int, Decoder<T>, SingleResultCallback<QueryResult<T>>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Get more result documents from a cursor asynchronously.
getName() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the name of the index.
getName() - Method in class com.mongodb.client.model.BsonField
Gets the field name
getName() - Method in class com.mongodb.client.model.Facet
 
getName() - Method in class com.mongodb.client.model.Field
 
getName() - Method in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
Gets the name of this Coordinate Reference System.
getName() - Method in class com.mongodb.client.model.IndexOptions
Gets the name of the index.
getName() - Method in class com.mongodb.client.model.Variable
 
getName() - Method in interface com.mongodb.diagnostics.logging.Logger
Return the name of this Logger instance.
getName() - Method in class com.mongodb.MongoCompressor
Gets the name of the compressor.
getName() - Method in class com.mongodb.ReadPreference
Gets the name of this read preference.
getName() - Method in class com.mongodb.Tag
Gets the name of the replica set tag.
getNameOnly() - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Gets the nameOnly flag that indicates whether the command should return just the database names or return the database names and size information.
getNamespace() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the namespace, derived from the "ns" field in a change stream document.
getNamespace() - Method in class com.mongodb.connection.QueryResult
Deprecated.
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
Gets the namespace of the collection to write to.
getNamespace() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
 
getNamespace() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Gets the namespace of the collection to write to.
getNamespaceDocument() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the namespace cocument, derived from the "ns" field in a change stream document.
getNewDescription() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
Gets the new cluster description.
getNewDescription() - Method in class com.mongodb.event.ServerDescriptionChangedEvent
Gets the new server description.
getNextSplit() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
getNormalization() - Method in class com.mongodb.client.model.Collation
Returns the normalization value
getNumCursors() - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
Gets the number of cursors requested.
getNumericOrdering() - Method in class com.mongodb.client.model.Collation
Returns the numeric ordering, if true will order numbers based on numerical order and not collation order.
getObjectId() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The ObjectId for this file.
getOperationTime() - Method in interface com.mongodb.async.AsyncAggregateResponseBatchCursor
Deprecated.
Returns the operation time found in the aggregate or getMore response.
getOperationTime() - Method in interface com.mongodb.operation.AggregateResponseBatchCursor
Deprecated.
Returns the operation time found in the aggregate or getMore response.
getOperationTime() - Method in interface com.mongodb.session.ClientSession
Gets the operation time of the last operation executed in this session.
getOperationTime() - Method in interface com.mongodb.session.SessionContext
Gets the current operation time for this session context
getOperationType() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the operationType
getOptions() - Method in class com.mongodb.client.model.DeleteManyModel
Gets the options to apply.
getOptions() - Method in class com.mongodb.client.model.DeleteOneModel
Gets the options to apply.
getOptions() - Method in class com.mongodb.client.model.IndexModel
Gets the index options.
getOptions() - Method in class com.mongodb.client.model.ReplaceOneModel
Deprecated.
getOptions() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the options to apply.
getOptions() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the options to apply.
getOptions() - Method in interface com.mongodb.session.ClientSession
Get the options for this session.
getOriginator() - Method in interface com.mongodb.session.ClientSession
Gets the originator for the session.
getOutput() - Method in class com.mongodb.client.model.BucketAutoOptions
 
getOutput() - Method in class com.mongodb.client.model.BucketOptions
 
getOutputCount() - Method in class com.mongodb.operation.MapReduceStatistics
Deprecated.
Get the number of documents generated as a result of this map reduce
getPartialFilterExpression() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Get the filter expression for the documents to be included in the index or null if not set
getPartialFilterExpression() - Method in class com.mongodb.client.model.IndexOptions
Get the filter expression for the documents to be included in the index or null if not set
getPassives() - Method in class com.mongodb.connection.ServerDescription
Gets the passive members of the replica set.
getPassword() - Method in class com.mongodb.ConnectionString
Gets the password
getPassword() - Method in class com.mongodb.MongoCredential
Gets the password.
getPayload() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
getPayloadName() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
getPayloadType() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
getPinnedServerAddress() - Method in interface com.mongodb.session.ClientSession
Get the server address of the pinned mongos on this session.
getPipeline() - Method in class com.mongodb.client.model.Facet
 
getPipeline() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Gets the aggregation pipeline.
getPipeline() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Gets the aggregation pipeline.
getPipeline() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Gets the aggregation pipeline.
getPipeline() - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Gets the pipeline that defines the view.
getPort() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the port that this connection pool is connecting to.
getPort() - Method in class com.mongodb.ServerAddress
Gets the port number
getPosition() - Method in class com.mongodb.client.model.geojson.Point
Gets the position of this point.
getPosition() - Method in class com.mongodb.client.model.PushOptions
Gets the position at which to add the pushed values in the array.
getPosition() - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
getPosition() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
getPostBatchResumeToken() - Method in interface com.mongodb.async.AsyncAggregateResponseBatchCursor
Deprecated.
Returns the postBatchResumeToken.
getPostBatchResumeToken() - Method in interface com.mongodb.operation.AggregateResponseBatchCursor
Deprecated.
Returns the postBatchResumeToken.
getPreviousDescription() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
Gets the previous cluster description.
getPreviousDescription() - Method in class com.mongodb.event.ServerDescriptionChangedEvent
Gets the previous server description.
getPrimaries() - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getPrimary() - Method in class com.mongodb.connection.ServerDescription
Gets the address of the current primary in the replica set
getProjection() - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets a document describing the fields to return for all matching documents.
getProperty(String, T) - Method in class com.mongodb.MongoCompressor
Gets the property with the given key.
getPropertyNonNull(String, T) - Method in class com.mongodb.MongoCompressor
Gets the property with the given key.
getReadConcern() - Method in class com.mongodb.ConnectionString
Gets the read concern specified in the connection string.
getReadConcern() - Method in class com.mongodb.MongoClientSettings
The read concern to use.
getReadConcern() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Gets the read concern.
getReadConcern() - Method in interface com.mongodb.session.SessionContext
Gets the read concern to apply to operations on this binding.
getReadConcern() - Method in class com.mongodb.TransactionOptions
Gets the read concern.
getReadConnectionSource() - Method in class com.mongodb.binding.ClusterBinding
Deprecated.
 
getReadConnectionSource() - Method in interface com.mongodb.binding.ReadBinding
Deprecated.
Returns a connection source to a server that satisfies the specified read preference.
getReadConnectionSource() - Method in class com.mongodb.binding.SingleConnectionReadBinding
Deprecated.
 
getReadConnectionSource() - Method in class com.mongodb.binding.SingleServerBinding
Deprecated.
 
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncClusterBinding
Deprecated.
 
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in interface com.mongodb.binding.AsyncReadBinding
Deprecated.
Returns a connection source to a server that satisfies the specified read preference.
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncSingleConnectionReadBinding
Deprecated.
 
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
 
getReadPreference() - Method in class com.mongodb.binding.AsyncClusterBinding
Deprecated.
 
getReadPreference() - Method in interface com.mongodb.binding.AsyncReadBinding
Deprecated.
The read preference that all connection sources returned by this instance will satisfy.
getReadPreference() - Method in class com.mongodb.binding.AsyncSingleConnectionReadBinding
Deprecated.
 
getReadPreference() - Method in class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
 
getReadPreference() - Method in class com.mongodb.binding.ClusterBinding
Deprecated.
 
getReadPreference() - Method in interface com.mongodb.binding.ReadBinding
Deprecated.
The read preference that all connection sources returned by this instance will satisfy.
getReadPreference() - Method in class com.mongodb.binding.SingleConnectionReadBinding
Deprecated.
 
getReadPreference() - Method in class com.mongodb.binding.SingleServerBinding
Deprecated.
 
getReadPreference() - Method in class com.mongodb.ConnectionString
Gets the read preference specified in the connection string.
getReadPreference() - Method in class com.mongodb.MongoClientSettings
The read preference to use for queries, map-reduce, aggregation, and count.
getReadPreference() - Method in class com.mongodb.selector.ReadPreferenceServerSelector
Deprecated.
Gets the read preference.
getReadPreference() - Method in class com.mongodb.TransactionOptions
Gets the read preference.
getReadTimeout(TimeUnit) - Method in class com.mongodb.connection.SocketSettings
Gets the timeout for socket reads.
getReason() - Method in class com.mongodb.event.ConnectionRemovedEvent
Get the reason the connection was removed.
getReceiveBufferSize() - Method in class com.mongodb.connection.SocketSettings
Gets the receive buffer size.
getRecoveryToken() - Method in interface com.mongodb.session.ClientSession
Get the recovery token from the latest outcome in a sharded transaction.
getReduceFunction() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the aggregation function that operates on the documents during the grouping operation.
getReduceFunction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
getReduceFunction() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
getRemovedFields() - Method in class com.mongodb.client.model.changestream.UpdateDescription
Returns the removedFields
getReplacement() - Method in class com.mongodb.client.model.ReplaceOneModel
Gets the document which will replace the document matching the query filter.
getReplacement() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Gets the document which will replace the document matching the query filter.
getReplaceOptions() - Method in class com.mongodb.client.model.ReplaceOneModel
Gets the ReplaceOptions to apply.
getReply() - Method in class com.mongodb.event.ServerHeartbeatSucceededEvent
Gets the reply to the isMaster command executed for this heartbeat.
getRequestId() - Method in class com.mongodb.event.CommandEvent
Gets the request identifier
getRequestId() - Method in class com.mongodb.event.ConnectionMessagesSentEvent
Deprecated.
Gets the request id of the message that was sent.
getRequests() - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
Gets the index requests.
getRequiredClusterType() - Method in class com.mongodb.connection.ClusterSettings
Gets the required cluster type
getRequiredReplicaSetName() - Method in class com.mongodb.connection.ClusterSettings
Gets the required replica set name.
getRequiredReplicaSetName() - Method in class com.mongodb.ConnectionString
Gets the required replica set name specified in the connection string.
getResponse() - Method in class com.mongodb.event.CommandSucceededEvent
Gets the response document.
getResponse() - Method in exception com.mongodb.MongoCommandException
For internal use only.
getResponse() - Method in exception com.mongodb.WriteConcernException
Gets the response to the write operation.
getResponseTo() - Method in class com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
The responseTo identifier of the message.
getRestrictSearchWithMatch() - Method in class com.mongodb.client.model.GraphLookupOptions
 
getResult() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Gets the combined result.
getResults() - Method in class com.mongodb.connection.QueryResult
Deprecated.
Gets the results.
getResumeAfter() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Returns the logical starting point for the new change stream.
getResumeToken() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the resumeToken
getResumeToken() - Method in class com.mongodb.operation.ChangeStreamOperation
getRetryCommandModifier() - Method in class com.mongodb.operation.AbortTransactionOperation
Deprecated.
 
getRetryCommandModifier() - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
 
getRetryCommandModifier() - Method in class com.mongodb.operation.TransactionOperation
Deprecated.
 
getRetryReads() - Method in class com.mongodb.ConnectionString
Gets whether reads should be retried if they fail due to a network error
getRetryReads() - Method in class com.mongodb.MongoClientSettings
Returns true if reads should be retried if they fail due to a network error or other retryable error.
getRetryReads() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
Gets the value for retryable reads.
getRetryReads() - Method in class com.mongodb.operation.UserExistsOperation
Deprecated.
Gets the value for retryable reads.
getRetryWrites() - Method in class com.mongodb.ConnectionString
getRetryWrites() - Method in class com.mongodb.MongoClientSettings
Returns true if writes should be retried if they fail due to a network error or other retryable error.
getRetryWrites() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Returns true if writes should be retried if they fail due to a network error.
getRetryWritesValue() - Method in class com.mongodb.ConnectionString
Gets whether writes should be retried if they fail due to a network error
getReturnDocument() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the ReturnDocument value indicating whether to return the document before it was replaced or after
getReturnDocument() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the ReturnDocument value indicating whether to return the document before it was updated / inserted or after
getRevision() - Method in class com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
Deprecated.
Gets the revision to download identifier
getRevision() - Method in class com.mongodb.client.gridfs.model.GridFSDownloadOptions
Gets the revision to download identifier
getRoundTripTimeNanos() - Method in class com.mongodb.connection.ServerDescription
Get the time it took to make the round trip for requesting this information from the server in nanoseconds.
getSchemaMap() - Method in class com.mongodb.AutoEncryptionSettings
Gets the map of namespace to local JSON schema.
getScope() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the global variables that are accessible in the map, reduce and finalize functions.
getScope() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the global variables that are accessible in the map, reduce and finalize functions.
getSecondaries() - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getSecondaries(TagSet) - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getSendBufferSize() - Method in class com.mongodb.connection.SocketSettings
Gets the send buffer size.
getServerAddress() - Method in class com.mongodb.connection.ConnectionDescription
Gets the server address.
getServerAddress() - Method in exception com.mongodb.MongoBulkWriteException
The address of the server which performed the bulk write operation.
getServerAddress() - Method in exception com.mongodb.MongoCursorNotFoundException
The server address where the cursor is.
getServerAddress() - Method in exception com.mongodb.MongoServerException
Gets the address of the server.
getServerAddress() - Method in exception com.mongodb.MongoSocketException
Gets the server address for this exception.
getServerAddress() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
Returns the server address
getServerAddress() - Method in class com.mongodb.selector.ServerAddressSelector
Deprecated.
Gets the server address.
getServerCursor() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
Returns the server cursor
getServerDescription() - Method in interface com.mongodb.binding.AsyncConnectionSource
Deprecated.
Gets the current description of this source.
getServerDescription() - Method in interface com.mongodb.binding.ConnectionSource
Deprecated.
Gets the current description of this source.
getServerDescriptions() - Method in class com.mongodb.connection.ClusterDescription
Returns an unmodifiable list of the server descriptions in this cluster description.
getServerId() - Method in class com.mongodb.connection.ConnectionId
Gets the server id.
getServerId() - Method in class com.mongodb.event.ConnectionPoolClosedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent
Gets the server id.
getServerId() - Method in class com.mongodb.event.ConnectionPoolWaitQueueExitedEvent
Gets the server id.
getServerId() - Method in class com.mongodb.event.ServerClosedEvent
Gets the serverId.
getServerId() - Method in class com.mongodb.event.ServerDescriptionChangedEvent
Gets the serverId.
getServerId() - Method in class com.mongodb.event.ServerOpeningEvent
Gets the serverId.
getServerListeners() - Method in class com.mongodb.connection.ServerSettings
Gets the server listeners.
getServerListeners() - Method in class com.mongodb.event.ServerEventMulticaster
Deprecated.
Gets the server listeners.
getServerMonitorListeners() - Method in class com.mongodb.connection.ServerSettings
Gets the server monitor listeners.
getServerMonitorListeners() - Method in class com.mongodb.event.ServerMonitorEventMulticaster
Deprecated.
Gets the server monitor listeners.
getServerSelectionTimeout() - Method in class com.mongodb.ConnectionString
 
getServerSelectionTimeout(TimeUnit) - Method in class com.mongodb.connection.ClusterSettings
Gets the timeout to apply when selecting a server.
getServerSelector() - Method in class com.mongodb.connection.ClusterSettings
Gets the server selector.
getServerSelectors() - Method in class com.mongodb.selector.CompositeServerSelector
 
getServerSession() - Method in interface com.mongodb.session.ClientSession
 
getServerSettings() - Method in class com.mongodb.connection.ClusterDescription
Gets the server settings, which may be null if not provided.
getServerSettings() - Method in class com.mongodb.MongoClientSettings
Gets the server-specific settings wrapped in a settings object.
getServerType() - Method in class com.mongodb.connection.ConnectionDescription
Gets the server type.
getServerValue() - Method in class com.mongodb.connection.ConnectionId
Gets the server generated id value for the connection or null if not set.
getServerVersion() - Method in class com.mongodb.connection.ConnectionDescription
getSessionContext() - Method in class com.mongodb.binding.AsyncClusterBinding
Deprecated.
 
getSessionContext() - Method in interface com.mongodb.binding.AsyncConnectionSource
Deprecated.
Gets the session context for this source
getSessionContext() - Method in interface com.mongodb.binding.AsyncReadBinding
Deprecated.
Gets the session context for this binding.
getSessionContext() - Method in class com.mongodb.binding.AsyncSingleConnectionReadBinding
Deprecated.
 
getSessionContext() - Method in class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
 
getSessionContext() - Method in interface com.mongodb.binding.AsyncWriteBinding
Deprecated.
Gets the session context for this binding.
getSessionContext() - Method in class com.mongodb.binding.ClusterBinding
Deprecated.
 
getSessionContext() - Method in interface com.mongodb.binding.ConnectionSource
Deprecated.
Gets the session context for this source
getSessionContext() - Method in interface com.mongodb.binding.ReadBinding
Deprecated.
Gets the session context for this binding.
getSessionContext() - Method in class com.mongodb.binding.SingleConnectionReadBinding
Deprecated.
 
getSessionContext() - Method in class com.mongodb.binding.SingleServerBinding
Deprecated.
 
getSessionContext() - Method in interface com.mongodb.binding.WriteBinding
Deprecated.
Gets the session context for this binding.
getSessionId() - Method in interface com.mongodb.session.SessionContext
Gets the session identifier if this context has a session backing it.
getSetName() - Method in class com.mongodb.connection.ServerDescription
Gets the name of the replica set
getSettings() - Method in interface com.mongodb.connection.Cluster
Deprecated.
Gets the cluster settings with which this cluster was created.
getSettings() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
Gets the connection pool settings.
getSetVersion() - Method in class com.mongodb.connection.ServerDescription
The replica set setVersion reported by this MongoDB server.
getShortDescription() - Method in class com.mongodb.connection.ClusterDescription
Returns a short, pretty description for this ClusterDescription.
getShortDescription() - Method in class com.mongodb.connection.ClusterSettings
Returns a short, pretty description for these ClusterSettings.
getShortDescription() - Method in class com.mongodb.connection.ServerDescription
Returns a short, pretty description for this ServerDescription.
getSize() - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
getSize() - Method in class com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
Gets the size of the received message.
getSize() - Method in class com.mongodb.event.ConnectionMessagesSentEvent
Deprecated.
Gets the size of the sent message.
getSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the current size of the pool, including idle and and in-use members.
getSizeInBytes() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the maximum size in bytes of a capped collection.
getSizeInBytes() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the maximum size of the collection in bytes.
getSkip() - Method in class com.mongodb.client.model.CountOptions
Gets the number of documents to skip.
getSkip() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Gets the number of documents to skip.
getSkip() - Method in class com.mongodb.operation.CountOperation
Deprecated.
Gets the number of documents to skip.
getSkip() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the number of documents to skip.
getSlice() - Method in class com.mongodb.client.model.PushOptions
Gets the slice value, which is the limit on the number of array elements allowed.
getSocketAddress() - Method in class com.mongodb.ServerAddress
Gets the underlying socket address
getSocketAddress() - Method in class com.mongodb.UnixServerAddress
 
getSocketAddresses() - Method in class com.mongodb.ServerAddress
Gets all underlying socket addresses
getSocketSettings() - Method in class com.mongodb.MongoClientSettings
Gets the connection-specific settings wrapped in a settings object.
getSocketTimeout() - Method in class com.mongodb.ConnectionString
Gets the socket timeout specified in the connection string.
getSort() - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.PushOptions
Gets the sort direction for sorting array elements that are not documents.
getSort() - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the sort criteria to apply to the query.
getSortDocument() - Method in class com.mongodb.client.model.PushOptions
Gets the sort direction for sorting array elements that are documents.
getSource() - Method in class com.mongodb.MongoCredential
Gets the source of the user name, typically the name of the database where the user is defined.
getSphereVersion() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the 2dsphere index version number.
getSphereVersion() - Method in class com.mongodb.client.model.IndexOptions
Gets the 2dsphere index version number.
getSrvHost() - Method in class com.mongodb.connection.ClusterSettings
Gets the host name from which to lookup SRV record for the seed list
getSrvResolutionException() - Method in class com.mongodb.connection.ClusterDescription
Gets any exception encountered while resolving the SRV record for the initial host.
getSslEnabled() - Method in class com.mongodb.ConnectionString
Gets the SSL enabled value specified in the connection string.
getSslInvalidHostnameAllowed() - Method in class com.mongodb.ConnectionString
Gets the SSL invalidHostnameAllowed value specified in the connection string.
getSslSettings() - Method in class com.mongodb.MongoClientSettings
Gets the SSL settings.
getStartAfter() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Returns the logical starting point for the new change stream returning the first notification after the token.
getStartAtOperationTime() - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Returns the start at operation time
getState() - Method in class com.mongodb.connection.ServerDescription
Gets the current state of the connection to the server.
getStatistics() - Method in interface com.mongodb.operation.MapReduceAsyncBatchCursor
Deprecated.
Get the statistics for this map-reduce operation
getStatistics() - Method in interface com.mongodb.operation.MapReduceBatchCursor
Deprecated.
Get the statistics for this map-reduce operation
getStorageEngine() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the storage engine options document for this index.
getStorageEngine() - Method in class com.mongodb.client.model.IndexOptionDefaults
Gets the default storage engine options document for indexes.
getStorageEngine() - Method in class com.mongodb.client.model.IndexOptions
Gets the storage engine options document for this index.
getStorageEngineOptions() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the storage engine options document for the collection.
getStorageEngineOptions() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the storage engine options document for this collection.
getStreamFactoryFactory() - Method in class com.mongodb.MongoClientSettings
Gets the factory to use to create a StreamFactory.
getStreamType() - Method in class com.mongodb.ConnectionString
Deprecated.
Use MongoClientSettings.Builder.streamFactoryFactory(StreamFactoryFactory) to configure the stream type programmatically
getStrength() - Method in class com.mongodb.client.model.Collation
Returns the collation strength
getTagSet() - Method in class com.mongodb.connection.ServerDescription
A set of all tags assigned to this member.
getTagSetList() - Method in class com.mongodb.TaggableReadPreference
Gets the list of tag sets as a list of TagSet instances.
getTextVersion() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
The text index version number.
getTextVersion() - Method in class com.mongodb.client.model.IndexOptions
The text index version number.
getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.ConnectionString
Gets the multiplier for the number of threads allowed to block waiting for a connection specified in the connection string.
getThrowable() - Method in class com.mongodb.event.CommandFailedEvent
Gets the throwable cause of the failure
getThrowable() - Method in class com.mongodb.event.ServerHeartbeatFailedEvent
Gets the exceptions that caused the failure
getTransactionNumber() - Method in interface com.mongodb.session.ServerSession
Gets the current transaction number.
getTransactionNumber() - Method in interface com.mongodb.session.SessionContext
Gets the current transaction number.
getTxnNumber() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the transaction number
getType() - Method in class com.mongodb.bulk.DeleteRequest
Deprecated.
 
getType() - Method in class com.mongodb.bulk.InsertRequest
Deprecated.
 
getType() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
 
getType() - Method in class com.mongodb.bulk.WriteRequest
Deprecated.
Gets the type of the write.
getType() - Method in class com.mongodb.client.model.geojson.CoordinateReferenceSystem
Gets the type of this Coordinate Reference System.
getType() - Method in class com.mongodb.client.model.geojson.Geometry
Gets the GeoJSON object type.
getType() - Method in class com.mongodb.client.model.geojson.GeometryCollection
 
getType() - Method in class com.mongodb.client.model.geojson.LineString
 
getType() - Method in class com.mongodb.client.model.geojson.MultiLineString
 
getType() - Method in class com.mongodb.client.model.geojson.MultiPoint
 
getType() - Method in class com.mongodb.client.model.geojson.MultiPolygon
 
getType() - Method in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
 
getType() - Method in class com.mongodb.client.model.geojson.Point
 
getType() - Method in class com.mongodb.client.model.geojson.Polygon
 
getType() - Method in class com.mongodb.connection.ClusterDescription
Gets the specific type of this cluster
getType() - Method in class com.mongodb.connection.ServerDescription
Gets the type of the server, for example whether it's a standalone or in a replica set.
getType() - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
 
getType() - Method in class com.mongodb.operation.DeleteOperation
Deprecated.
 
getType() - Method in class com.mongodb.operation.InsertOperation
Deprecated.
 
getType() - Method in class com.mongodb.operation.UpdateOperation
Deprecated.
 
getTypeName() - Method in enum com.mongodb.client.model.geojson.CoordinateReferenceSystemType
Gets the GeoJSON-defined name for the type.
getTypeName() - Method in enum com.mongodb.client.model.geojson.GeoJsonObjectType
Gets the GeoJSON-defined name for the object type.
getUniqueIdentifier() - Method in class com.mongodb.client.model.MergeOptions
Gets the fields that act as a unique identifier for a document.
getUnixSocketAddress() - Method in class com.mongodb.UnixServerAddress
 
getUpdate() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
getUpdate() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the document specifying the updates to apply to the matching document.
getUpdate() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the document specifying the updates to apply to the matching document.
getUpdate() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets the document containing update operators
getUpdateDescription() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the updateDescription
getUpdatedFields() - Method in class com.mongodb.client.model.changestream.UpdateDescription
Returns the updatedFields
getUpdatePipeline() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the pipeline specifying the updates to apply to the matching document.
getUpdatePipeline() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the pipeline specifying the updates to apply to the matching document.
getUpdatePipeline() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Gets the pipeline containing update operators
getUpdateRequests() - Method in class com.mongodb.operation.UpdateOperation
Deprecated.
Gets the list of update requests.
getUpdateValue() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Gets the update.
getUploadDate() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The date and time this file was added to GridFS
getUpsertedId() - Method in class com.mongodb.client.result.UpdateResult
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null.
getUpsertedId() - Method in class com.mongodb.WriteConcernResult
Returns the value of _id if this write resulted in an upsert.
getUpserts() - Method in class com.mongodb.bulk.BulkWriteResult
Gets an unmodifiable list of upserted items, or the empty list if there were none.
getURI() - Method in class com.mongodb.ConnectionString
Deprecated.
getUseCursor() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.
getUsername() - Method in class com.mongodb.ConnectionString
Gets the username
getUserName() - Method in class com.mongodb.MongoCredential
Gets the user name
getValidationAction() - Method in class com.mongodb.client.model.ValidationOptions
getValidationAction() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
getValidationLevel() - Method in class com.mongodb.client.model.ValidationOptions
Gets the ValidationLevel that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
getValidationLevel() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the ValidationLevel that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
getValidationOptions() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the validation options for documents being inserted or updated in a collection
getValidator() - Method in class com.mongodb.client.model.ValidationOptions
Gets the validation rules if set or null.
getValidator() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the validation rules for inserting or updating documents
getValue() - Method in class com.mongodb.client.model.BsonField
Gets the field value
getValue() - Method in enum com.mongodb.client.model.BucketGranularity
Returns the display as defined in the preferred number article
getValue() - Method in enum com.mongodb.client.model.changestream.FullDocument
 
getValue() - Method in enum com.mongodb.client.model.changestream.OperationType
 
getValue() - Method in enum com.mongodb.client.model.CollationAlternate
 
getValue() - Method in enum com.mongodb.client.model.CollationCaseFirst
 
getValue() - Method in enum com.mongodb.client.model.CollationMaxVariable
 
getValue() - Method in class com.mongodb.client.model.Field
 
getValue() - Method in enum com.mongodb.client.model.MapReduceAction
 
getValue() - Method in enum com.mongodb.client.model.ValidationAction
 
getValue() - Method in enum com.mongodb.client.model.ValidationLevel
 
getValue() - Method in class com.mongodb.client.model.Variable
 
getValue() - Method in class com.mongodb.connection.ClusterId
Gets the value of the identifier.
getValue() - Method in enum com.mongodb.ReadConcernLevel
 
getValue() - Method in class com.mongodb.Tag
Gets the value of the replica set tag.
getValues() - Method in class com.mongodb.client.model.geojson.Position
Gets the values of this position
getVariables() - Method in class com.mongodb.client.model.MergeOptions
Gets the variables accessible for use in the whenMatched pipeline
getVersion() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the index version number.
getVersion() - Method in class com.mongodb.client.model.IndexOptions
Gets the index version number.
getVersion() - Method in class com.mongodb.connection.ServerDescription
Deprecated.
getVersionList() - Method in class com.mongodb.connection.ServerVersion
Gets the version list.
getViewName() - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Gets the name of the view to create.
getViewOn() - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Gets the name of the collection or view that backs this view.
getW() - Method in class com.mongodb.WriteConcern
Gets the w value as an integer.
getWaitQueueSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the size of the wait queue for a connection from this pool.
getWeights() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the weighting object for use with a text index
getWeights() - Method in class com.mongodb.client.model.IndexOptions
Gets the weighting object for use with a text index
getWhenMatched() - Method in class com.mongodb.client.model.MergeOptions
Gets the behavior of $merge if a result document and an existing document in the collection have the same value for the specified on field(s).
getWhenMatchedPipeline() - Method in class com.mongodb.client.model.MergeOptions
Gets aggregation pipeline to update the document in the collection.
getWhenNotMatched() - Method in class com.mongodb.client.model.MergeOptions
Gets the behavior of $merge if a result document does not match an existing document in the out collection.
getWildcardProjection() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets the wildcard projection of a wildcard index
getWildcardProjection() - Method in class com.mongodb.client.model.IndexOptions
Gets the wildcard projection of a wildcard index
getWObject() - Method in class com.mongodb.WriteConcern
Gets the w value.
getWriteConcern() - Method in class com.mongodb.ConnectionString
Gets the write concern specified in the connection string.
getWriteConcern() - Method in class com.mongodb.MongoClientSettings
The write concern to use.
getWriteConcern() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
Get the write concern for this operation
getWriteConcern() - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
Gets the write concern to apply
getWriteConcern() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.CreateViewOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.DropCollectionOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.DropDatabaseOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.DropIndexOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Gets the write concern to apply
getWriteConcern() - Method in class com.mongodb.operation.RenameCollectionOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.operation.TransactionOperation
Deprecated.
Gets the write concern.
getWriteConcern() - Method in class com.mongodb.TransactionOptions
Gets the write concern.
getWriteConcernError() - Method in exception com.mongodb.MongoBulkWriteException
The write concern error, which may be null (in which case the list of errors will not be empty).
getWriteConcernError() - Method in exception com.mongodb.MongoWriteConcernException
Gets the write concern error.
getWriteConcernResult() - Method in exception com.mongodb.WriteConcernException
Gets the write result.
getWriteConnectionSource() - Method in class com.mongodb.binding.ClusterBinding
Deprecated.
 
getWriteConnectionSource() - Method in class com.mongodb.binding.SingleServerBinding
Deprecated.
 
getWriteConnectionSource() - Method in interface com.mongodb.binding.WriteBinding
Deprecated.
Supply a connection source to a server that can be written to
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncClusterBinding
Deprecated.
 
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
 
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in interface com.mongodb.binding.AsyncWriteBinding
Deprecated.
Supply a connection source to a server that can be written to
getWriteErrors() - Method in exception com.mongodb.MongoBulkWriteException
The list of errors, which will not be null, but may be empty (if the write concern error is not null).
getWriteRequests() - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
 
getWriteRequests() - Method in class com.mongodb.operation.DeleteOperation
Deprecated.
 
getWriteRequests() - Method in class com.mongodb.operation.InsertOperation
Deprecated.
 
getWriteRequests() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Gets the list of write requests to execute.
getWriteRequests() - Method in class com.mongodb.operation.UpdateOperation
Deprecated.
 
getWriteResult() - Method in exception com.mongodb.MongoBulkWriteException
The result of all successfully processed write operations.
getWriteResult() - Method in exception com.mongodb.MongoWriteConcernException
Gets the write result.
getWString() - Method in class com.mongodb.WriteConcern
Gets the w parameter as a String.
getWtimeout() - Method in class com.mongodb.WriteConcern
getWTimeout(TimeUnit) - Method in class com.mongodb.WriteConcern
Gets the wTimeout in the given time unit.
granularity(BucketGranularity) - Method in class com.mongodb.client.model.BucketAutoOptions
Specifies the granularity of the bucket definitions.
graphLookup(String, TExpression, String, String, String) - Static method in class com.mongodb.client.model.Aggregates
Creates a graphLookup pipeline stage for the specified filter
graphLookup(String, TExpression, String, String, String, GraphLookupOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a graphLookup pipeline stage for the specified filter
GraphLookupOptions - Class in com.mongodb.client.model
The options for a graphLookup aggregation pipeline stage
GraphLookupOptions() - Constructor for class com.mongodb.client.model.GraphLookupOptions
 
GridFSDownloadByNameOptions - Class in com.mongodb.client.gridfs.model
Deprecated.
GridFSDownloadByNameOptions() - Constructor for class com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
Deprecated.
Download the most recent version of the file.
GridFSDownloadOptions - Class in com.mongodb.client.gridfs.model
The GridFS download by name options
GridFSDownloadOptions() - Constructor for class com.mongodb.client.gridfs.model.GridFSDownloadOptions
Download the most recent version of the file.
GridFSFile - Class in com.mongodb.client.gridfs.model
The GridFSFile
GridFSFile(BsonValue, String, long, int, Date, String, Document) - Constructor for class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
there is no replacement for this constructor
GridFSFile(BsonValue, String, long, int, Date, String, Document, Document) - Constructor for class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
there is no replacement for this constructor
GridFSFileCodec - Class in com.mongodb.client.gridfs.codecs
A codec for GridFS Files
GridFSFileCodec(CodecRegistry) - Constructor for class com.mongodb.client.gridfs.codecs.GridFSFileCodec
Create a new instance
GridFSFileCodecProvider - Class in com.mongodb.client.gridfs.codecs
A provider of codecs for GridFSFiles.
GridFSFileCodecProvider() - Constructor for class com.mongodb.client.gridfs.codecs.GridFSFileCodecProvider
 
GridFSUploadOptions - Class in com.mongodb.client.gridfs.model
GridFS upload options Customizable options used when uploading files into GridFS
GridFSUploadOptions() - Constructor for class com.mongodb.client.gridfs.model.GridFSUploadOptions
Construct a new instance.
group(AsynchronousChannelGroup) - Method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory.Builder
Sets the AsynchronousChannelGroup
group(TExpression, BsonField...) - Static method in class com.mongodb.client.model.Aggregates
Creates a $group pipeline stage for the specified filter
group(TExpression, List<BsonField>) - Static method in class com.mongodb.client.model.Aggregates
Creates a $group pipeline stage for the specified filter
GroupOperation<T> - Class in com.mongodb.operation
Deprecated.
GroupOperation(MongoNamespace, BsonJavaScript, BsonDocument, Decoder<T>) - Constructor for class com.mongodb.operation.GroupOperation
Deprecated.
Create an operation that will perform a Group on a given collection.
GSSAPI - com.mongodb.AuthenticationMechanism
The GSSAPI mechanism.
GSSAPI_MECHANISM - Static variable in class com.mongodb.MongoCredential
The GSSAPI mechanism.
gt(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the given field is greater than the specified value.
gte(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.

H

hasActiveTransaction() - Method in interface com.mongodb.session.SessionContext
Gets whether the session has an active transaction
hasAnotherSplit() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
hasErrorLabel(String) - Method in exception com.mongodb.MongoException
Return true if the exception is labelled with the given error label, and false otherwise.
hasErrors() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
Gets whether there are errors in the combined result.
hashCode() - Method in class com.mongodb.BasicDBObject
 
hashCode() - Method in class com.mongodb.bulk.BulkWriteError
 
hashCode() - Method in class com.mongodb.bulk.BulkWriteUpsert
 
hashCode() - Method in class com.mongodb.bulk.WriteConcernError
 
hashCode() - Method in class com.mongodb.client.gridfs.model.GridFSFile
 
hashCode() - Method in class com.mongodb.client.model.BsonField
 
hashCode() - Method in class com.mongodb.client.model.BucketAutoOptions
 
hashCode() - Method in class com.mongodb.client.model.BucketOptions
 
hashCode() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
 
hashCode() - Method in class com.mongodb.client.model.changestream.UpdateDescription
 
hashCode() - Method in class com.mongodb.client.model.Collation
 
hashCode() - Method in class com.mongodb.client.model.Facet
 
hashCode() - Method in class com.mongodb.client.model.Field
 
hashCode() - Method in class com.mongodb.client.model.geojson.Geometry
 
hashCode() - Method in class com.mongodb.client.model.geojson.GeometryCollection
 
hashCode() - Method in class com.mongodb.client.model.geojson.LineString
 
hashCode() - Method in class com.mongodb.client.model.geojson.MultiLineString
 
hashCode() - Method in class com.mongodb.client.model.geojson.MultiPoint
 
hashCode() - Method in class com.mongodb.client.model.geojson.MultiPolygon
 
hashCode() - Method in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
 
hashCode() - Method in class com.mongodb.client.model.geojson.Point
 
hashCode() - Method in class com.mongodb.client.model.geojson.Polygon
 
hashCode() - Method in class com.mongodb.client.model.geojson.PolygonCoordinates
 
hashCode() - Method in class com.mongodb.client.model.geojson.Position
 
hashCode() - Method in class com.mongodb.client.model.GraphLookupOptions
 
hashCode() - Method in class com.mongodb.client.model.MergeOptions
 
hashCode() - Method in class com.mongodb.client.model.PushOptions
 
hashCode() - Method in class com.mongodb.client.model.TextSearchOptions
 
hashCode() - Method in class com.mongodb.client.model.Variable
 
hashCode() - Method in class com.mongodb.ClientSessionOptions
 
hashCode() - Method in class com.mongodb.connection.ClusterDescription
 
hashCode() - Method in class com.mongodb.connection.ClusterId
 
hashCode() - Method in class com.mongodb.connection.ClusterSettings
 
hashCode() - Method in class com.mongodb.connection.ConnectionDescription
 
hashCode() - Method in class com.mongodb.connection.ConnectionId
 
hashCode() - Method in class com.mongodb.connection.ConnectionPoolSettings
 
hashCode() - Method in class com.mongodb.connection.ServerDescription
 
hashCode() - Method in class com.mongodb.connection.ServerId
 
hashCode() - Method in class com.mongodb.connection.ServerSettings
 
hashCode() - Method in class com.mongodb.connection.ServerVersion
 
hashCode() - Method in class com.mongodb.connection.SocketSettings
 
hashCode() - Method in class com.mongodb.connection.SslSettings
 
hashCode() - Method in class com.mongodb.ConnectionString
 
hashCode() - Method in class com.mongodb.DBObjectCodecProvider
 
hashCode() - Method in class com.mongodb.DBRef
 
hashCode() - Method in class com.mongodb.DBRefCodecProvider
 
hashCode() - Method in class com.mongodb.DocumentToDBRefTransformer
 
hashCode() - Method in exception com.mongodb.MongoBulkWriteException
 
hashCode() - Method in class com.mongodb.MongoCompressor
 
hashCode() - Method in class com.mongodb.MongoCredential
 
hashCode() - Method in class com.mongodb.MongoNamespace
 
hashCode() - Method in class com.mongodb.ReadConcern
 
hashCode() - Method in class com.mongodb.selector.CompositeServerSelector
 
hashCode() - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
Deprecated.
 
hashCode() - Method in class com.mongodb.ServerAddress
 
hashCode() - Method in class com.mongodb.ServerCursor
 
hashCode() - Method in class com.mongodb.Tag
 
hashCode() - Method in class com.mongodb.TaggableReadPreference
 
hashCode() - Method in class com.mongodb.TagSet
 
hashCode() - Method in class com.mongodb.TransactionOptions
 
hashCode() - Method in class com.mongodb.WriteConcern
 
hashCode() - Method in class com.mongodb.WriteError
 
hashed(String) - Static method in class com.mongodb.client.model.Indexes
Create an index key for a hashed index on the given field.
hasNext() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
Returns true if another batch of results exists.
hasReadableServer(ReadPreference) - Method in class com.mongodb.connection.ClusterDescription
Returns true if this cluster has at least one server that satisfies the given read preference.
hasSession() - Method in interface com.mongodb.session.SessionContext
Returns true if there is a true server session associated with this context.
hasTags(TagSet) - Method in class com.mongodb.connection.ServerDescription
Returns true if the server has the given tags.
hasWritableServer() - Method in class com.mongodb.connection.ClusterDescription
Returns true if this cluster has at least one server that can be used for write operations.
heartbeatFrequency(long, TimeUnit) - Method in class com.mongodb.connection.ServerSettings.Builder
Sets the frequency that the cluster monitor attempts to reach each server.
hint(BsonDocument) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Sets the hint for which index to use.
hint(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the hint for which index to use.
hint(BsonValue) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Sets the hint for which index to use.
hint(BsonValue) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Sets the hint to apply.
hint(Bson) - Method in class com.mongodb.client.model.CountOptions
Sets the hint to apply.
hint(Bson) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the hint for which index to use.
hintString(String) - Method in class com.mongodb.client.model.CountOptions
Deprecated.
hosts(List<ServerAddress>) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the hosts for the cluster.
hosts(Set<String>) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets all members of the replica set that are neither hidden, passive, nor arbiters.

I

IDENTICAL - com.mongodb.client.model.CollationStrength
When all other levels are equal, the identical level is used as a tiebreaker.
Immutable - Annotation Type in com.mongodb.annotations
The class to which this annotation is applied is immutable.
in(String, Iterable<TItem>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
in(String, TItem...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
inc(String, Number) - Static method in class com.mongodb.client.model.Updates
Creates an update that increments the value of the field with the given name by the given value.
include(String...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that includes all of the given fields.
include(List<String>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that includes all of the given fields.
includeArrayIndex(String) - Method in class com.mongodb.client.model.UnwindOptions
Sets the field to be used to store the array index of the unwound item
Indexes - Class in com.mongodb.client.model
A factory for defining index keys.
IndexModel - Class in com.mongodb.client.model
A model describing the creation of a single index.
IndexModel(Bson) - Constructor for class com.mongodb.client.model.IndexModel
Construct an instance with the given keys.
IndexModel(Bson, IndexOptions) - Constructor for class com.mongodb.client.model.IndexModel
Construct an instance with the given keys and options.
indexOptionDefaults(IndexOptionDefaults) - Method in class com.mongodb.client.model.CreateCollectionOptions
Sets the index option defaults for the collection.
indexOptionDefaults(BsonDocument) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the index option defaults document for the collection.
IndexOptionDefaults - Class in com.mongodb.client.model
The default options for a collection to apply on the creation of indexes.
IndexOptionDefaults() - Constructor for class com.mongodb.client.model.IndexOptionDefaults
 
IndexOptions - Class in com.mongodb.client.model
The options to apply to the creation of an index.
IndexOptions() - Constructor for class com.mongodb.client.model.IndexOptions
 
IndexRequest - Class in com.mongodb.bulk
Deprecated.
IndexRequest(BsonDocument) - Constructor for class com.mongodb.bulk.IndexRequest
Deprecated.
Construct a new instance with the given keys
info(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the INFO level.
info(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the INFO level with an accompanying message.
INITIAL_BUFFER_SIZE - Static variable in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
insert(MongoNamespace, boolean, InsertRequest) - Method in interface com.mongodb.connection.Connection
Deprecated.
Insert the documents using the insert wire protocol and apply the write concern.
INSERT - com.mongodb.bulk.WriteRequest.Type
Deprecated.
An insert.
INSERT - com.mongodb.client.model.changestream.OperationType
The insert operation type
INSERT - com.mongodb.client.model.MergeOptions.WhenNotMatched
Insert the document into the output collection.
INSERT - com.mongodb.connection.SplittablePayload.Type
Deprecated.
An insert.
insertAsync(MongoNamespace, boolean, InsertRequest, SingleResultCallback<WriteConcernResult>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Insert the documents using the insert wire protocol and apply the write concern asynchronously.
InsertManyOptions - Class in com.mongodb.client.model
The options to apply to an operation that inserts multiple documents into a collection.
InsertManyOptions() - Constructor for class com.mongodb.client.model.InsertManyOptions
 
InsertOneModel<T> - Class in com.mongodb.client.model
A model describing an insert of a single document.
InsertOneModel(T) - Constructor for class com.mongodb.client.model.InsertOneModel
Construct a new instance.
InsertOneOptions - Class in com.mongodb.client.model
The options to apply to an operation that inserts a single document into a collection.
InsertOneOptions() - Constructor for class com.mongodb.client.model.InsertOneOptions
 
InsertOperation - Class in com.mongodb.operation
Deprecated.
InsertOperation(MongoNamespace, boolean, WriteConcern, boolean, List<InsertRequest>) - Constructor for class com.mongodb.operation.InsertOperation
Deprecated.
Construct an instance.
InsertOperation(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Constructor for class com.mongodb.operation.InsertOperation
InsertRequest - Class in com.mongodb.bulk
Deprecated.
InsertRequest(BsonDocument) - Constructor for class com.mongodb.bulk.InsertRequest
Deprecated.
Construct an instance with the given document.
INVALIDATE - com.mongodb.client.model.changestream.OperationType
The invalidate operation type
invalidHostNameAllowed(boolean) - Method in class com.mongodb.connection.SslSettings.Builder
Define whether invalid host names should be allowed.
isAcknowledged() - Method in class com.mongodb.WriteConcern
Returns true if this write concern indicates that write operations must be acknowledged.
isAutoIndex() - Method in class com.mongodb.client.model.CreateCollectionOptions
Deprecated.
this option was deprecated in MongoDB 3.2 and removed in MongodB 4.0
isAutoIndex() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
The auto index value.
isBackground() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Create the index in the background
isBackground() - Method in class com.mongodb.client.model.IndexOptions
Create the index in the background
isBypassAutoEncryption() - Method in class com.mongodb.AutoEncryptionSettings
Gets whether auto-encryption should be bypassed.
isCapped() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets whether the collection is capped.
isCapped() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Gets whether the collection is capped.
isCausallyConsistent() - Method in class com.mongodb.ClientSessionOptions
Whether operations using the session should causally consistent with each other.
isCausallyConsistent() - Method in interface com.mongodb.session.ClientSession
Returns true if operations in this session must be causally consistent
isCausallyConsistent() - Method in interface com.mongodb.session.SessionContext
Gets whether this context is associated with a causally consistent session.
isClosed() - Method in interface com.mongodb.async.AsyncBatchCursor
Deprecated.
Return true if the AsyncBatchCursor has been closed
isClosed() - Method in interface com.mongodb.connection.Cluster
Deprecated.
Whether all the servers in the cluster are closed or not.
isClosed() - Method in interface com.mongodb.connection.Stream
Returns the closed state of the connection
isClosed() - Method in interface com.mongodb.session.ServerSession
Whether the server session is closed.
isCompatibleWithDriver() - Method in class com.mongodb.connection.ClusterDescription
Return whether all servers in the cluster are compatible with the driver.
isCompatibleWithDriver() - Method in class com.mongodb.connection.ServerDescription
Return whether the server is compatible with the driver.
isDebugEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the DEBUG level?
isDropTarget() - Method in class com.mongodb.client.model.RenameCollectionOptions
Gets if mongod should drop the target of renameCollection prior to renaming the collection.
isDropTarget() - Method in class com.mongodb.operation.RenameCollectionOperation
Deprecated.
Gets if mongod should drop the target of renameCollection prior to renaming the collection.
isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
Returns true if no key/value was inserted into the top level document.
isEmpty() - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
 
isEnabled() - Method in class com.mongodb.connection.SslSettings
Returns whether SSL is enabled.
isErrorEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the ERROR level?
isFirstBatchEmpty() - Method in interface com.mongodb.async.AsyncAggregateResponseBatchCursor
Deprecated.
Returns true if the first batch was empty.
isFirstBatchEmpty() - Method in interface com.mongodb.operation.AggregateResponseBatchCursor
Deprecated.
Returns true if the first batch was empty.
isImplicitSession() - Method in interface com.mongodb.session.SessionContext
Returns true if the session is implicit, and false if the application started the session explicity.
isIncompatiblyNewerThanDriver() - Method in class com.mongodb.connection.ServerDescription
Return whether the server is compatible with the driver.
isIncompatiblyOlderThanDriver() - Method in class com.mongodb.connection.ServerDescription
Return whether the server is compatible with the driver.
isInfoEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the INFO level?
isInvalidHostNameAllowed() - Method in class com.mongodb.connection.SslSettings
Returns whether invalid host names should be allowed.
isJsMode() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
isJsMode() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
isKeepAlive() - Method in class com.mongodb.connection.SocketSettings
Deprecated.
configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.
isModifiedCountAvailable() - Method in class com.mongodb.bulk.BulkWriteResult
Deprecated.
no longer needed since all supported server versions support modified count
isModifiedCountAvailable() - Method in class com.mongodb.client.result.UpdateResult
Deprecated.
no longer needed since all supported server versions support modified count
isMulti() - Method in class com.mongodb.bulk.DeleteRequest
Deprecated.
Gets whether all documents matching the query filter will be removed.
isMulti() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Gets whether this update will update all documents matching the filter.
isNameOnly() - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Gets whether only the collection names should be returned.
isNoCursorTimeout() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
isNoCursorTimeout() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns true if cursor timeout has been turned off.
isNonAtomic() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
True if the post-processing step will prevent MongoDB from locking the database.
isOk() - Method in class com.mongodb.connection.ServerDescription
The isOK() result from requesting this information from the server
isOplogReplay() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Users should not set this under normal circumstances.
isOplogReplay() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Internal replication use only.
isOrdered() - Method in class com.mongodb.client.model.BulkWriteOptions
If true, then when a write fails, return without performing the remaining writes.
isOrdered() - Method in class com.mongodb.client.model.InsertManyOptions
Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion.
isOrdered() - Method in class com.mongodb.operation.BaseWriteOperation
Deprecated.
Gets whether the writes are ordered.
isOrdered() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Gets whether the writes are ordered.
isPartial() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
isPartial() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns true if can get partial results from a mongos if some shards are down.
isPartialObject() - Method in class com.mongodb.BasicDBList
 
isPartialObject() - Method in class com.mongodb.BasicDBObject
Whether BasicDBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
isPartialObject() - Method in interface com.mongodb.DBObject
Whether DBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
isPreserveNullAndEmptyArrays() - Method in class com.mongodb.client.model.UnwindOptions
If true the unwind stage will include documents that have null values or empty arrays
isPrimary() - Method in class com.mongodb.connection.ServerDescription
Returns whether this can be treated as a primary server.
isReadOnly() - Method in class com.mongodb.operation.CreateUserOperation
Deprecated.
Returns true if the user is a readOnly user.
isReadOnly() - Method in class com.mongodb.operation.UpdateUserOperation
Deprecated.
Returns true if the user is a readOnly user.
isReplicaSetMember() - Method in class com.mongodb.connection.ServerDescription
Gets whether this server is a replica set member.
isRetryWrites() - Method in class com.mongodb.operation.BaseFindAndModifyOperation
Deprecated.
Returns true if the operation should be retried.
isReturnKey() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the returnKey.
isReturnKey() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the returnKey.
isReturnOriginal() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
When false, returns the replaced document rather than the original.
isReturnOriginal() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
When false, returns the updated document rather than the original.
isSecondary() - Method in class com.mongodb.connection.ServerDescription
Returns whether this can be treated as a secondary server.
isServerDefault() - Method in class com.mongodb.ReadConcern
 
isServerDefault() - Method in class com.mongodb.WriteConcern
Gets whether this write concern indicates that the server's default write concern will be used.
isSharded() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
True if the output database is sharded
isShardRouter() - Method in class com.mongodb.connection.ServerDescription
Gets whether this is a server that is the entry point to a sharded instance of MongoDB.
isShowRecordId() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Returns the showRecordId.
isShowRecordId() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns the showRecordId.
isSlaveOk() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Returns true if set to allowed to query non-primary replica set members.
isSlaveOk() - Method in class com.mongodb.ReadPreference
True if this read preference allows reading from a secondary member of a replica set.
isSlaveOk() - Method in class com.mongodb.TaggableReadPreference
 
isSnapshot() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 release
isSnapshot() - Method in class com.mongodb.operation.FindOperation
Deprecated.
Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 release
isSparse() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
If true, the index only references documents with the specified field
isSparse() - Method in class com.mongodb.client.model.IndexOptions
If true, the index only references documents with the specified field
isSrvProtocol() - Method in class com.mongodb.ConnectionString
Returns true if the connection string requires SRV protocol to resolve the host lists from the configured host.
isStandAlone() - Method in class com.mongodb.connection.ServerDescription
Gets whether this is part of a replica set/sharded system, or is a single server.
isTailable() - Method in enum com.mongodb.CursorType
True if the cursor type is tailable.
isTraceEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the TRACE level?
isTrue(String, boolean) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalStateException if the condition if false.
isTrue(String, boolean, SingleResultCallback<?>) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalStateException if the condition if false.
isTrueArgument(String, boolean) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalArgumentException if the condition if false.
isUnique() - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Gets if the index should be unique.
isUnique() - Method in class com.mongodb.client.model.IndexOptions
Gets if the index should be unique.
isUpdateOfExisting() - Method in class com.mongodb.WriteConcernResult
Returns true if the write was an update of an existing document.
isUpsert() - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Gets whether this update will insert a new document if no documents match the filter.
isUpsert() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.client.model.ReplaceOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.client.model.UpdateOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Returns true if a new document should be inserted if there are no matches to the query filter.
isUsePowerOf2Sizes() - Method in class com.mongodb.client.model.CreateCollectionOptions
Deprecated.
As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB server
isUsePowerOf2Sizes() - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB server
isVerbose() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Gets whether to include the timing information in the result information.
isVerbose() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Gets whether to include the timing information in the result information.
isWarnEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the WARN level?
iterator() - Method in class com.mongodb.TagSet
 

J

JAVA_SASL_CLIENT_PROPERTIES_KEY - Static variable in class com.mongodb.MongoCredential
Mechanism property key for overriding the SaslClient properties for GSSAPI authentication.
JAVA_SUBJECT_KEY - Static variable in class com.mongodb.MongoCredential
Mechanism property key for overriding the Subject under which GSSAPI authentication executes.
JMXConnectionPoolListener - Class in com.mongodb.management
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
JMXConnectionPoolListener() - Constructor for class com.mongodb.management.JMXConnectionPoolListener
 
JOURNAL_SAFE - Static variable in class com.mongodb.WriteConcern
Deprecated.
JOURNALED - Static variable in class com.mongodb.WriteConcern
Write operations wait for the server to group commit to the journal file on disk.
jsMode(boolean) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
jsMode(boolean) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
jsonSchema(Bson) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents that validate against the given JSON schema document.

K

KEEP_EXISTING - com.mongodb.client.model.MergeOptions.WhenMatched
Keep the existing document in the output collection.
keepAlive(boolean) - Method in class com.mongodb.connection.SocketSettings.Builder
Deprecated.
configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.
key(BsonDocument) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Sets the document containing the field or fields to group.
keyAltName(String) - Method in class com.mongodb.client.model.vault.EncryptOptions
Sets the alternate key name
keyAltNames(List<String>) - Method in class com.mongodb.client.model.vault.DataKeyOptions
Set the alternate key names.
keyFunction(BsonJavaScript) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Sets the function that creates a "key object" for use as the grouping key.
keyId(BsonBinary) - Method in class com.mongodb.client.model.vault.EncryptOptions
Sets the key identifier
keyVaultMongoClientSettings(MongoClientSettings) - Method in class com.mongodb.AutoEncryptionSettings.Builder
Sets the key vault settings.
keyVaultMongoClientSettings(MongoClientSettings) - Method in class com.mongodb.ClientEncryptionSettings.Builder
Sets the key vault settings.
keyVaultNamespace(String) - Method in class com.mongodb.AutoEncryptionSettings.Builder
Sets the key vault namespace
keyVaultNamespace(String) - Method in class com.mongodb.ClientEncryptionSettings.Builder
Sets the key vault namespace
killCursor(MongoNamespace, List<Long>) - Method in interface com.mongodb.connection.Connection
Deprecated.
Kills the given list of cursors.
killCursor(List<Long>) - Method in interface com.mongodb.connection.Connection
killCursorAsync(MongoNamespace, List<Long>, SingleResultCallback<Void>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Asynchronously Kills the given list of cursors.
killCursorAsync(List<Long>, SingleResultCallback<Void>) - Method in interface com.mongodb.connection.AsyncConnection
kmsProviders(Map<String, Map<String, Object>>) - Method in class com.mongodb.AutoEncryptionSettings.Builder
Sets the KMS providers map.
kmsProviders(Map<String, Map<String, Object>>) - Method in class com.mongodb.ClientEncryptionSettings.Builder
Sets the KMS providers map.

L

language(String) - Method in class com.mongodb.client.model.TextSearchOptions
Set the language for the text search
languageOverride(String) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the name of the field that contains the language string.
languageOverride(String) - Method in class com.mongodb.client.model.IndexOptions
Sets the name of the field that contains the language string.
last(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.
lastUpdateTimeNanos(long) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the last update time for this description, which is simply the time that the server description was created.
lastWriteDate(Date) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the lastWriteDate reported by this server
LatencyMinimizingServerSelector - Class in com.mongodb.selector
Deprecated.
LatencyMinimizingServerSelector(long, TimeUnit) - Constructor for class com.mongodb.selector.LatencyMinimizingServerSelector
Deprecated.
 
LEVEL - Static variable in class com.mongodb.MongoCompressor
The property key for defining the compression level.
limit(int) - Static method in class com.mongodb.client.model.Aggregates
Creates a $limit pipeline stage for the specified filter
limit(int) - Method in class com.mongodb.client.model.CountOptions
Sets the limit to apply.
limit(int) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the limit to apply.
limit(int) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the limit to apply.
limit(int) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the limit to apply.
limit(int) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the limit to apply.
limit(long) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Sets the limit to apply.
LINE_STRING - com.mongodb.client.model.geojson.GeoJsonObjectType
A LineString
LINEARIZABLE - com.mongodb.ReadConcernLevel
The linearizable read concern level.
LINEARIZABLE - Static variable in class com.mongodb.ReadConcern
The linearizable read concern.
LineString - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON LineString.
LineString(CoordinateReferenceSystem, List<Position>) - Constructor for class com.mongodb.client.model.geojson.LineString
Construct an instance with the given coordinates and coordinate reference system.
LineString(List<Position>) - Constructor for class com.mongodb.client.model.geojson.LineString
Construct an instance with the given coordinates.
LineStringCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON LineString.
LineStringCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.LineStringCodec
Construct a new instance
LINK - com.mongodb.client.model.geojson.CoordinateReferenceSystemType
A coordinate reference system that is specifed by a dereferenceable URI
ListCollectionsOperation<T> - Class in com.mongodb.operation
Deprecated.
ListCollectionsOperation(String, Decoder<T>) - Constructor for class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Construct a new instance.
ListDatabasesOperation<T> - Class in com.mongodb.operation
Deprecated.
ListDatabasesOperation(Decoder<T>) - Constructor for class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Construct a new instance.
ListIndexesOperation<T> - Class in com.mongodb.operation
Deprecated.
ListIndexesOperation(MongoNamespace, Decoder<T>) - Constructor for class com.mongodb.operation.ListIndexesOperation
Deprecated.
Construct a new instance.
LOCAL - com.mongodb.ReadConcernLevel
The local read concern level.
LOCAL - Static variable in class com.mongodb.ReadConcern
The local read concern.
locale(String) - Method in class com.mongodb.client.model.Collation.Builder
Sets the locale
localThreshold(long, TimeUnit) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the local threshold.
Logger - Interface in com.mongodb.diagnostics.logging
This class is not part of the public API.
Loggers - Class in com.mongodb.diagnostics.logging
This class is not part of the public API.
logicalSessionTimeoutMinutes(Integer) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the session timeout in minutes.
lookup(String, String, String, String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using equality match between the local field and the foreign field
lookup(String, List<? extends Bson>, String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using the given pipeline
lookup(String, List<Variable<TExpression>>, List<? extends Bson>, String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using the given pipeline
LOWER - com.mongodb.client.model.CollationCaseFirst
Lowercase first
lt(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the given field is less than the specified value.
lte(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.

M

maintenanceFrequency(long, TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The time period between runs of the maintenance job.
maintenanceInitialDelay(long, TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The period of time to wait before running the first maintenance job on the connection pool.
Majority() - Constructor for class com.mongodb.WriteConcern.Majority
Deprecated.
Create a new Majority WriteConcern.
Majority(int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern.Majority
Deprecated.
Create a new WriteConcern with the given configuration.
MAJORITY - com.mongodb.ReadConcernLevel
The majority read concern level.
MAJORITY - Static variable in class com.mongodb.ReadConcern
The majority read concern.
MAJORITY - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation.
majorityWriteConcern(int, boolean, boolean) - Static method in class com.mongodb.WriteConcern
MapReduceAction - Enum in com.mongodb.client.model
The map reduce to collection actions.
MapReduceAsyncBatchCursor<T> - Interface in com.mongodb.operation
Deprecated.
MapReduceBatchCursor<T> - Interface in com.mongodb.operation
Deprecated.
MapReduceStatistics - Class in com.mongodb.operation
Deprecated.
MapReduceStatistics(int, int, int, int) - Constructor for class com.mongodb.operation.MapReduceStatistics
Deprecated.
Construct a new instance.
MapReduceToCollectionOperation - Class in com.mongodb.operation
Deprecated.
MapReduceToCollectionOperation(MongoNamespace, BsonJavaScript, BsonJavaScript, String) - Constructor for class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Construct a MapReduceOperation with all the criteria it needs to execute
MapReduceToCollectionOperation(MongoNamespace, BsonJavaScript, BsonJavaScript, String, WriteConcern) - Constructor for class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Construct a MapReduceOperation with all the criteria it needs to execute
MapReduceWithInlineResultsOperation<T> - Class in com.mongodb.operation
Deprecated.
MapReduceWithInlineResultsOperation(MongoNamespace, BsonJavaScript, BsonJavaScript, Decoder<T>) - Constructor for class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Construct a MapReduceOperation with all the criteria it needs to execute.
markAsPartialObject() - Method in class com.mongodb.BasicDBList
 
markAsPartialObject() - Method in class com.mongodb.BasicDBObject
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
markAsPartialObject() - Method in interface com.mongodb.DBObject
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
masterKey(BsonDocument) - Method in class com.mongodb.client.model.vault.DataKeyOptions
Sets the master key document.
match(Bson) - Static method in class com.mongodb.client.model.Aggregates
Creates a $match pipeline stage for the specified filter
max(Double) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
max(Double) - Method in class com.mongodb.client.model.IndexOptions
Sets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
max(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the maximum of the values of the given expression when applied to all members of the group.
max(String, TItem) - Static method in class com.mongodb.client.model.Updates
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.
max(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the exclusive upper bound for a specific index.
max(Bson) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the exclusive upper bound for a specific index.
MAX_BUFFER_SIZE - Static variable in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
MAX_DRIVER_WIRE_VERSION - Static variable in class com.mongodb.connection.ServerDescription
The maximum supported driver wire version
MAX_IDLE_TIME_EXCEEDED - com.mongodb.event.ConnectionRemovedEvent.Reason
The connection became stale by being idle for too long
MAX_LIFE_TIME_EXCEEDED - com.mongodb.event.ConnectionRemovedEvent.Reason
The connection became stale by being open for too long
maxAwaitTime(long, TimeUnit) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the maximum await execution time on the server for this operation.
maxAwaitTime(long, TimeUnit) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Sets the maximum await execution time on the server for this operation.
maxAwaitTime(long, TimeUnit) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Sets the maximum await execution time on the server for this operation.
maxAwaitTime(long, TimeUnit) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the maximum await execution time on the server for this operation.
maxCommitTime(Long, TimeUnit) - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
Sets the maximum execution time on the server for the commitTransaction operation.
maxCommitTime(Long, TimeUnit) - Method in class com.mongodb.TransactionOptions.Builder
Sets the maximum execution time on the server for the commitTransaction operation.
maxConnectionIdleTime(long, TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The maximum idle time of a pooled connection.
maxConnectionLifeTime(long, TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The maximum time a pooled connection can live for.
maxDepth(Integer) - Method in class com.mongodb.client.model.GraphLookupOptions
Specifies a maximum recursive depth for the $graphLookup.
maxDocuments(long) - Method in class com.mongodb.client.model.CreateCollectionOptions
Sets the maximum number of documents allowed in a capped collection.
maxDocuments(long) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Set the maximum number of documents in the collection.
maxDocumentSize(int) - Method in class com.mongodb.connection.ServerDescription.Builder
The maximum permitted size of a BSON object in bytes for this mongod process.
maxScan(long) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Deprecated as of MongoDB 4.0 release
maxScan(long) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Deprecated as of MongoDB 4.0 release
maxSize(int) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The maximum number of connections allowed.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.CountOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.CreateIndexOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.DropIndexOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.EstimatedDocumentCountOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.CreateIndexesOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.DropIndexOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxTime(long, TimeUnit) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the maximum execution time on the server for this operation.
maxWaitQueueSize(int) - Method in class com.mongodb.connection.ClusterSettings.Builder
This is the maximum number of concurrent operations allowed to wait for a server to become available.
maxWaitQueueSize(int) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
This is the maximum number of waiters for a connection to become available from the pool.
maxWaitTime(long, TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The maximum time that a thread may wait for a connection to become available.
maxWireVersion(int) - Method in class com.mongodb.connection.ServerDescription.Builder
The latest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
MBeanServer - Interface in com.mongodb.management
Deprecated.
MBeanServerFactory - Class in com.mongodb.management
Deprecated.
merge(MongoNamespace) - Static method in class com.mongodb.client.model.Aggregates
Creates a $merge pipeline stage that merges into the specified namespace
merge(MongoNamespace, MergeOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $merge pipeline stage that merges into the specified namespace using the specified options.
merge(TransactionOptions, TransactionOptions) - Static method in class com.mongodb.TransactionOptions
Merge the two provided transaction options, with the first taking precedence over the second.
merge(String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $merge pipeline stage that merges into the specified collection
merge(String, MergeOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $merge pipeline stage that merges into the specified collection using the specified options.
MERGE - com.mongodb.client.model.MapReduceAction
Merge the new result with the existing result if the output collection already exists.
MERGE - com.mongodb.client.model.MergeOptions.WhenMatched
Merge the matching documents
MergeOptions - Class in com.mongodb.client.model
Options to control the behavior of the $merge aggregation stage
MergeOptions() - Constructor for class com.mongodb.client.model.MergeOptions
 
MergeOptions.WhenMatched - Enum in com.mongodb.client.model
The behavior of $merge if a result document and an existing document in the collection have the same value for the specified on field(s).
MergeOptions.WhenNotMatched - Enum in com.mongodb.client.model
The behavior of $merge if a result document does not match an existing document in the out collection.
messageReceived(ConnectionMessageReceivedEvent) - Method in interface com.mongodb.event.ConnectionListener
Deprecated.
Publish a connection message received event.
messagesSent(ConnectionMessagesSentEvent) - Method in interface com.mongodb.event.ConnectionListener
Deprecated.
Publish a connection messages sent event.
metadata(Document) - Method in class com.mongodb.client.gridfs.model.GridFSUploadOptions
Sets metadata to stored alongside the filename in the files collection
metaTextScore(String) - Static method in class com.mongodb.client.model.Projections
Creates a projection to the given field name of the textScore, for use with text queries.
metaTextScore(String) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for the text score meta projection on the given field.
min(Double) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
min(Double) - Method in class com.mongodb.client.model.IndexOptions
Sets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
min(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the minimum of the values of the given expression when applied to all members of the group.
min(String, TItem) - Static method in class com.mongodb.client.model.Updates
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.
min(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the minimum inclusive lower bound for a specific index.
min(Bson) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the minimum inclusive lower bound for a specific index.
MIN_DRIVER_SERVER_VERSION - Static variable in class com.mongodb.connection.ServerDescription
The minimum supported driver server version
MIN_DRIVER_WIRE_VERSION - Static variable in class com.mongodb.connection.ServerDescription
The minimum supported driver wire version
minHeartbeatFrequency(long, TimeUnit) - Method in class com.mongodb.connection.ServerSettings.Builder
Sets the minimum heartbeat frequency.
minSize(int) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
The minimum number of connections.
minWireVersion(int) - Method in class com.mongodb.connection.ServerDescription.Builder
The earliest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
MixedBulkWriteOperation - Class in com.mongodb.operation
Deprecated.
MixedBulkWriteOperation(MongoNamespace, List<? extends WriteRequest>, boolean, WriteConcern) - Constructor for class com.mongodb.operation.MixedBulkWriteOperation
MixedBulkWriteOperation(MongoNamespace, List<? extends WriteRequest>, boolean, WriteConcern, boolean) - Constructor for class com.mongodb.operation.MixedBulkWriteOperation
Deprecated.
Construct a new instance.
mod(String, long, long) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field divided by a divisor has the specified remainder (i.e.
mode(ClusterConnectionMode) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the mode for this cluster.
MODERATE - com.mongodb.client.model.ValidationLevel
Applies validation rules to inserts and to updates on existing valid documents.
modifiers(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
use the individual setters instead
modifiers(Bson) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
use the individual modifier methods instead.
MongoBulkWriteException - Exception in com.mongodb
An exception that represents all errors associated with a bulk write operation.
MongoBulkWriteException(BulkWriteResult, List<BulkWriteError>, WriteConcernError, ServerAddress) - Constructor for exception com.mongodb.MongoBulkWriteException
Constructs a new instance.
MongoChangeStreamException - Exception in com.mongodb
An exception indicating that a failure occurred when running a $changeStream.
MongoChangeStreamException(String) - Constructor for exception com.mongodb.MongoChangeStreamException
Constructs a new instance.
MongoClientException - Exception in com.mongodb
A base class for exceptions indicating a failure condition with the MongoClient.
MongoClientException(String) - Constructor for exception com.mongodb.MongoClientException
Constructs a new instance.
MongoClientException(String, Throwable) - Constructor for exception com.mongodb.MongoClientException
Constructs a new instance.
MongoClientSettings - Class in com.mongodb
Various settings to control the behavior of a MongoClient.
MongoClientSettings.Builder - Class in com.mongodb
A builder for MongoClientSettings so that MongoClientSettings can be immutable, and to support easier construction through chaining.
MongoCommandException - Exception in com.mongodb
An exception indicating that a command sent to a MongoDB server returned a failure.
MongoCommandException(BsonDocument, ServerAddress) - Constructor for exception com.mongodb.MongoCommandException
Construct a new instance with the CommandResult from a failed command
MongoCompressor - Class in com.mongodb
Metadata describing a compressor to use for sending and receiving messages to a MongoDB server.
MongoConfigurationException - Exception in com.mongodb
An exception indicating a configuration error in the client.
MongoConfigurationException(String) - Constructor for exception com.mongodb.MongoConfigurationException
Construct an instance with the given message.
MongoConfigurationException(String, Throwable) - Constructor for exception com.mongodb.MongoConfigurationException
Construct an instance with the given message and cause.
MongoCredential - Class in com.mongodb
Represents credentials to authenticate to a mongo server,as well as the source of the credentials and the authentication mechanism to use.
MongoCursorNotFoundException - Exception in com.mongodb
Subclass of MongoException representing a cursor-not-found exception.
MongoCursorNotFoundException(long, ServerAddress) - Constructor for exception com.mongodb.MongoCursorNotFoundException
Construct a new instance.
MONGODB_CR - com.mongodb.AuthenticationMechanism
Deprecated.
This mechanism was replaced by AuthenticationMechanism.SCRAM_SHA_1 in MongoDB 3.0, and is now deprecated
MONGODB_CR_MECHANISM - Static variable in class com.mongodb.MongoCredential
Deprecated.
This mechanism was replaced by MongoCredential.SCRAM_SHA_1_MECHANISM in MongoDB 3.0, and is now deprecated
MONGODB_X509 - com.mongodb.AuthenticationMechanism
The MongoDB X.509 mechanism.
MONGODB_X509_MECHANISM - Static variable in class com.mongodb.MongoCredential
The MongoDB X.509
MongoDriverInformation - Class in com.mongodb
The MongoDriverInformation class allows driver and library authors to add extra information about their library.
MongoDriverInformation.Builder - Class in com.mongodb
 
MongoException - Exception in com.mongodb
Top level Exception for all Exceptions, server-side or client-side, that come from the driver.
MongoException(int, String) - Constructor for exception com.mongodb.MongoException
 
MongoException(int, String, Throwable) - Constructor for exception com.mongodb.MongoException
 
MongoException(String) - Constructor for exception com.mongodb.MongoException
 
MongoException(String, Throwable) - Constructor for exception com.mongodb.MongoException
 
MongoExecutionTimeoutException - Exception in com.mongodb
Exception indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded.
MongoExecutionTimeoutException(int, String) - Constructor for exception com.mongodb.MongoExecutionTimeoutException
Construct a new instance.
MongoGridFSException - Exception in com.mongodb
An exception indicating that a failure occurred in GridFS.
MongoGridFSException(String) - Constructor for exception com.mongodb.MongoGridFSException
Constructs a new instance.
MongoGridFSException(String, Throwable) - Constructor for exception com.mongodb.MongoGridFSException
Constructs a new instance.
MongoIncompatibleDriverException - Exception in com.mongodb
An exception indicating that this version of the driver is not compatible with at least one of the servers that it is currently connected to.
MongoIncompatibleDriverException(String, ClusterDescription) - Constructor for exception com.mongodb.MongoIncompatibleDriverException
Construct a new instance.
MongoInternalException - Exception in com.mongodb
A Mongo exception internal to the driver, not carrying any error code.
MongoInternalException(String) - Constructor for exception com.mongodb.MongoInternalException
 
MongoInternalException(String, Throwable) - Constructor for exception com.mongodb.MongoInternalException
 
MongoInterruptedException - Exception in com.mongodb
A non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt.
MongoInterruptedException(String, Exception) - Constructor for exception com.mongodb.MongoInterruptedException
Construct a new instance.
MongoNamespace - Class in com.mongodb
A MongoDB namespace, which includes a database name and collection name.
MongoNamespace(String) - Constructor for class com.mongodb.MongoNamespace
Construct an instance for the given full name.
MongoNamespace(String, String) - Constructor for class com.mongodb.MongoNamespace
Construct an instance from the given database name and collection name.
MongoNodeIsRecoveringException - Exception in com.mongodb
An exception indicating that the server is a member of a replica set but is in recovery mode, and therefore refused to execute the operation.
MongoNodeIsRecoveringException(ServerAddress) - Constructor for exception com.mongodb.MongoNodeIsRecoveringException
MongoNodeIsRecoveringException(BsonDocument, ServerAddress) - Constructor for exception com.mongodb.MongoNodeIsRecoveringException
Construct an instance.
MongoNotPrimaryException - Exception in com.mongodb
An exception indicating that the server is a member of a replica set but is not the primary, and therefore refused to execute either a write operation or a read operation that required a primary.
MongoNotPrimaryException(ServerAddress) - Constructor for exception com.mongodb.MongoNotPrimaryException
MongoNotPrimaryException(BsonDocument, ServerAddress) - Constructor for exception com.mongodb.MongoNotPrimaryException
Construct an instance.
MongoQueryException - Exception in com.mongodb
An exception indicating that a query operation failed on the server.
MongoQueryException(MongoCommandException) - Constructor for exception com.mongodb.MongoQueryException
Construct an instance from a command exception.
MongoQueryException(ServerAddress, int, String) - Constructor for exception com.mongodb.MongoQueryException
Construct an instance.
MongoSecurityException - Exception in com.mongodb
This exception is thrown when there is an error reported by the underlying client authentication mechanism.
MongoSecurityException(MongoCredential, String) - Constructor for exception com.mongodb.MongoSecurityException
Construct an instance
MongoSecurityException(MongoCredential, String, Throwable) - Constructor for exception com.mongodb.MongoSecurityException
Construct an instance
MongoServerException - Exception in com.mongodb
An exception indicating that some error has been raised by a MongoDB server in response to an operation.
MongoServerException(int, String, ServerAddress) - Constructor for exception com.mongodb.MongoServerException
Construct a new instance.
MongoServerException(String, ServerAddress) - Constructor for exception com.mongodb.MongoServerException
Construct a new instance.
MongoSocketClosedException - Exception in com.mongodb
This exception is thrown when trying to read or write from a closed socket.
MongoSocketClosedException(String, ServerAddress) - Constructor for exception com.mongodb.MongoSocketClosedException
Construct an instance.
MongoSocketException - Exception in com.mongodb
Subclass of MongoException representing a network-related exception
MongoSocketException(String, ServerAddress) - Constructor for exception com.mongodb.MongoSocketException
Construct a new instance.
MongoSocketOpenException - Exception in com.mongodb
This exception is thrown when there is an exception opening a Socket.
MongoSocketOpenException(String, ServerAddress) - Constructor for exception com.mongodb.MongoSocketOpenException
Construct an instance.
MongoSocketOpenException(String, ServerAddress, Throwable) - Constructor for exception com.mongodb.MongoSocketOpenException
Construct an instance.
MongoSocketReadException - Exception in com.mongodb
This exception is thrown when there is an exception reading a response from a Socket.
MongoSocketReadException(String, ServerAddress) - Constructor for exception com.mongodb.MongoSocketReadException
Construct a new instance.
MongoSocketReadException(String, ServerAddress, Throwable) - Constructor for exception com.mongodb.MongoSocketReadException
Construct a new instance.
MongoSocketReadTimeoutException - Exception in com.mongodb
This exception is thrown when there is a timeout reading a response from the socket.
MongoSocketReadTimeoutException(String, ServerAddress, Throwable) - Constructor for exception com.mongodb.MongoSocketReadTimeoutException
Construct a new instance
MongoSocketWriteException - Exception in com.mongodb
This exception is thrown when there is an exception writing a response to a Socket.
MongoSocketWriteException(String, ServerAddress, Throwable) - Constructor for exception com.mongodb.MongoSocketWriteException
Construct a new instance.
MongoTimeoutException - Exception in com.mongodb
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
MongoTimeoutException(String) - Constructor for exception com.mongodb.MongoTimeoutException
Construct a new instance.
MongoWaitQueueFullException - Exception in com.mongodb
An exception indicating that the queue for waiting for a pooled connection is full.
MongoWaitQueueFullException(String) - Constructor for exception com.mongodb.MongoWaitQueueFullException
Constructs a new instance with the given message.
MongoWriteConcernException - Exception in com.mongodb
An exception indicating a failure to apply the write concern to the requested write operation
MongoWriteConcernException(WriteConcernError, ServerAddress) - Constructor for exception com.mongodb.MongoWriteConcernException
Construct an instance.
MongoWriteConcernException(WriteConcernError, WriteConcernResult, ServerAddress) - Constructor for exception com.mongodb.MongoWriteConcernException
Construct an instance.
MongoWriteException - Exception in com.mongodb
An exception indicating the failure of a write operation.
MongoWriteException(WriteError, ServerAddress) - Constructor for exception com.mongodb.MongoWriteException
Construct an instance
mul(String, Number) - Static method in class com.mongodb.client.model.Updates
Creates an update that multiplies the value of the field with the given name by the given number.
multi(boolean) - Method in class com.mongodb.bulk.DeleteRequest
Deprecated.
Sets whether all documents matching the query filter will be removed.
multi(boolean) - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Sets whether this will update all documents matching the query filter.
MULTI_LINE_STRING - com.mongodb.client.model.geojson.GeoJsonObjectType
A MultiLineString
MULTI_POINT - com.mongodb.client.model.geojson.GeoJsonObjectType
A MultiPoint
MULTI_POLYGON - com.mongodb.client.model.geojson.GeoJsonObjectType
A MultiPolygon
MultiLineString - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON MultiLineString.
MultiLineString(CoordinateReferenceSystem, List<List<Position>>) - Constructor for class com.mongodb.client.model.geojson.MultiLineString
Construct an instance with the given coordinates and coordinate reference system.
MultiLineString(List<List<Position>>) - Constructor for class com.mongodb.client.model.geojson.MultiLineString
Construct an instance with the given coordinates.
MultiLineStringCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON MultiLineString.
MultiLineStringCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.MultiLineStringCodec
Constructs an instance.
MULTIPLE - com.mongodb.connection.ClusterConnectionMode
Connect to multiple servers in a cluster (either a replica set or multiple mongos servers)
MultiPoint - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON MultiPoint.
MultiPoint(CoordinateReferenceSystem, List<Position>) - Constructor for class com.mongodb.client.model.geojson.MultiPoint
Construct an instance with the given coordinates and coordinate reference system.
MultiPoint(List<Position>) - Constructor for class com.mongodb.client.model.geojson.MultiPoint
Construct an instance with the given coordinates.
MultiPointCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON MultiPoint.
MultiPointCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.MultiPointCodec
Constructs an instance.
MultiPolygon - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON MultiPolygon.
MultiPolygon(CoordinateReferenceSystem, List<PolygonCoordinates>) - Constructor for class com.mongodb.client.model.geojson.MultiPolygon
Construct an instance.
MultiPolygon(List<PolygonCoordinates>) - Constructor for class com.mongodb.client.model.geojson.MultiPolygon
Construct an instance.
MultiPolygonCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON MultiPolygon.
MultiPolygonCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.MultiPolygonCodec
Constructs an instance.

N

name(String) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the name of the index.
name(String) - Method in class com.mongodb.client.model.IndexOptions
Sets the name of the index.
NAME - com.mongodb.client.model.geojson.CoordinateReferenceSystemType
A coordinate reference system that is specifed by name
NamedCoordinateReferenceSystem - Class in com.mongodb.client.model.geojson
A GeoJSON named Coordinate Reference System.
NamedCoordinateReferenceSystem(String) - Constructor for class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
Construct an instance
NamedCoordinateReferenceSystemCodec - Class in com.mongodb.client.model.geojson.codecs
Codec for a GeoJson Coordinate Reference System of type name.
NamedCoordinateReferenceSystemCodec() - Constructor for class com.mongodb.client.model.geojson.codecs.NamedCoordinateReferenceSystemCodec
 
nameOnly(boolean) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Sets the query filter to apply to the query.
nameOnly(Boolean) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Sets the nameOnly flag that indicates whether the command should return just the database names or return the database names and size information.
ne(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field name does not equal the specified value.
near(String, double, double, Double, Double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.
near(String, Point, Double, Double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
near(String, Bson, Double, Double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
nearest() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a primary or a secondary.
nearest(long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a primary or a secondary that is less stale than the given maximum.
nearest(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
nearest(TagSet, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary or a secondary with the given set of tags that is less stale than the given maximum.
nearest(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags.
nearest(List<TagSet>, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags that is less stale than the given maximum.
nearSphere(String, double, double, Double, Double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point using spherical geometry.
nearSphere(String, Point, Double, Double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.
nearSphere(String, Bson, Double, Double) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.
NettyStreamFactory - Class in com.mongodb.connection.netty
A StreamFactory for Streams based on Netty 4.x.
NettyStreamFactory(SocketSettings, SslSettings) - Constructor for class com.mongodb.connection.netty.NettyStreamFactory
Construct a new instance of the factory with a default allocator, nio event loop group and nio socket channel.
NettyStreamFactory(SocketSettings, SslSettings, EventLoopGroup) - Constructor for class com.mongodb.connection.netty.NettyStreamFactory
Construct a new instance of the factory.
NettyStreamFactory(SocketSettings, SslSettings, EventLoopGroup, ByteBufAllocator) - Constructor for class com.mongodb.connection.netty.NettyStreamFactory
Construct a new instance of the factory.
NettyStreamFactory(SocketSettings, SslSettings, EventLoopGroup, Class<? extends SocketChannel>, ByteBufAllocator) - Constructor for class com.mongodb.connection.netty.NettyStreamFactory
Construct a new instance of the factory.
NettyStreamFactoryFactory - Class in com.mongodb.connection.netty
A StreamFactoryFactory implementation for Netty-based streams.
NettyStreamFactoryFactory() - Constructor for class com.mongodb.connection.netty.NettyStreamFactoryFactory
Deprecated.
Use NettyStreamFactoryFactory.builder() instead to construct the NettyStreamFactoryFactory.
NettyStreamFactoryFactory(EventLoopGroup, ByteBufAllocator) - Constructor for class com.mongodb.connection.netty.NettyStreamFactoryFactory
Deprecated.
Use NettyStreamFactoryFactory.builder() instead to construct the NettyStreamFactoryFactory.
NettyStreamFactoryFactory.Builder - Class in com.mongodb.connection.netty
A builder for an instance of NettyStreamFactoryFactory.
next() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
Returns the next batch of results.
next(SingleResultCallback<List<T>>) - Method in interface com.mongodb.async.AsyncBatchCursor
Deprecated.
Returns the next batch of results.
nin(String, Iterable<TItem>) - Static method in class com.mongodb.client.model.Filters
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.
nin(String, TItem...) - Static method in class com.mongodb.client.model.Filters
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.
noCursorTimeout(boolean) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
noCursorTimeout(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets if the cursor timeout should be turned off.
NON_IGNORABLE - com.mongodb.client.model.CollationAlternate
Non-ignorable
nonAtomic(boolean) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets if the post-processing step will prevent MongoDB from locking the database.
NonNull - Annotation Type in com.mongodb.lang
A common annotation to declare that annotated elements cannot be null.
NonNullApi - Annotation Type in com.mongodb.lang
A common annotation to declare that parameters and return values are to be considered as non-nullable by default for a given package.
NonTailable - com.mongodb.CursorType
A non-tailable cursor.
nor(Iterable<Bson>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that performs a logical NOR operation on all the specified filters.
nor(Bson...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that performs a logical NOR operation on all the specified filters.
NORMAL - Static variable in class com.mongodb.WriteConcern
Deprecated.
normalization(Boolean) - Method in class com.mongodb.client.model.Collation.Builder
Sets the normalization value
not(Bson) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents that do not match the passed in filter.
notifyMessageSent() - Method in interface com.mongodb.session.SessionContext
Notify the session context that a message has been sent.
notNull(String, T) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalArgumentException if the value is null.
notNull(String, T, SingleResultCallback<?>) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalArgumentException if the value is null.
NotThreadSafe - Annotation Type in com.mongodb.annotations
The class to which this annotation is applied is not thread-safe.
Nullable - Annotation Type in com.mongodb.lang
A common annotation to declare that annotated elements can be null under some circumstance.
NullMBeanServer - Class in com.mongodb.management
Deprecated.
NullMBeanServer() - Constructor for class com.mongodb.management.NullMBeanServer
Deprecated.
 
numericOrdering(Boolean) - Method in class com.mongodb.client.model.Collation.Builder
Sets the numeric ordering

O

OFF - com.mongodb.client.model.CollationCaseFirst
Off
OFF - com.mongodb.client.model.ValidationLevel
No validation for inserts or updates.
ok(boolean) - Method in class com.mongodb.connection.ServerDescription.Builder
The isOK() result from requesting this information from MongoDB
onResult(T, Throwable) - Method in interface com.mongodb.async.SingleResultCallback
Deprecated.
Called when the operation completes.
open() - Method in interface com.mongodb.connection.Stream
Open the stream.
openAsync(AsyncCompletionHandler<Void>) - Method in interface com.mongodb.connection.Stream
Open the stream asynchronously.
OperationExecutor - Interface in com.mongodb.operation
Deprecated.
there is no replacement for this interface
OperationType - Enum in com.mongodb.client.model.changestream
The $changeStream operation type.
oplogReplay(boolean) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Users should not set this under normal circumstances.
oplogReplay(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Internal replication use only.
or(Iterable<Bson>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that preforms a logical OR of the provided list of filters.
or(Bson...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that preforms a logical OR of the provided list of filters.
orderBy(List<? extends Bson>) - Static method in class com.mongodb.client.model.Sorts
Combine multiple sort specifications.
orderBy(Bson...) - Static method in class com.mongodb.client.model.Sorts
Combine multiple sort specifications.
OrderBy - Enum in com.mongodb.operation
Deprecated.
ordered(boolean) - Method in class com.mongodb.client.model.BulkWriteOptions
If true, then when a write fails, return without performing the remaining writes.
ordered(boolean) - Method in class com.mongodb.client.model.InsertManyOptions
Sets whether the server should insert the documents in the order provided.
OTHER - com.mongodb.client.model.changestream.OperationType
The other operation type.
out(String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $out pipeline stage that writes into the specified collection
output(BsonField...) - Method in class com.mongodb.client.model.BucketAutoOptions
The definition of the output document in each bucket
output(BsonField...) - Method in class com.mongodb.client.model.BucketOptions
The definition of the output document in each bucket
output(List<BsonField>) - Method in class com.mongodb.client.model.BucketAutoOptions
The definition of the output document in each bucket
output(List<BsonField>) - Method in class com.mongodb.client.model.BucketOptions
The definition of the output document in each bucket

P

ParallelCollectionScanOperation<T> - Class in com.mongodb.operation
Deprecated.
ParallelCollectionScanOperation(MongoNamespace, int, Decoder<T>) - Constructor for class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
Construct a new instance.
ParallelCollectionScanOptions - Class in com.mongodb.client.model
Deprecated.
this is an unused class and there should be no reason to use it
ParallelCollectionScanOptions() - Constructor for class com.mongodb.client.model.ParallelCollectionScanOptions
Deprecated.
 
parse(String) - Static method in class com.mongodb.BasicDBObject
Parses a string in MongoDB Extended JSON format to a BasicDBObject.
parse(String, Decoder<BasicDBObject>) - Static method in class com.mongodb.BasicDBObject
Parses a string in MongoDB Extended JSON format to a BasicDBObject.
partial(boolean) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
partial(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets if partial results from a mongos if some shards are down are allowed
partialFilterExpression(BsonDocument) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the filter expression for the documents to be included in the index
partialFilterExpression(Bson) - Method in class com.mongodb.client.model.IndexOptions
Sets the filter expression for the documents to be included in the index
passives(Set<String>) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the passive members of the replica set.
pipe(OutputStream) - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
PIPELINE - com.mongodb.client.model.MergeOptions.WhenMatched
An aggregation pipeline to update the document in the collection.
PLAIN - com.mongodb.AuthenticationMechanism
The PLAIN mechanism.
PLAIN_MECHANISM - Static variable in class com.mongodb.MongoCredential
The PLAIN mechanism.
Point - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON Point.
Point(CoordinateReferenceSystem, Position) - Constructor for class com.mongodb.client.model.geojson.Point
Construct an instance with the given coordinate and coordinate reference system.
Point(Position) - Constructor for class com.mongodb.client.model.geojson.Point
Construct an instance with the given coordinate.
POINT - com.mongodb.client.model.geojson.GeoJsonObjectType
A Point
PointCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON point.
PointCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.PointCodec
Constructs an instance.
Polygon - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON Polygon.
Polygon(CoordinateReferenceSystem, PolygonCoordinates) - Constructor for class com.mongodb.client.model.geojson.Polygon
Construct an instance with the given coordinates and coordinate reference system.
Polygon(PolygonCoordinates) - Constructor for class com.mongodb.client.model.geojson.Polygon
Construct an instance with the given coordinates.
Polygon(List<Position>, List<Position>...) - Constructor for class com.mongodb.client.model.geojson.Polygon
Construct an instance with the given coordinates.
POLYGON - com.mongodb.client.model.geojson.GeoJsonObjectType
A Polygon
PolygonCodec - Class in com.mongodb.client.model.geojson.codecs
A Codec for a GeoJSON polygon.
PolygonCodec(CodecRegistry) - Constructor for class com.mongodb.client.model.geojson.codecs.PolygonCodec
Constructs an instance.
PolygonCoordinates - Class in com.mongodb.client.model.geojson
Coordinates for a GeoJSON Polygon.
PolygonCoordinates(List<Position>, List<Position>...) - Constructor for class com.mongodb.client.model.geojson.PolygonCoordinates
Construct an instance.
POOL_CLOSED - com.mongodb.event.ConnectionRemovedEvent.Reason
The pool was closed, making the connection no longer valid
pop() - Method in class com.mongodb.BasicDBObjectBuilder
Pops the active object, which means that the parent object becomes active
popFirst(String) - Static method in class com.mongodb.client.model.Updates
Creates an update that pops the first element of an array that is the value of the field with the given name.
popLast(String) - Static method in class com.mongodb.client.model.Updates
Creates an update that pops the last element of an array that is the value of the field with the given name.
position(Integer) - Method in class com.mongodb.client.model.PushOptions
Sets the position at which to add the pushed values in the array.
Position - Class in com.mongodb.client.model.geojson
A representation of a GeoJSON Position.
Position(double, double, double...) - Constructor for class com.mongodb.client.model.geojson.Position
Construct an instance.
Position(List<Double>) - Constructor for class com.mongodb.client.model.geojson.Position
Construct an instance.
POWERSOF2 - com.mongodb.client.model.BucketGranularity
 
PREFIX - Static variable in class com.mongodb.diagnostics.logging.Loggers
The prefix for all logger names.
preserveNullAndEmptyArrays(Boolean) - Method in class com.mongodb.client.model.UnwindOptions
Sets true if the unwind stage should include documents that have null values or empty arrays
primary() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces read to the primary.
primary(String) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the address of the current primary in the replica set
PRIMARY - com.mongodb.client.model.CollationStrength
Strongest level, denote difference between base characters
primaryPreferred() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
primaryPreferred(long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
primaryPreferred(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
primaryPreferred(TagSet, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags that is less stale than the given maximum.
primaryPreferred(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags.
primaryPreferred(List<TagSet>, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags that is less stale than the given maximum.
PrimaryServerSelector - Class in com.mongodb.selector
Deprecated.
Use either ReadPreferenceServerSelector or WritableServerSelector, depending on your requirements
PrimaryServerSelector() - Constructor for class com.mongodb.selector.PrimaryServerSelector
Deprecated.
 
project(Bson) - Static method in class com.mongodb.client.model.Aggregates
Creates a $project pipeline stage for the specified projection
projection(BsonDocument) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Sets a document describing the fields to return for all matching documents.
projection(BsonDocument) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Sets a document describing the fields to return for all matching documents.
projection(BsonDocument) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets a document describing the fields to return for all matching documents.
projection(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets a document describing the fields to return for all matching documents.
projection(Bson) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Sets a document describing the fields to return for all matching documents.
projection(Bson) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets a document describing the fields to return for all matching documents.
projection(Bson) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets a document describing the fields to return for all matching documents.
projection(Bson) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets a document describing the fields to return for all matching documents.
Projections - Class in com.mongodb.client.model
A factory for projections.
pull(String, TItem) - Static method in class com.mongodb.client.model.Updates
Creates an update that removes all instances of the given value from the array value of the field with the given name.
pullAll(String, List<TItem>) - Static method in class com.mongodb.client.model.Updates
Creates an update that removes all instances of the given values from the array value of the field with the given name.
pullByFilter(Bson) - Static method in class com.mongodb.client.model.Updates
Creates an update that removes from an array all elements that match the given filter.
PUNCT - com.mongodb.client.model.CollationMaxVariable
Punct
push(String) - Method in class com.mongodb.BasicDBObjectBuilder
Creates an new empty object and inserts it into the current object with the given key.
push(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing an array of all values that results from applying an expression to each document in a group of documents that share the same group by key.
push(String, TItem) - Static method in class com.mongodb.client.model.Updates
Creates an update that adds the given value to the array value of the field with the given name.
pushEach(String, List<TItem>) - Static method in class com.mongodb.client.model.Updates
Creates an update that adds each of the given values to the array value of the field with the given name.
pushEach(String, List<TItem>, PushOptions) - Static method in class com.mongodb.client.model.Updates
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.
PushOptions - Class in com.mongodb.client.model
The options to apply to a $push update operator.
PushOptions() - Constructor for class com.mongodb.client.model.PushOptions
 

Q

QUATERNARY - com.mongodb.client.model.CollationStrength
When punctuation is ignored at level 1-3, an additional level can be used to distinguish words with and without punctuation.
query(MongoNamespace, BsonDocument, BsonDocument, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>) - Method in interface com.mongodb.connection.Connection
query(MongoNamespace, BsonDocument, BsonDocument, int, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>) - Method in interface com.mongodb.connection.Connection
Deprecated.
Execute the query.
QUERY_PLANNER - com.mongodb.ExplainVerbosity
Runs the query planner and chooses the winning plan, but does not actually execute it.
queryAsync(MongoNamespace, BsonDocument, BsonDocument, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>, SingleResultCallback<QueryResult<T>>) - Method in interface com.mongodb.connection.AsyncConnection
queryAsync(MongoNamespace, BsonDocument, BsonDocument, int, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>, SingleResultCallback<QueryResult<T>>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Execute the query asynchronously.
QueryResult<T> - Class in com.mongodb.connection
Deprecated.
QueryResult(MongoNamespace, List<T>, long, ServerAddress) - Constructor for class com.mongodb.connection.QueryResult
Deprecated.
Construct an instance.

R

R10 - com.mongodb.client.model.BucketGranularity
 
R20 - com.mongodb.client.model.BucketGranularity
 
R40 - com.mongodb.client.model.BucketGranularity
 
R5 - com.mongodb.client.model.BucketGranularity
 
R80 - com.mongodb.client.model.BucketGranularity
 
read(int) - Method in interface com.mongodb.connection.Stream
Read from the stream, blocking until the requested number of bytes have been read.
readAsync(int, AsyncCompletionHandler<ByteBuf>) - Method in interface com.mongodb.connection.Stream
Read from the stream, asynchronously.
ReadBinding - Interface in com.mongodb.binding
Deprecated.
readConcern(ReadConcern) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the read concern.
readConcern(ReadConcern) - Method in class com.mongodb.TransactionOptions.Builder
Sets the read concern.
ReadConcern - Class in com.mongodb
A read concern allows clients to choose a level of isolation for their reads.
ReadConcern(ReadConcernLevel) - Constructor for class com.mongodb.ReadConcern
Construct a new read concern
ReadConcernLevel - Enum in com.mongodb
A read concern level allows clients to choose a level of isolation for their reads.
ReadOperation<T> - Interface in com.mongodb.operation
Deprecated.
readPreference(ReadPreference) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the read preference.
readPreference(ReadPreference) - Method in class com.mongodb.TransactionOptions.Builder
Sets the read preference.
ReadPreference - Class in com.mongodb
A class that represents preferred replica set members to which a query or command can be sent.
ReadPreferenceServerSelector - Class in com.mongodb.selector
Deprecated.
ReadPreferenceServerSelector(ReadPreference) - Constructor for class com.mongodb.selector.ReadPreferenceServerSelector
Deprecated.
Gets the read preference.
readTimeout(int, TimeUnit) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the socket read timeout.
ReadWriteBinding - Interface in com.mongodb.binding
Deprecated.
receiveBufferSize(int) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the receive buffer size.
recoveryToken(BsonDocument) - Method in class com.mongodb.operation.AbortTransactionOperation
Deprecated.
Set the recovery token.
recoveryToken(BsonDocument) - Method in class com.mongodb.operation.CommitTransactionOperation
Deprecated.
Set the recovery token.
REDUCE - com.mongodb.client.model.MapReduceAction
Merge the new result with the existing result if the output collection already exists.
ReferenceCounted - Interface in com.mongodb.binding
Deprecated.
regex(String, String) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.
regex(String, String, String) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.
regex(String, Pattern) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field matches the given regular expression pattern with the given options applied.
registerMBean(Object, String) - Method in interface com.mongodb.management.MBeanServer
Deprecated.
Register the given mBean with the given name.
registerMBean(Object, String) - Method in class com.mongodb.management.NullMBeanServer
Deprecated.
 
release() - Method in class com.mongodb.binding.AsyncSingleConnectionReadBinding
Deprecated.
 
release() - Method in interface com.mongodb.binding.ReferenceCounted
Deprecated.
Release a reference to this object.
release() - Method in class com.mongodb.binding.SingleConnectionReadBinding
Deprecated.
 
remove(ConnectionPoolListener) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
Removes the given connection pool listener from the list of listeners to invoke on connection pool events.
removeLabel(String) - Method in exception com.mongodb.MongoException
Removes the given error label from the exception.
rename(String, String) - Static method in class com.mongodb.client.model.Updates
Creates an update that renames a field.
RENAME - com.mongodb.client.model.changestream.OperationType
The rename operation type for renaming collections
RenameCollectionOperation - Class in com.mongodb.operation
Deprecated.
RenameCollectionOperation(MongoNamespace, MongoNamespace) - Constructor for class com.mongodb.operation.RenameCollectionOperation
RenameCollectionOperation(MongoNamespace, MongoNamespace, WriteConcern) - Constructor for class com.mongodb.operation.RenameCollectionOperation
Deprecated.
 
RenameCollectionOptions - Class in com.mongodb.client.model
The options to apply when renaming a collection.
RenameCollectionOptions() - Constructor for class com.mongodb.client.model.RenameCollectionOptions
 
REPLACE - com.mongodb.bulk.WriteRequest.Type
Deprecated.
An update that replaces the existing document.
REPLACE - com.mongodb.client.model.changestream.OperationType
The replace operation type
REPLACE - com.mongodb.client.model.MapReduceAction
Replace the contents of the collectionName if the collection with the collectionName exists.
REPLACE - com.mongodb.client.model.MergeOptions.WhenMatched
Replace the existing document in the output collection with the matching results document.
REPLACE - com.mongodb.connection.SplittablePayload.Type
Deprecated.
An update that replaces the existing document.
ReplaceOneModel<T> - Class in com.mongodb.client.model
A model describing the replacement of at most one document that matches the query filter.
ReplaceOneModel(Bson, T) - Constructor for class com.mongodb.client.model.ReplaceOneModel
Construct a new instance.
ReplaceOneModel(Bson, T, ReplaceOptions) - Constructor for class com.mongodb.client.model.ReplaceOneModel
Construct a new instance.
ReplaceOneModel(Bson, T, UpdateOptions) - Constructor for class com.mongodb.client.model.ReplaceOneModel
ReplaceOptions - Class in com.mongodb.client.model
The options to apply when replacing documents.
ReplaceOptions() - Constructor for class com.mongodb.client.model.ReplaceOptions
 
replaceRoot(TExpression) - Static method in class com.mongodb.client.model.Aggregates
Creates a $replaceRoot pipeline stage
replaceWith(TExpression) - Static method in class com.mongodb.client.model.Aggregates
Creates a $replaceRoot pipeline stage
REPLICA_ACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
Deprecated.
Prefer WriteConcern#W2
REPLICA_SET - com.mongodb.connection.ClusterType
A replicas set cluster.
REPLICA_SET_ARBITER - com.mongodb.connection.ServerType
A replica set arbiter.
REPLICA_SET_GHOST - com.mongodb.connection.ServerType
A replica set member that does not report a set name or a hosts list
REPLICA_SET_OTHER - com.mongodb.connection.ServerType
A replica set member that is none of the other types (a passive, for example).
REPLICA_SET_PRIMARY - com.mongodb.connection.ServerType
A replica set primary.
REPLICA_SET_SECONDARY - com.mongodb.connection.ServerType
A replica set secondary.
REPLICAS_SAFE - Static variable in class com.mongodb.WriteConcern
Deprecated.
requiredClusterType(ClusterType) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the required cluster type for the cluster.
requiredReplicaSetName(String) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the required replica set name for the cluster.
restrictSearchWithMatch(Bson) - Method in class com.mongodb.client.model.GraphLookupOptions
A document specifying additional conditions for the recursive search
resumeAfter(BsonDocument) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Sets the logical starting point for the new change stream.
retain() - Method in class com.mongodb.binding.AsyncClusterBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.AsyncConnectionSource
Deprecated.
 
retain() - Method in interface com.mongodb.binding.AsyncReadBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.AsyncReadWriteBinding
Deprecated.
 
retain() - Method in class com.mongodb.binding.AsyncSingleConnectionReadBinding
Deprecated.
 
retain() - Method in class com.mongodb.binding.AsyncSingleServerBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.AsyncWriteBinding
Deprecated.
 
retain() - Method in class com.mongodb.binding.ClusterBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.ConnectionSource
Deprecated.
 
retain() - Method in interface com.mongodb.binding.ReadBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.ReadWriteBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.ReferenceCounted
Deprecated.
Retain an additional reference to this object.
retain() - Method in class com.mongodb.binding.SingleConnectionReadBinding
Deprecated.
 
retain() - Method in class com.mongodb.binding.SingleServerBinding
Deprecated.
 
retain() - Method in interface com.mongodb.binding.WriteBinding
Deprecated.
 
retain() - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
 
retain() - Method in interface com.mongodb.connection.Connection
Deprecated.
 
retryReads(boolean) - Method in class com.mongodb.MongoClientSettings.Builder
Sets whether reads should be retried if they fail due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.DistinctOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.GroupOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.ListCollectionsOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.ListDatabasesOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.ListIndexesOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryReads(boolean) - Method in class com.mongodb.operation.UserExistsOperation
Deprecated.
Enables retryable reads if a read fails due to a network error.
retryWrites(boolean) - Method in class com.mongodb.MongoClientSettings.Builder
Sets whether writes should be retried if they fail due to a network error.
returnDocument(ReturnDocument) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Set whether to return the document before it was replaced or after
returnDocument(ReturnDocument) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Set whether to return the document before it was updated / inserted or after
ReturnDocument - Enum in com.mongodb.client.model
Indicates which document to return, the original document before change or the document after the change
returnKey(boolean) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the returnKey.
returnKey(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the returnKey.
returnOriginal(boolean) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Set to false to return the replaced document rather than the original.
returnOriginal(boolean) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Set to false if the updated document rather than the original should be returned.
revision(int) - Method in class com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
Deprecated.
Set the revision of the file to retrieve.
revision(int) - Method in class com.mongodb.client.gridfs.model.GridFSDownloadOptions
Set the revision of the file to retrieve.
roundTripTime(long, TimeUnit) - Method in class com.mongodb.connection.ServerDescription.Builder
Set the time it took to make the round trip for requesting this information from the server

S

SAFE - Static variable in class com.mongodb.WriteConcern
Deprecated.
sameHost(String) - Method in class com.mongodb.ServerAddress
Deprecated.
use the ServerAddress.equals(Object) method instead
sample(int) - Static method in class com.mongodb.client.model.Aggregates
Creates a $sample pipeline stage with the specified sample size
schemaMap(Map<String, BsonDocument>) - Method in class com.mongodb.AutoEncryptionSettings.Builder
Sets the map from namespace to local schema document
scope(BsonDocument) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the global variables that are accessible in the map, reduce and finalize functions.
scope(BsonDocument) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the global variables that are accessible in the map, reduce and finalize functions.
SCRAM_SHA_1 - com.mongodb.AuthenticationMechanism
The SCRAM-SHA-1 mechanism.
SCRAM_SHA_1_MECHANISM - Static variable in class com.mongodb.MongoCredential
The SCRAM-SHA-1 Mechanism.
SCRAM_SHA_256 - com.mongodb.AuthenticationMechanism
The SCRAM-SHA-256 mechanism.
SCRAM_SHA_256_MECHANISM - Static variable in class com.mongodb.MongoCredential
The SCRAM-SHA-256 Mechanism.
secondary() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary.
secondary(long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary that is less stale than the given maximum.
secondary(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with the given set of tags.
secondary(TagSet, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with the given set of tags that is less stale than the given maximum.
secondary(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
secondary(List<TagSet>, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with one of the given sets of tags that is less stale than the given maximum.
SECONDARY - com.mongodb.client.model.CollationStrength
Accents in characters are considered secondary differences
secondaryPreferred() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
secondaryPreferred(long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary that is less stale than the given maximumm if one is available, otherwise to the primary.
secondaryPreferred(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
secondaryPreferred(TagSet, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with the given set of tags that is less stale than the given maximum, or the primary is none are available.
secondaryPreferred(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
secondaryPreferred(List<TagSet>, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with one of the given sets of tags that is less stale than the given maximum.
select(ClusterDescription) - Method in class com.mongodb.selector.CompositeServerSelector
 
select(ClusterDescription) - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
Deprecated.
 
select(ClusterDescription) - Method in class com.mongodb.selector.PrimaryServerSelector
Deprecated.
 
select(ClusterDescription) - Method in class com.mongodb.selector.ReadPreferenceServerSelector
Deprecated.
 
select(ClusterDescription) - Method in class com.mongodb.selector.ServerAddressSelector
Deprecated.
 
select(ClusterDescription) - Method in interface com.mongodb.selector.ServerSelector
Select a list of server descriptions from the given cluster description according to some criteria.
select(ClusterDescription) - Method in class com.mongodb.selector.WritableServerSelector
Deprecated.
 
selectFreshServers(ClusterDescription, List<ServerDescription>) - Method in class com.mongodb.TaggableReadPreference
 
selectServer(ServerSelector) - Method in interface com.mongodb.connection.Cluster
Deprecated.
Get a MongoDB server that matches the criteria defined by the serverSelector
selectServerAsync(ServerSelector, SingleResultCallback<Server>) - Method in interface com.mongodb.connection.Cluster
Deprecated.
Asynchronously gets a MongoDB server that matches the criteria defined by the serverSelector.
sendBufferSize(int) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the send buffer size.
SERIES_125 - com.mongodb.client.model.BucketGranularity
 
Server - Interface in com.mongodb.connection
Deprecated.
ServerAddress - Class in com.mongodb
Represents the location of a Mongo server - i.e.
ServerAddress() - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default host and port
ServerAddress(String) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default port
ServerAddress(String, int) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddress(InetAddress) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default port
ServerAddress(InetAddress, int) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddress(InetSocketAddress) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddressSelector - Class in com.mongodb.selector
Deprecated.
ServerAddressSelector(ServerAddress) - Constructor for class com.mongodb.selector.ServerAddressSelector
Deprecated.
Constructs a new instance.
serverClosed(ServerClosedEvent) - Method in class com.mongodb.event.ServerEventMulticaster
Deprecated.
 
serverClosed(ServerClosedEvent) - Method in interface com.mongodb.event.ServerListener
Listener for server closed events.
serverClosed(ServerClosedEvent) - Method in class com.mongodb.event.ServerListenerAdapter
 
ServerClosedEvent - Class in com.mongodb.event
A server opening event.
ServerClosedEvent(ServerId) - Constructor for class com.mongodb.event.ServerClosedEvent
Construct an instance.
ServerConnectionState - Enum in com.mongodb.connection
Enum of the current state of attempting to connect to a server.
ServerCursor - Class in com.mongodb
A class representing a cursor id associated with a server address (host/port) Since cursor ids are only useful in the context of a single MongoDB server process, you need both values to do a getMore on the cursor.
ServerCursor(long, ServerAddress) - Constructor for class com.mongodb.ServerCursor
Construct an instance.
ServerDescription - Class in com.mongodb.connection
Immutable snapshot state of a server.
ServerDescription.Builder - Class in com.mongodb.connection
A builder for creating ServerDescription.
serverDescriptionChanged(ServerDescriptionChangedEvent) - Method in class com.mongodb.event.ServerEventMulticaster
Deprecated.
 
serverDescriptionChanged(ServerDescriptionChangedEvent) - Method in interface com.mongodb.event.ServerListener
Listener for server description changed events.
serverDescriptionChanged(ServerDescriptionChangedEvent) - Method in class com.mongodb.event.ServerListenerAdapter
 
ServerDescriptionChangedEvent - Class in com.mongodb.event
An event for changes to the description of a server.
ServerDescriptionChangedEvent(ServerId, ServerDescription, ServerDescription) - Constructor for class com.mongodb.event.ServerDescriptionChangedEvent
Construct an instance.
ServerEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple server listeners instead
ServerEventMulticaster(List<ServerListener>) - Constructor for class com.mongodb.event.ServerEventMulticaster
Deprecated.
Construct an instance with the given list of server listeners
serverHearbeatStarted(ServerHeartbeatStartedEvent) - Method in class com.mongodb.event.ServerMonitorEventMulticaster
Deprecated.
 
serverHearbeatStarted(ServerHeartbeatStartedEvent) - Method in interface com.mongodb.event.ServerMonitorListener
Listener for server heartbeat started events.
serverHearbeatStarted(ServerHeartbeatStartedEvent) - Method in class com.mongodb.event.ServerMonitorListenerAdapter
 
serverHeartbeatFailed(ServerHeartbeatFailedEvent) - Method in class com.mongodb.event.ServerMonitorEventMulticaster
Deprecated.
 
serverHeartbeatFailed(ServerHeartbeatFailedEvent) - Method in interface com.mongodb.event.ServerMonitorListener
Listener for server heartbeat failed events.
serverHeartbeatFailed(ServerHeartbeatFailedEvent) - Method in class com.mongodb.event.ServerMonitorListenerAdapter
 
ServerHeartbeatFailedEvent - Class in com.mongodb.event
An event for server heartbeat failures.
ServerHeartbeatFailedEvent(ConnectionId, long, Throwable) - Constructor for class com.mongodb.event.ServerHeartbeatFailedEvent
Construct an instance.
ServerHeartbeatStartedEvent - Class in com.mongodb.event
An event for the start of a server heartbeat.
ServerHeartbeatStartedEvent(ConnectionId) - Constructor for class com.mongodb.event.ServerHeartbeatStartedEvent
Construct an instance.
serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent) - Method in class com.mongodb.event.ServerMonitorEventMulticaster
Deprecated.
 
serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent) - Method in interface com.mongodb.event.ServerMonitorListener
Listener for server heartbeat succeeded events.
serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent) - Method in class com.mongodb.event.ServerMonitorListenerAdapter
 
ServerHeartbeatSucceededEvent - Class in com.mongodb.event
An event for successful completion of a server heartbeat.
ServerHeartbeatSucceededEvent(ConnectionId, BsonDocument, long) - Constructor for class com.mongodb.event.ServerHeartbeatSucceededEvent
Construct an instance.
ServerId - Class in com.mongodb.connection
A client-generated identifier that uniquely identifies a MongoDB server.
ServerId(ClusterId, ServerAddress) - Constructor for class com.mongodb.connection.ServerId
Construct an instance.
ServerListener - Interface in com.mongodb.event
A listener for server-related events
ServerListenerAdapter - Class in com.mongodb.event
An adapter for server listener implementations, for clients that want to listen for a subset of server events.
ServerListenerAdapter() - Constructor for class com.mongodb.event.ServerListenerAdapter
 
ServerMonitorEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple server monitor listeners instead
ServerMonitorEventMulticaster(List<ServerMonitorListener>) - Constructor for class com.mongodb.event.ServerMonitorEventMulticaster
Deprecated.
Construct an instance with the given list of server monitor listeners
ServerMonitorListener - Interface in com.mongodb.event
A listener for server monitor-related events
ServerMonitorListenerAdapter - Class in com.mongodb.event
An adapter for server monitor listener implementations, for clients that want to listen for a subset of server monitor-related events.
ServerMonitorListenerAdapter() - Constructor for class com.mongodb.event.ServerMonitorListenerAdapter
 
serverOpening(ServerOpeningEvent) - Method in class com.mongodb.event.ServerEventMulticaster
Deprecated.
 
serverOpening(ServerOpeningEvent) - Method in interface com.mongodb.event.ServerListener
Listener for server opening events.
serverOpening(ServerOpeningEvent) - Method in class com.mongodb.event.ServerListenerAdapter
 
ServerOpeningEvent - Class in com.mongodb.event
A server opening event.
ServerOpeningEvent(ServerId) - Constructor for class com.mongodb.event.ServerOpeningEvent
Construct an instance.
serverSelectionTimeout(long, TimeUnit) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the timeout to apply when selecting a server.
serverSelector(ServerSelector) - Method in class com.mongodb.connection.ClusterSettings.Builder
Adds a server selector for the cluster to apply before selecting a server.
ServerSelector - Interface in com.mongodb.selector
An interface for selecting a server from a cluster according to some preference.
ServerSession - Interface in com.mongodb.session
A MongoDB server session.
ServerSettings - Class in com.mongodb.connection
Settings relating to monitoring of each server.
ServerSettings.Builder - Class in com.mongodb.connection
A builder for the settings.
ServerType - Enum in com.mongodb.connection
The type of the server.
ServerVersion - Class in com.mongodb.connection
Holds an array of three integers representing the server version, e.g.
ServerVersion() - Constructor for class com.mongodb.connection.ServerVersion
Creates a server version which will compare as less than all other valid versions
ServerVersion(int, int) - Constructor for class com.mongodb.connection.ServerVersion
Constructs a new instance with the given major and minor versions and a patch version of 0.
ServerVersion(List<Integer>) - Constructor for class com.mongodb.connection.ServerVersion
Constructs a new instance with the given version list of integers.
SERVICE_NAME_KEY - Static variable in class com.mongodb.MongoCredential
Mechanism property key for overriding the service name for GSSAPI authentication.
SessionContext - Interface in com.mongodb.session
The session context.
set(String, TItem) - Static method in class com.mongodb.client.model.Updates
Creates an update that sets the value of the field with the given name to the given value.
setBatchSize(int) - Method in interface com.mongodb.async.AsyncBatchCursor
Deprecated.
Sets the batch size to use when requesting the next batch.
setBatchSize(int) - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
Sets the batch size to use when requesting the next batch.
setChangeStreamOptionsForResume(BsonDocument, int) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
Set the change stream operation options for a resumeable operation.
setName(String) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the name of the replica set
setOnInsert(String, TItem) - Static method in class com.mongodb.client.model.Updates
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.
setOnInsert(Bson) - Static method in class com.mongodb.client.model.Updates
Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.
setPinnedServerAddress(ServerAddress) - Method in interface com.mongodb.session.ClientSession
Set the server address of the pinned mongos.
setPosition(int) - Method in class com.mongodb.connection.SplittablePayload
Deprecated.
Sets the current position in the payload
setRecoveryToken(BsonDocument) - Method in interface com.mongodb.session.ClientSession
Set the recovery token.
setRecoveryToken(BsonDocument) - Method in interface com.mongodb.session.SessionContext
Sets the recovery token in the session.
setVersion(Integer) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the setVersion reported by this server.
SHARD_ROUTER - com.mongodb.connection.ServerType
A router to a sharded cluster, i.e.
sharded(boolean) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets if the output database is sharded
SHARDED - com.mongodb.connection.ClusterType
A sharded cluster, connected via one or more mongos servers.
SHIFTED - com.mongodb.client.model.CollationAlternate
Shifted
shouldStopSendingMoreBatches() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
True if ordered and has write errors.
showRecordId(boolean) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the showRecordId.
showRecordId(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the showRecordId.
SINGLE - com.mongodb.connection.ClusterConnectionMode
Connect directly to a server, regardless of the type of cluster it is a part of.
SingleConnectionReadBinding - Class in com.mongodb.binding
Deprecated.
SingleConnectionReadBinding(ReadPreference, ServerDescription, Connection) - Constructor for class com.mongodb.binding.SingleConnectionReadBinding
Deprecated.
Construct an instance.
SingleResultCallback<T> - Interface in com.mongodb.async
Deprecated.
Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
SingleServerBinding - Class in com.mongodb.binding
Deprecated.
SingleServerBinding(Cluster, ServerAddress) - Constructor for class com.mongodb.binding.SingleServerBinding
Deprecated.
Creates an instance, defaulting to ReadPreference.primary() for reads.
SingleServerBinding(Cluster, ServerAddress, ReadPreference) - Constructor for class com.mongodb.binding.SingleServerBinding
Deprecated.
Creates an instance.
size(String, int) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field is an array of the specified size.
sizeInBytes(long) - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the maximum size of in bytes of a capped collection.
sizeInBytes(long) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the maximum size of the collection in bytes.
skip(int) - Static method in class com.mongodb.client.model.Aggregates
Creates a $skip pipeline stage
skip(int) - Method in class com.mongodb.client.model.CountOptions
Sets the number of documents to skip.
skip(int) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the number of documents to skip.
skip(int) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the number of documents to skip.
skip(long) - Method in class com.mongodb.operation.CountOperation
Deprecated.
Sets the number of documents to skip.
slaveOk(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets if allowed to query non-primary replica set members.
slice(Integer) - Method in class com.mongodb.client.model.PushOptions
Sets the limit on the number of array elements allowed.
slice(String, int) - Static method in class com.mongodb.client.model.Projections
Creates a projection to the given field name of a slice of the array value of that field.
slice(String, int, int) - Static method in class com.mongodb.client.model.Projections
Creates a projection to the given field name of a slice of the array value of that field.
snapshot(boolean) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 release
snapshot(boolean) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Deprecated in MongoDB 3.6 release and removed in MongoDB 4.0 release
SNAPSHOT - com.mongodb.ReadConcernLevel
The snapshot read concern level.
SNAPSHOT - Static variable in class com.mongodb.ReadConcern
The snapshot read concern.
socketChannelClass(Class<? extends SocketChannel>) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
Sets the socket channel class
SocketSettings - Class in com.mongodb.connection
An immutable class representing socket settings used for connections to a MongoDB server.
SocketSettings.Builder - Class in com.mongodb.connection
A builder for an instance of SocketSettings.
SocketStreamFactory - Class in com.mongodb.connection
Factory for creating instances of SocketStream.
SocketStreamFactory(SocketSettings, SslSettings) - Constructor for class com.mongodb.connection.SocketStreamFactory
Creates a new factory with the given settings for connecting to servers and the given SSL settings
SocketStreamFactory(SocketSettings, SslSettings, SocketFactory) - Constructor for class com.mongodb.connection.SocketStreamFactory
Creates a new factory with the given settings for connecting to servers and a factory for creating connections.
sort(Integer) - Method in class com.mongodb.client.model.PushOptions
Sets the sort direction for sorting array elements that are not documents.
sort(BsonDocument) - Method in class com.mongodb.operation.FindAndDeleteOperation
Deprecated.
Sets the sort criteria to apply to the query.
sort(BsonDocument) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Sets the sort criteria to apply to the query.
sort(BsonDocument) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Sets the sort criteria to apply to the query.
sort(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Deprecated.
Sets the sort criteria to apply to the query.
sort(BsonDocument) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets the sort criteria to apply to the query.
sort(BsonDocument) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets the sort criteria to apply to the query.
sort(Bson) - Static method in class com.mongodb.client.model.Aggregates
Creates a $sort pipeline stage for the specified sort specification
sort(Bson) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Sets the sort criteria to apply to the query.
sort(Bson) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets the sort criteria to apply to the query.
sort(Bson) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the sort criteria to apply to the query.
sort(Bson) - Method in class com.mongodb.client.model.FindOptions
Deprecated.
Sets the sort criteria to apply to the query.
sortByCount(TExpression) - Static method in class com.mongodb.client.model.Aggregates
Creates a $sortByCount pipeline stage for the specified filter
sortDocument(Bson) - Method in class com.mongodb.client.model.PushOptions
Sets the sort direction for sorting array elements that are documents.
Sorts - Class in com.mongodb.client.model
A factory for sort specifications.
SPACE - com.mongodb.client.model.CollationMaxVariable
Shifted
sparse(boolean) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Should the index only references documents with the specified field
sparse(boolean) - Method in class com.mongodb.client.model.IndexOptions
Should the index only references documents with the specified field
sphereVersion(Integer) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the 2dsphere index version number.
sphereVersion(Integer) - Method in class com.mongodb.client.model.IndexOptions
Sets the 2dsphere index version number.
SplittablePayload - Class in com.mongodb.connection
Deprecated.
SplittablePayload(SplittablePayload.Type, List<BsonDocument>) - Constructor for class com.mongodb.connection.SplittablePayload
Deprecated.
Create a new instance
SplittablePayload.Type - Enum in com.mongodb.connection
Deprecated.
The type of the payload.
srvHost(String) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the host name to use in order to look up an SRV DNS record to find the MongoDB hosts.
SslSettings - Class in com.mongodb.connection
Settings for connecting to MongoDB via SSL.
SslSettings.Builder - Class in com.mongodb.connection
A builder for creating SSLSettings.
STALE - com.mongodb.event.ConnectionRemovedEvent.Reason
The pool became stale because the pool has been cleared
STANDALONE - com.mongodb.connection.ClusterType
A standalone mongod server.
STANDALONE - com.mongodb.connection.ServerType
A standalone mongod server.
start() - Static method in class com.mongodb.BasicDBObjectBuilder
Creates a builder intialized with an empty document.
start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
Creates a builder initialized with the given key/value.
start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
Creates an object builder from an existing map of key value pairs.
startAfter(BsonDocument) - Method in class com.mongodb.operation.ChangeStreamOperation
Deprecated.
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 class com.mongodb.operation.ChangeStreamOperation
Deprecated.
The change stream will only provides changes that occurred after the specified timestamp.
state(ServerConnectionState) - Method in class com.mongodb.connection.ServerDescription.Builder
The current state of the connection to the server.
stdDevPop(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.
stdDevSamp(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.
storageEngine(BsonDocument) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the storage engine options document for this index.
storageEngine(Bson) - Method in class com.mongodb.client.model.IndexOptionDefaults
Sets the default storage engine options document for indexes.
storageEngine(Bson) - Method in class com.mongodb.client.model.IndexOptions
Sets the storage engine options document for this index.
storageEngineOptions(BsonDocument) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the storage engine options document for this collection.
storageEngineOptions(Bson) - Method in class com.mongodb.client.model.CreateCollectionOptions
Sets the storage engine options document defaults for the collection
Stream - Interface in com.mongodb.connection
A full duplex stream of bytes.
StreamFactory - Interface in com.mongodb.connection
A factory for streams.
streamFactoryFactory(StreamFactoryFactory) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the factory to use to create a StreamFactory.
StreamFactoryFactory - Interface in com.mongodb.connection
A factory of StreamFactory instances.
STRICT - com.mongodb.client.model.ValidationLevel
Apply validation rules to all inserts and all updates.
sum(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing the sum of the values of the given expression when applied to all members of the group.

T

Tag - Class in com.mongodb
A replica set tag.
Tag(String, String) - Constructor for class com.mongodb.Tag
Construct a new instance.
TaggableReadPreference - Class in com.mongodb
Abstract class for all preference which can be combined with tags
tagSet(TagSet) - Method in class com.mongodb.connection.ServerDescription.Builder
A set of any tags assigned to this member.
TagSet - Class in com.mongodb
An immutable set of tags, used to select members of a replica set to use for read operations.
TagSet() - Constructor for class com.mongodb.TagSet
An empty set of tags.
TagSet(Tag) - Constructor for class com.mongodb.TagSet
A set of tags contain the single given tag
TagSet(List<Tag>) - Constructor for class com.mongodb.TagSet
A set of tags containing the given list of tags.
Tailable - com.mongodb.CursorType
Tailable means the cursor is not closed when the last data is retrieved.
TailableAwait - com.mongodb.CursorType
A tailable cursor with a built-in server sleep before returning an empty batch.
TERTIARY - com.mongodb.client.model.CollationStrength
Upper and lower case differences in characters are distinguished at the tertiary level.
text() - Static method in class com.mongodb.client.model.Indexes
Create an index key for a text index on every field that contains string data.
text(String) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents matching the given search term.
text(String) - Static method in class com.mongodb.client.model.Indexes
Create an index key for a text index on the given field.
text(String, TextSearchOptions) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents matching the given the search term with the given text search options.
text(String, String) - Static method in class com.mongodb.client.model.Filters
TextSearchOptions - Class in com.mongodb.client.model
Text search options for the Filters.text(String, TextSearchOptions) helper
TextSearchOptions() - Constructor for class com.mongodb.client.model.TextSearchOptions
 
textVersion(Integer) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Set the text index version number.
textVersion(Integer) - Method in class com.mongodb.client.model.IndexOptions
Set the text index version number.
ThreadSafe - Annotation Type in com.mongodb.annotations
The class to which this annotation is applied is thread-safe.
TlsChannelStreamFactoryFactory - Class in com.mongodb.connection
A StreamFactoryFactory that supports TLS/SSL.
TlsChannelStreamFactoryFactory() - Constructor for class com.mongodb.connection.TlsChannelStreamFactoryFactory
Construct a new instance
TlsChannelStreamFactoryFactory(AsynchronousTlsChannelGroup) - Constructor for class com.mongodb.connection.TlsChannelStreamFactoryFactory
Construct a new instance with the given AsynchronousTlsChannelGroup.
toBsonDocument(Class<TDocument>, CodecRegistry) - Method in class com.mongodb.BasicDBObject
 
toDocument() - Method in class com.mongodb.ReadPreference
Gets a document representing this read preference in the wire protocol.
toDocument() - Method in class com.mongodb.TaggableReadPreference
 
toJson() - Method in class com.mongodb.BasicDBObject
Gets a JSON representation of this document using the JsonMode.STRICT output mode, and otherwise the default settings of JsonWriterSettings.Builder and DBObjectCodec.
toJson() - Method in class com.mongodb.client.model.geojson.Geometry
Converts to GeoJSON representation
toJson(Encoder<BasicDBObject>) - Method in class com.mongodb.BasicDBObject
Gets a JSON representation of this document
toJson(JsonWriterSettings) - Method in class com.mongodb.BasicDBObject
Gets a JSON representation of this document
toJson(JsonWriterSettings, Encoder<BasicDBObject>) - Method in class com.mongodb.BasicDBObject
Gets a JSON representation of this document
toString() - Method in enum com.mongodb.AuthenticationMechanism
 
toString() - Method in class com.mongodb.BasicDBObject
Returns a JSON serialization of this object
toString() - Method in class com.mongodb.bulk.BulkWriteError
 
toString() - Method in class com.mongodb.bulk.BulkWriteUpsert
 
toString() - Method in class com.mongodb.bulk.WriteConcernError
 
toString() - Method in class com.mongodb.client.gridfs.model.GridFSFile
 
toString() - Method in class com.mongodb.client.model.BsonField
 
toString() - Method in class com.mongodb.client.model.BucketAutoOptions
 
toString() - Method in class com.mongodb.client.model.BucketOptions
 
toString() - Method in class com.mongodb.client.model.BulkWriteOptions
 
toString() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
 
toString() - Method in enum com.mongodb.client.model.changestream.OperationType
 
toString() - Method in class com.mongodb.client.model.changestream.UpdateDescription
 
toString() - Method in class com.mongodb.client.model.Collation
 
toString() - Method in class com.mongodb.client.model.CountOptions
 
toString() - Method in class com.mongodb.client.model.CreateCollectionOptions
 
toString() - Method in class com.mongodb.client.model.CreateIndexOptions
 
toString() - Method in class com.mongodb.client.model.CreateViewOptions
 
toString() - Method in class com.mongodb.client.model.DeleteManyModel
 
toString() - Method in class com.mongodb.client.model.DeleteOneModel
 
toString() - Method in class com.mongodb.client.model.DeleteOptions
 
toString() - Method in class com.mongodb.client.model.DropIndexOptions
 
toString() - Method in class com.mongodb.client.model.EstimatedDocumentCountOptions
 
toString() - Method in class com.mongodb.client.model.Facet
 
toString() - Method in class com.mongodb.client.model.Field
 
toString() - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
 
toString() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
 
toString() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
 
toString() - Method in class com.mongodb.client.model.FindOptions
Deprecated.
 
toString() - Method in class com.mongodb.client.model.geojson.GeometryCollection
 
toString() - Method in class com.mongodb.client.model.geojson.LineString
 
toString() - Method in class com.mongodb.client.model.geojson.MultiLineString
 
toString() - Method in class com.mongodb.client.model.geojson.MultiPoint
 
toString() - Method in class com.mongodb.client.model.geojson.MultiPolygon
 
toString() - Method in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
 
toString() - Method in class com.mongodb.client.model.geojson.Point
 
toString() - Method in class com.mongodb.client.model.geojson.Polygon
 
toString() - Method in class com.mongodb.client.model.geojson.PolygonCoordinates
 
toString() - Method in class com.mongodb.client.model.geojson.Position
 
toString() - Method in class com.mongodb.client.model.GraphLookupOptions
 
toString() - Method in class com.mongodb.client.model.IndexModel
 
toString() - Method in class com.mongodb.client.model.IndexOptionDefaults
 
toString() - Method in class com.mongodb.client.model.IndexOptions
 
toString() - Method in class com.mongodb.client.model.InsertManyOptions
 
toString() - Method in class com.mongodb.client.model.InsertOneModel
 
toString() - Method in class com.mongodb.client.model.InsertOneOptions
 
toString() - Method in class com.mongodb.client.model.MergeOptions
 
toString() - Method in class com.mongodb.client.model.PushOptions
 
toString() - Method in class com.mongodb.client.model.RenameCollectionOptions
 
toString() - Method in class com.mongodb.client.model.ReplaceOneModel
 
toString() - Method in class com.mongodb.client.model.ReplaceOptions
 
toString() - Method in class com.mongodb.client.model.TextSearchOptions
 
toString() - Method in class com.mongodb.client.model.UnwindOptions
 
toString() - Method in class com.mongodb.client.model.UpdateManyModel
 
toString() - Method in class com.mongodb.client.model.UpdateOneModel
 
toString() - Method in class com.mongodb.client.model.UpdateOptions
 
toString() - Method in class com.mongodb.client.model.ValidationOptions
 
toString() - Method in class com.mongodb.client.model.Variable
 
toString() - Method in class com.mongodb.client.model.vault.DataKeyOptions
 
toString() - Method in class com.mongodb.client.model.vault.EncryptOptions
 
toString() - Method in class com.mongodb.ClientSessionOptions
 
toString() - Method in class com.mongodb.connection.ClusterDescription
 
toString() - Method in class com.mongodb.connection.ClusterId
 
toString() - Method in class com.mongodb.connection.ClusterSettings
 
toString() - Method in class com.mongodb.connection.ConnectionDescription
 
toString() - Method in class com.mongodb.connection.ConnectionId
 
toString() - Method in class com.mongodb.connection.ConnectionPoolSettings
 
toString() - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory
 
toString() - Method in class com.mongodb.connection.ServerDescription
 
toString() - Method in class com.mongodb.connection.ServerId
 
toString() - Method in class com.mongodb.connection.ServerSettings
 
toString() - Method in class com.mongodb.connection.ServerVersion
 
toString() - Method in class com.mongodb.connection.SocketSettings
 
toString() - Method in class com.mongodb.connection.SslSettings
 
toString() - Method in class com.mongodb.ConnectionString
 
toString() - Method in class com.mongodb.DBRef
 
toString() - Method in class com.mongodb.event.ClusterClosedEvent
 
toString() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
 
toString() - Method in class com.mongodb.event.ClusterOpeningEvent
 
toString() - Method in class com.mongodb.event.ConnectionAddedEvent
 
toString() - Method in class com.mongodb.event.ConnectionCheckedInEvent
 
toString() - Method in class com.mongodb.event.ConnectionCheckedOutEvent
 
toString() - Method in class com.mongodb.event.ConnectionClosedEvent
Deprecated.
 
toString() - Method in class com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
 
toString() - Method in class com.mongodb.event.ConnectionMessagesSentEvent
Deprecated.
 
toString() - Method in class com.mongodb.event.ConnectionOpenedEvent
Deprecated.
 
toString() - Method in class com.mongodb.event.ConnectionPoolClosedEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolWaitQueueExitedEvent
 
toString() - Method in class com.mongodb.event.ConnectionRemovedEvent
 
toString() - Method in class com.mongodb.event.ServerClosedEvent
 
toString() - Method in class com.mongodb.event.ServerDescriptionChangedEvent
 
toString() - Method in class com.mongodb.event.ServerHeartbeatFailedEvent
 
toString() - Method in class com.mongodb.event.ServerHeartbeatStartedEvent
 
toString() - Method in class com.mongodb.event.ServerHeartbeatSucceededEvent
 
toString() - Method in class com.mongodb.event.ServerOpeningEvent
 
toString() - Method in class com.mongodb.MongoCompressor
 
toString() - Method in class com.mongodb.MongoCredential
 
toString() - Method in class com.mongodb.MongoNamespace
Returns the standard MongoDB representation of a namespace, which is &lt;database&gt;.&lt;collection&gt;.
toString() - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
 
toString() - Method in class com.mongodb.selector.CompositeServerSelector
 
toString() - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
Deprecated.
 
toString() - Method in class com.mongodb.selector.PrimaryServerSelector
Deprecated.
 
toString() - Method in class com.mongodb.selector.ReadPreferenceServerSelector
Deprecated.
 
toString() - Method in class com.mongodb.selector.ServerAddressSelector
Deprecated.
 
toString() - Method in class com.mongodb.selector.WritableServerSelector
Deprecated.
 
toString() - Method in class com.mongodb.ServerAddress
 
toString() - Method in class com.mongodb.ServerCursor
 
toString() - Method in class com.mongodb.Tag
 
toString() - Method in class com.mongodb.TaggableReadPreference
 
toString() - Method in class com.mongodb.TagSet
 
toString() - Method in class com.mongodb.TransactionOptions
 
toString() - Method in class com.mongodb.UnixServerAddress
 
toString() - Method in class com.mongodb.WriteConcern
 
toString() - Method in class com.mongodb.WriteError
 
trace(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the TRACE level.
trace(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the TRACE level with an accompanying message.
TransactionOperation - Class in com.mongodb.operation
Deprecated.
TransactionOptions - Class in com.mongodb
Options to apply to transactions.
TransactionOptions.Builder - Class in com.mongodb
The builder for transaction options
transform(Object) - Method in class com.mongodb.DocumentToDBRefTransformer
 
TRANSIENT_TRANSACTION_ERROR_LABEL - Static variable in exception com.mongodb.MongoException
An error label indicating that the exception can be treated as a transient transaction error.
truncateToPosition(int) - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
tryNext() - Method in interface com.mongodb.operation.BatchCursor
Deprecated.
A special next() case that returns the next batch if available or null.
tryNext(SingleResultCallback<List<T>>) - Method in interface com.mongodb.async.AsyncBatchCursor
Deprecated.
A special next() case that returns the next batch if available or null.
type(ServerType) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the type of the server, for example whether it's a standalone or in a replica set.
type(String, String) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
type(String, BsonType) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field is of the specified BSON type.

U

unacknowledged() - Static method in class com.mongodb.bulk.BulkWriteResult
Create an unacknowledged BulkWriteResult
unacknowledged() - Static method in class com.mongodb.client.result.DeleteResult
Create an unacknowledged DeleteResult
unacknowledged() - Static method in class com.mongodb.client.result.UpdateResult
Create an unacknowledged UpdateResult
unacknowledged() - Static method in class com.mongodb.WriteConcernResult
Create an unacknowledged WriteConcernResult
UNACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will return as soon as the message is written to the socket.
UNCATEGORIZED - com.mongodb.ErrorCategory
An uncategorized error
unique(boolean) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Should the index should be unique.
unique(boolean) - Method in class com.mongodb.client.model.IndexOptions
Should the index should be unique.
uniqueIdentifier(String) - Method in class com.mongodb.client.model.MergeOptions
Sets the field that act as a unique identifier for a document.
uniqueIdentifier(List<String>) - Method in class com.mongodb.client.model.MergeOptions
Sets the field that act as a unique identifier for a document.
UnixServerAddress - Class in com.mongodb
Represents the location of a MongoD unix domain socket.
UnixServerAddress(String) - Constructor for class com.mongodb.UnixServerAddress
Creates a new instance
UNKNOWN - com.mongodb.connection.ClusterType
The cluster type is not yet known.
UNKNOWN - com.mongodb.connection.ServerType
The server type is not yet known.
UNKNOWN - com.mongodb.event.ConnectionRemovedEvent.Reason
Reason unknown
UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL - Static variable in exception com.mongodb.MongoException
An error label indicating that the exception can be treated as an unknown transaction commit result.
unpinServerAddress() - Method in interface com.mongodb.session.SessionContext
Unpin a mongos from a session.
unregisterMBean(String) - Method in interface com.mongodb.management.MBeanServer
Deprecated.
Unregister the MBean with the given name.
unregisterMBean(String) - Method in class com.mongodb.management.NullMBeanServer
Deprecated.
 
unset(String) - Static method in class com.mongodb.client.model.Updates
Creates an update that deletes the field with the given name.
unwind(String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a '$' sign.
unwind(String, UnwindOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a '$' sign.
UnwindOptions - Class in com.mongodb.client.model
The options for an unwind aggregation pipeline stage
UnwindOptions() - Constructor for class com.mongodb.client.model.UnwindOptions
 
update(MongoNamespace, boolean, UpdateRequest) - Method in interface com.mongodb.connection.Connection
Deprecated.
Update the documents using the update wire protocol and apply the write concern.
UPDATE - com.mongodb.bulk.WriteRequest.Type
Deprecated.
An update that uses update operators.
UPDATE - com.mongodb.client.model.changestream.OperationType
The update operation type
UPDATE - com.mongodb.connection.SplittablePayload.Type
Deprecated.
An update that uses update operators.
UPDATE_LOOKUP - com.mongodb.client.model.changestream.FullDocument
Lookup
updateAsync(MongoNamespace, boolean, UpdateRequest, SingleResultCallback<WriteConcernResult>) - Method in interface com.mongodb.connection.AsyncConnection
Deprecated.
Update the documents using the update wire protocol and apply the write concern asynchronously.
UpdateDescription - Class in com.mongodb.client.model.changestream
The update description for changed fields in a $changeStream operation.
UpdateDescription(List<String>, BsonDocument) - Constructor for class com.mongodb.client.model.changestream.UpdateDescription
Creates a new instance
UpdateManyModel<T> - Class in com.mongodb.client.model
A model describing an update to all documents that matches the query filter.
UpdateManyModel(Bson, List<? extends Bson>) - Constructor for class com.mongodb.client.model.UpdateManyModel
Construct a new instance.
UpdateManyModel(Bson, List<? extends Bson>, UpdateOptions) - Constructor for class com.mongodb.client.model.UpdateManyModel
Construct a new instance.
UpdateManyModel(Bson, Bson) - Constructor for class com.mongodb.client.model.UpdateManyModel
Construct a new instance.
UpdateManyModel(Bson, Bson, UpdateOptions) - Constructor for class com.mongodb.client.model.UpdateManyModel
Construct a new instance.
UpdateOneModel<T> - Class in com.mongodb.client.model
A model describing an update to at most one document that matches the query filter.
UpdateOneModel(Bson, List<? extends Bson>) - Constructor for class com.mongodb.client.model.UpdateOneModel
Construct a new instance.
UpdateOneModel(Bson, List<? extends Bson>, UpdateOptions) - Constructor for class com.mongodb.client.model.UpdateOneModel
Construct a new instance.
UpdateOneModel(Bson, Bson) - Constructor for class com.mongodb.client.model.UpdateOneModel
Construct a new instance.
UpdateOneModel(Bson, Bson, UpdateOptions) - Constructor for class com.mongodb.client.model.UpdateOneModel
Construct a new instance.
UpdateOperation - Class in com.mongodb.operation
Deprecated.
UpdateOperation(MongoNamespace, boolean, WriteConcern, boolean, List<UpdateRequest>) - Constructor for class com.mongodb.operation.UpdateOperation
Deprecated.
Construct an instance.
UpdateOperation(MongoNamespace, boolean, WriteConcern, List<UpdateRequest>) - Constructor for class com.mongodb.operation.UpdateOperation
UpdateOptions - Class in com.mongodb.client.model
The options to apply when updating documents.
UpdateOptions() - Constructor for class com.mongodb.client.model.UpdateOptions
 
UpdateRequest - Class in com.mongodb.bulk
Deprecated.
UpdateRequest(BsonDocument, BsonValue, WriteRequest.Type) - Constructor for class com.mongodb.bulk.UpdateRequest
Deprecated.
Construct a new instance.
UpdateResult - Class in com.mongodb.client.result
The result of an update operation.
UpdateResult() - Constructor for class com.mongodb.client.result.UpdateResult
 
Updates - Class in com.mongodb.client.model
A factory for document updates.
UpdateUserOperation - Class in com.mongodb.operation
Deprecated.
use CommandWriteOperation directly or the mongod shell helpers.
UpdateUserOperation(MongoCredential, boolean) - Constructor for class com.mongodb.operation.UpdateUserOperation
Deprecated.
Construct a new instance.
UpdateUserOperation(MongoCredential, boolean, WriteConcern) - Constructor for class com.mongodb.operation.UpdateUserOperation
Deprecated.
Construct a new instance.
UPPER - com.mongodb.client.model.CollationCaseFirst
Uppercase first
upsert(boolean) - Method in class com.mongodb.bulk.UpdateRequest
Deprecated.
Sets whether this update will insert a new document if no documents match the filter.
upsert(boolean) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Set to true if a new document should be inserted if there are no matches to the query filter.
upsert(boolean) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Set to true if a new document should be inserted if there are no matches to the query filter.
upsert(boolean) - Method in class com.mongodb.client.model.ReplaceOptions
Set to true if a new document should be inserted if there are no matches to the query filter.
upsert(boolean) - Method in class com.mongodb.client.model.UpdateOptions
Set to true if a new document should be inserted if there are no matches to the query filter.
upsert(boolean) - Method in class com.mongodb.operation.FindAndReplaceOperation
Deprecated.
Set to true if a new document should be inserted if there are no matches to the query filter.
upsert(boolean) - Method in class com.mongodb.operation.FindAndUpdateOperation
Deprecated.
Set to true if a new document should be inserted if there are no matches to the query filter.
useCursor(Boolean) - Method in class com.mongodb.operation.AggregateOperation
Deprecated.
There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.
usePowerOf2Sizes(Boolean) - Method in class com.mongodb.client.model.CreateCollectionOptions
Deprecated.
As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB server
usePowerOf2Sizes(Boolean) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB server
UserExistsOperation - Class in com.mongodb.operation
Deprecated.
use CommandWriteOperation directly or the mongod shell helpers.
UserExistsOperation(String, String) - Constructor for class com.mongodb.operation.UserExistsOperation
Deprecated.
Construct a new instance.

V

validationAction(ValidationAction) - Method in class com.mongodb.client.model.ValidationOptions
Sets the ValidationAction that determines whether to error on invalid documents or just warn about the violations but allow invalid documents.
validationAction(ValidationAction) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the ValidationAction that determines whether to error on invalid documents or just warn about the violations but allow invalid documents.
ValidationAction - Enum in com.mongodb.client.model
Determines whether to error on invalid documents or just warn about the violations but allow invalid documents.
validationLevel(ValidationLevel) - Method in class com.mongodb.client.model.ValidationOptions
Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
validationLevel(ValidationLevel) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
ValidationLevel - Enum in com.mongodb.client.model
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
validationOptions(ValidationOptions) - Method in class com.mongodb.client.model.CreateCollectionOptions
Sets the validation options for documents being inserted or updated in a collection
ValidationOptions - Class in com.mongodb.client.model
Validation options for documents being inserted or updated in a collection
ValidationOptions() - Constructor for class com.mongodb.client.model.ValidationOptions
 
validator(BsonDocument) - Method in class com.mongodb.operation.CreateCollectionOperation
Deprecated.
Sets the validation rules for inserting or updating documents
validator(Bson) - Method in class com.mongodb.client.model.ValidationOptions
Sets the validation rules for all
valueOf(String) - Static method in enum com.mongodb.AuthenticationMechanism
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.bulk.WriteRequest.Type
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.AggregationLevel
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.BucketGranularity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.changestream.ChangeStreamLevel
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.changestream.FullDocument
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.changestream.OperationType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.CollationAlternate
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.CollationCaseFirst
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.CollationMaxVariable
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.CollationStrength
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.geojson.CoordinateReferenceSystemType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.geojson.GeoJsonObjectType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.MapReduceAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.MergeOptions.WhenMatched
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.MergeOptions.WhenNotMatched
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.ReturnDocument
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.ValidationAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.client.model.ValidationLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.connection.ClusterConnectionMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.connection.ClusterType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.connection.ServerConnectionState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.connection.ServerType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.connection.SplittablePayload.Type
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.CursorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ErrorCategory
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.event.ConnectionRemovedEvent.Reason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ExplainVerbosity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.operation.OrderBy
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ReadConcernLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.mongodb.ReadPreference
Creates a read preference from the given read preference name.
valueOf(String) - Static method in class com.mongodb.WriteConcern
Gets the WriteConcern constants by name (matching is done case insensitively).
valueOf(String, List<TagSet>) - Static method in class com.mongodb.ReadPreference
Creates a taggable read preference from the given read preference name and list of tag sets.
valueOf(String, List<TagSet>, long, TimeUnit) - Static method in class com.mongodb.ReadPreference
Creates a taggable read preference from the given read preference name, list of tag sets, and max allowable staleness of secondaries.
values() - Static method in enum com.mongodb.AuthenticationMechanism
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.bulk.WriteRequest.Type
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.AggregationLevel
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.BucketGranularity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.changestream.ChangeStreamLevel
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.changestream.FullDocument
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.changestream.OperationType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.CollationAlternate
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.CollationCaseFirst
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.CollationMaxVariable
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.CollationStrength
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.geojson.CoordinateReferenceSystemType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.geojson.GeoJsonObjectType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.MapReduceAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.MergeOptions.WhenMatched
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.MergeOptions.WhenNotMatched
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.ReturnDocument
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.ValidationAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.client.model.ValidationLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.connection.ClusterConnectionMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.connection.ClusterType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.connection.ServerConnectionState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.connection.ServerType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.connection.SplittablePayload.Type
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.CursorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ErrorCategory
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.event.ConnectionRemovedEvent.Reason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ExplainVerbosity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.operation.OrderBy
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ReadConcernLevel
Returns an array containing the constants of this enum type, in the order they are declared.
Variable<TExpression> - Class in com.mongodb.client.model
Helps define new variable for the $lookup pipeline stage
Variable(String, TExpression) - Constructor for class com.mongodb.client.model.Variable
Creates a new variable definition for use in $lookup pipeline stages
variables(List<Variable<?>>) - Method in class com.mongodb.client.model.MergeOptions
Sets the variables accessible for use in the whenMatched pipeline.
verbose(boolean) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Deprecated.
Sets whether to include the timing information in the result information.
verbose(boolean) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Deprecated.
Sets whether to include the timing information in the result information.
version(ServerVersion) - Method in class com.mongodb.connection.ServerDescription.Builder
version(Integer) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the index version number.
version(Integer) - Method in class com.mongodb.client.model.IndexOptions
Sets the index version number.

W

W1 - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement from a single member.
W2 - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement from two members.
W3 - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement from three members.
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool's wait queue is entered.
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
waitQueueExited(ConnectionPoolWaitQueueExitedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
waitQueueExited(ConnectionPoolWaitQueueExitedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pools wait queue is exited.
waitQueueExited(ConnectionPoolWaitQueueExitedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
waitQueueExited(ConnectionPoolWaitQueueExitedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
warn(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the WARN level.
warn(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the WARN level with an accompanying message.
WARN - com.mongodb.client.model.ValidationAction
Documents do not have to pass validation.
wasAcknowledged() - Method in class com.mongodb.bulk.BulkWriteResult
Returns true if the write was acknowledged.
wasAcknowledged() - Method in class com.mongodb.client.result.DeleteResult
Returns true if the write was acknowledged.
wasAcknowledged() - Method in class com.mongodb.client.result.UpdateResult
Returns true if the write was acknowledged.
wasAcknowledged() - Method in class com.mongodb.WriteConcernResult
Returns true if the write was acknowledged.
weights(BsonDocument) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the weighting object for use with a text index.
weights(Bson) - Method in class com.mongodb.client.model.IndexOptions
Sets the weighting object for use with a text index.
whenMatched(MergeOptions.WhenMatched) - Method in class com.mongodb.client.model.MergeOptions
Sets the behavior of $merge if a result document and an existing document in the collection have the same value for the specified on field(s).
whenMatchedPipeline(List<Bson>) - Method in class com.mongodb.client.model.MergeOptions
Sets aggregation pipeline to update the document in the collection.
whenNotMatched(MergeOptions.WhenNotMatched) - Method in class com.mongodb.client.model.MergeOptions
Sets the behavior of $merge if a result document does not match an existing document in the out collection.
where(String) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents for which the given expression is true.
wildcardProjection(BsonDocument) - Method in class com.mongodb.bulk.IndexRequest
Deprecated.
Sets the wildcard projection of a wildcard index
wildcardProjection(Bson) - Method in class com.mongodb.client.model.IndexOptions
Sets the wildcard projection of a wildcard index
withConnectionId(ConnectionId) - Method in class com.mongodb.connection.ConnectionDescription
Creates a new connection description with the set connection id
withFsync(boolean) - Method in class com.mongodb.WriteConcern
withJ(boolean) - Method in class com.mongodb.WriteConcern
withJournal(Boolean) - Method in class com.mongodb.WriteConcern
Constructs a new WriteConcern from the current one and the specified journal value
withMechanism(AuthenticationMechanism) - Method in class com.mongodb.MongoCredential
Creates a new MongoCredential with the set mechanism.
withMechanismProperty(String, T) - Method in class com.mongodb.MongoCredential
Creates a new MongoCredential as a copy of this instance, with the specified mechanism property added.
withProperty(String, T) - Method in class com.mongodb.MongoCompressor
Creates a new compressor from this compressor with the given property added to it.
withServerValue(int) - Method in class com.mongodb.connection.ConnectionId
Creates a new connectionId with the set server value
withW(int) - Method in class com.mongodb.WriteConcern
Constructs a new WriteConcern from the current one and the specified integer-based value for w
withW(String) - Method in class com.mongodb.WriteConcern
Constructs a new WriteConcern from the current one and the specified tag-set based value for w
withWTimeout(long, TimeUnit) - Method in class com.mongodb.WriteConcern
Constructs a new WriteConcern from the current one and the specified wTimeout in the given time unit.
WritableServerSelector - Class in com.mongodb.selector
Deprecated.
WritableServerSelector() - Constructor for class com.mongodb.selector.WritableServerSelector
Deprecated.
 
write(int, int) - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
write(List<ByteBuf>) - Method in interface com.mongodb.connection.Stream
Write each buffer in the list to the stream in order, blocking until all are completely written.
writeAsync(List<ByteBuf>, AsyncCompletionHandler<Void>) - Method in interface com.mongodb.connection.Stream
Write each buffer in the list to the stream in order, asynchronously.
WriteBinding - Interface in com.mongodb.binding
Deprecated.
writeByte(int) - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
writeBytes(byte[], int, int) - Method in class com.mongodb.connection.ByteBufferBsonOutput
Deprecated.
 
writeConcern(WriteConcern) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the write concern.
writeConcern(WriteConcern) - Method in class com.mongodb.TransactionOptions.Builder
Sets the write concern.
WriteConcern - Class in com.mongodb
Controls the acknowledgment of write operations with various options.
WriteConcern() - Constructor for class com.mongodb.WriteConcern
Deprecated.
WriteConcern(boolean) - Constructor for class com.mongodb.WriteConcern
WriteConcern(int) - Constructor for class com.mongodb.WriteConcern
Construct an instance with the given integer-based value for w.
WriteConcern(int, int) - Constructor for class com.mongodb.WriteConcern
Constructs an instance with the given integer-based value for w and the given value for wTimeoutMS.
WriteConcern(int, int, boolean) - Constructor for class com.mongodb.WriteConcern
WriteConcern(int, int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
WriteConcern(String) - Constructor for class com.mongodb.WriteConcern
Construct an instance with the given tag set-based value for w.
WriteConcern(String, int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
WriteConcern.Majority - Class in com.mongodb
WriteConcernError - Class in com.mongodb.bulk
An error representing a failure by the server to apply the requested write concern to the bulk operation.
WriteConcernError(int, String, String, BsonDocument) - Constructor for class com.mongodb.bulk.WriteConcernError
Constructs a new instance.
WriteConcernError(int, String, BsonDocument) - Constructor for class com.mongodb.bulk.WriteConcernError
Deprecated. 
WriteConcernException - Exception in com.mongodb
An exception representing an error reported due to a write failure.
WriteConcernException(BsonDocument, ServerAddress, WriteConcernResult) - Constructor for exception com.mongodb.WriteConcernException
Construct a new instance.
WriteConcernResult - Class in com.mongodb
The result of a successful write operation.
WriteConcernResult() - Constructor for class com.mongodb.WriteConcernResult
 
WriteError - Class in com.mongodb
Represents the details of a write error , e.g.
WriteError(int, String, BsonDocument) - Constructor for class com.mongodb.WriteError
Constructs a new instance.
WriteError(WriteError) - Constructor for class com.mongodb.WriteError
Construct an instance that is a shallow copy of the given instance.
WriteModel<T> - Class in com.mongodb.client.model
A base class for models that can be used in a bulk write operations.
WriteOperation<T> - Interface in com.mongodb.operation
Deprecated.
WriteRequest - Class in com.mongodb.bulk
Deprecated.
WriteRequest.Type - Enum in com.mongodb.bulk
Deprecated.
The type of write.
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes All Packages