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

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
acknowledged(int, int, int, Integer, List<BulkWriteUpsert>, List<BulkWriteInsert>) - 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
acknowledged(WriteRequest.Type, int, Integer, List<BulkWriteUpsert>, List<BulkWriteInsert>) - 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
acknowledged(Map<Integer, BsonValue>) - Static method in class com.mongodb.client.result.InsertManyResult
Create an acknowledged InsertManyResult
acknowledged(BsonValue) - Static method in class com.mongodb.client.result.InsertOneResult
Create an acknowledged InsertOneResult
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.
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
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.
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
advanceClusterTime(BsonDocument) - Method in interface com.mongodb.session.ClientSession
 
advanceOperationTime(BsonTimestamp) - Method in interface com.mongodb.session.ClientSession
Set the operation time of the last operation executed in this session.
advanceTransactionNumber() - Method in interface com.mongodb.session.ServerSession
Return the next available transaction number.
AFTER - com.mongodb.client.model.ReturnDocument
Indicates to return the document after the update, replacement, or insert occurred.
Aggregates - Class in com.mongodb.client.model
Builders for aggregation pipeline stages.
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.
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
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.
Assertions - Class in com.mongodb.assertions
Design by contract assertions.
AsyncCompletionHandler<T> - Interface in com.mongodb.connection
Completion handler for asynchronous I/O.
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.Builder - Class in com.mongodb.connection
A builder for an instance of AsynchronousSocketChannelStreamFactoryFactory.
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.
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.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
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.
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.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.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
 
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.
BulkWriteInsert - Class in com.mongodb.bulk
Represents an item in the bulk write that was inserted.
BulkWriteInsert(int, BsonValue) - Constructor for class com.mongodb.bulk.BulkWriteInsert
Construct an 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.

C

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.
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, BsonInt64, BsonDocument) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
Creates 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.
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.connection.Stream
Closes the connection.
close() - Method in class com.mongodb.connection.TlsChannelStreamFactoryFactory
 
close() - Method in interface com.mongodb.session.ClientSession
 
clusterClosed(ClusterClosedEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is closed.
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 interface com.mongodb.event.ClusterListener
Invoked when a cluster description changes.
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.
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
Deprecated.
ClusterListenerAdapter() - Constructor for class com.mongodb.event.ClusterListenerAdapter
Deprecated.
 
clusterOpening(ClusterOpeningEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is opened.
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.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.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 - 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.
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.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.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_COLLECTION_NAME - Static variable in class com.mongodb.MongoNamespace
 
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.
commandFailed(CommandFailedEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command failure events
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
commandStarted(CommandStartedEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command started events.
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 interface com.mongodb.event.CommandListener
Listener for command completed events
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.
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_ERROR - com.mongodb.event.ConnectionCheckOutFailedEvent.Reason
The connection check out attempt experienced an error while setting up a new connection
connectionAdded(ConnectionAddedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Deprecated.
Prefer ConnectionPoolListener.connectionCreated(com.mongodb.event.ConnectionCreatedEvent) Implementations should NOT implement this method at all, instead relying on the default no-op implementation. If an application implements both this method and connectionCreated, the application risks double-counting events.
ConnectionAddedEvent - Class in com.mongodb.event
Deprecated.
ConnectionAddedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionAddedEvent
Deprecated.
Construct an instance
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.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 interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked out of a pool.
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
connectionCheckOutFailed(ConnectionCheckOutFailedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when an attempt to check out a connection from a pool fails.
ConnectionCheckOutFailedEvent - Class in com.mongodb.event
An event for when checking out a connection fails.
ConnectionCheckOutFailedEvent(ServerId, ConnectionCheckOutFailedEvent.Reason) - Constructor for class com.mongodb.event.ConnectionCheckOutFailedEvent
Construct an instance
ConnectionCheckOutFailedEvent.Reason - Enum in com.mongodb.event
An enumeration of the reasons checking out a connection failed
connectionCheckOutStarted(ConnectionCheckOutStartedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when attempting to check out a connection from a pool.
ConnectionCheckOutStartedEvent - Class in com.mongodb.event
An event for when the driver starts to checkout out a connection.
ConnectionCheckOutStartedEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionCheckOutStartedEvent
Construct an instance
connectionClosed(ConnectionClosedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is removed from a pool.
connectionClosed(ConnectionClosedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionClosedEvent - Class in com.mongodb.event
An event for when a connection pool closes a connection.
ConnectionClosedEvent(ConnectionId, ConnectionClosedEvent.Reason) - Constructor for class com.mongodb.event.ConnectionClosedEvent
Construct an instance
ConnectionClosedEvent.Reason - Enum in com.mongodb.event
An enumeration of the reasons a connection could be closed
connectionCreated(ConnectionCreatedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is created.
connectionCreated(ConnectionCreatedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionCreatedEvent - Class in com.mongodb.event
An event for creating a connection in the pool.
ConnectionCreatedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionCreatedEvent
Construct an instance
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(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.
connectionPoolCleared(ConnectionPoolClearedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is cleared.
ConnectionPoolClearedEvent - Class in com.mongodb.event
An event signifying when a connection pool is cleared.
ConnectionPoolClearedEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolClearedEvent
Constructs a new instance of the event.
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is closed.
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.
connectionPoolCreated(ConnectionPoolCreatedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is created.
connectionPoolCreated(ConnectionPoolCreatedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionPoolCreatedEvent - Class in com.mongodb.event
An event signifying that a connection pool was created.
ConnectionPoolCreatedEvent(ServerId, ConnectionPoolSettings) - Constructor for class com.mongodb.event.ConnectionPoolCreatedEvent
Constructs a new instance of the event.
ConnectionPoolListener - Interface in com.mongodb.event
A listener for connection pool-related events.
ConnectionPoolListenerAdapter - Class in com.mongodb.event
Deprecated.
ConnectionPoolListenerAdapter() - Constructor for class com.mongodb.event.ConnectionPoolListenerAdapter
Deprecated.
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Deprecated.
Prefer ConnectionPoolListener.connectionPoolCreated(com.mongodb.event.ConnectionPoolCreatedEvent) Implementations should NOT implement this method at all, instead relying on the default no-op implementation. If an application implements both this method and connectionPoolCreated, the application risks double-counting events.
ConnectionPoolOpenedEvent - Class in com.mongodb.event
Deprecated.
ConnectionPoolOpenedEvent(ServerId, ConnectionPoolSettings) - Constructor for class com.mongodb.event.ConnectionPoolOpenedEvent
Deprecated.
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.
connectionReady(ConnectionReadyEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is ready for use.
ConnectionReadyEvent - Class in com.mongodb.event
An event for when a connection in the pool has finished its setup and is ready for use.
ConnectionReadyEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionReadyEvent
Construct an instance
connectionRemoved(ConnectionRemovedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Deprecated.
Prefer ConnectionPoolListener.connectionClosed(com.mongodb.event.ConnectionClosedEvent) Implementations should NOT implement this method at all, instead relying on the default no-op implementation. If an application implements both this method and connectionClosed, the application risks double-counting events.
ConnectionRemovedEvent - Class in com.mongodb.event
Deprecated.
ConnectionRemovedEvent(ConnectionId, ConnectionRemovedEvent.Reason) - Constructor for class com.mongodb.event.ConnectionRemovedEvent
Deprecated.
Constructs an instance.
ConnectionRemovedEvent.Reason - Enum in com.mongodb.event
Deprecated.
An enumeration of the reasons a connection could be closed
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
CountOptions - Class in com.mongodb.client.model
The options for a count operation.
CountOptions() - Constructor for class com.mongodb.client.model.CountOptions
 
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
createCodec(Class<TFullDocument>, CodecRegistry) - Static method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Creates the codec for the specific ChangeStreamOutput type
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.
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
 
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.
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.
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.
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 - Enum in com.mongodb
An enumeration of cursor types.

D

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
defaultHost() - Static method in class com.mongodb.ServerAddress
Returns the default database host: "127.0.0.1"
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 - com.mongodb.client.model.changestream.OperationType
The delete operation type
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.
DeleteOptions - Class in com.mongodb.client.model
The options to apply when deleting documents.
DeleteOptions() - Constructor for class com.mongodb.client.model.DeleteOptions
 
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
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.
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.
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
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.
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.BulkWriteInsert
 
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.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.ConnectionClosedEvent.Reason
The connection experienced an error, making it no longer valid
ERROR - com.mongodb.event.ConnectionRemovedEvent.Reason
Deprecated.
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.
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.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.
Filters - Class in com.mongodb.client.model
A factory for query filters.
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
 
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.
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
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
 
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".
getAlternate() - Method in class com.mongodb.client.model.Collation
Returns the collation alternate
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.client.model.FindOneAndUpdateOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.client.model.UpdateOptions
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
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.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
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.
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.
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.session.ClientSession
 
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.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.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
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.
getCommand() - Method in class com.mongodb.event.CommandStartedEvent
Gets the command document.
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.
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.
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
Deprecated.
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
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionCreatedEvent
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionReadyEvent
Gets the connection id
getConnectionId() - Method in class com.mongodb.event.ConnectionRemovedEvent
Deprecated.
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.
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 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.
getCursorId() - Method in exception com.mongodb.MongoCursorNotFoundException
Get the cursor id that wasn't found.
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.
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.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.
getDepthField() - Method in class com.mongodb.client.model.GraphLookupOptions
 
getDescription() - Method in class com.mongodb.connection.ClusterId
Gets the user defined description of the MongoClient.
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.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
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.
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 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.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.
getExtraOptions() - Method in class com.mongodb.AutoEncryptionSettings
Gets the extra options that control the behavior of auto-encryption components.
getFilename() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The filename
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.
getFullDocument() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the fullDocument
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.
getHintString() - Method in class com.mongodb.client.model.CountOptions
Gets the hint string to apply.
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.BulkWriteInsert
Gets the id of the inserted item.
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.BulkWriteInsert
Gets the index of the inserted item based on the order it was added to the bulk write operation.
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.
getIndexOptionDefaults() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the index option defaults for the collection.
getInsertedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents inserted by the write operation.
getInsertedId() - Method in class com.mongodb.client.result.InsertOneResult
If the _id of the inserted document if available, otherwise null
getInsertedIds() - Method in class com.mongodb.client.result.InsertManyResult
An unmodifiable map of the index of the inserted document to the id of the inserted document.
getInserts() - Method in class com.mongodb.bulk.BulkWriteResult
Gets an unmodifiable list of inserted items, or the empty list if there were none.
getIntRepresentation() - Method in enum com.mongodb.client.model.CollationStrength
The integer representation of the collation strength.
getJournal() - Method in class com.mongodb.WriteConcern
Gets the journal property.
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.
getKeyId() - Method in class com.mongodb.client.model.vault.EncryptOptions
Gets the key identifier.
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.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.
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.
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.client.model.IndexOptions
Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
getMaxBatchCount() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max batch count for bulk write operations.
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.
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.
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.
getMaxVariable() - Method in class com.mongodb.client.model.Collation
Returns the maxVariable
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.
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.client.model.IndexOptions
Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
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.
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.
getNamespace() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the namespace, derived from the "ns" field in a change stream document.
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.
getNormalization() - Method in class com.mongodb.client.model.Collation
Returns the normalization value
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.session.ClientSession
Gets the operation time of the last operation executed in this session.
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.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
 
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.
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
 
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.
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.
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.
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.TransactionOptions
Gets the read concern.
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.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.ConnectionClosedEvent
Get the reason the connection was removed.
getReason() - Method in class com.mongodb.event.ConnectionRemovedEvent
Deprecated.
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.
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.
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
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.
getRestrictSearchWithMatch() - Method in class com.mongodb.client.model.GraphLookupOptions
 
getResumeToken() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the resumeToken
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.
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.
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.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.
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.
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.ConnectionCheckOutFailedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionCheckOutStartedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionPoolClearedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionPoolClosedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionPoolCreatedEvent
Gets the server id
getServerId() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
Deprecated.
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.
getServerMonitorListeners() - Method in class com.mongodb.connection.ServerSettings
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.
getSetName() - Method in class com.mongodb.connection.ServerDescription
Gets the name of the replica set
getSettings() - Method in class com.mongodb.event.ConnectionPoolCreatedEvent
Gets the connection pool settings.
getSettings() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
Deprecated.
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 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.
getSkip() - Method in class com.mongodb.client.model.CountOptions
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.PushOptions
Gets the sort direction for sorting array elements that are not documents.
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.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.
getState() - Method in class com.mongodb.connection.ServerDescription
Gets the current state of the connection to the server.
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.
getStreamFactoryFactory() - Method in class com.mongodb.MongoClientSettings
Gets the factory to use to create a StreamFactory.
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.client.model.IndexOptions
The text index version number.
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.
getTxnNumber() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Returns the transaction number
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.
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.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.
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.
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.
getUsername() - Method in class com.mongodb.ConnectionString
Gets the username
getUserName() - Method in class com.mongodb.MongoCredential
Gets the user name
getUuidRepresentation() - Method in class com.mongodb.ConnectionString
Gets the UUID representation.
getUuidRepresentation() - Method in class com.mongodb.MongoClientSettings
Gets the UUID representation to use when encoding instances of UUID and when decoding BSON binary values with subtype of 3.
getValidationAction() - Method in class com.mongodb.client.model.ValidationOptions
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.
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.
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.client.model.IndexOptions
Gets the index version number.
getVersionList() - Method in class com.mongodb.connection.ServerVersion
Gets the version list.
getW() - Method in class com.mongodb.WriteConcern
Gets the w value as an integer.
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.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.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.
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).
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(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
 
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, Document) - Constructor for class com.mongodb.client.gridfs.model.GridFSFile
Creates a new GridFSFile
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
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

hasErrorLabel(String) - Method in exception com.mongodb.MongoException
Return true if the exception is labelled with the given error label, and false otherwise.
hashCode() - Method in class com.mongodb.BasicDBObject
 
hashCode() - Method in class com.mongodb.bulk.BulkWriteError
 
hashCode() - Method in class com.mongodb.bulk.BulkWriteInsert
 
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.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.
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.
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(Bson) - Method in class com.mongodb.client.model.CountOptions
Sets the hint to apply.
hintString(String) - Method in class com.mongodb.client.model.CountOptions
Sets the hint to apply.
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.
IDLE - com.mongodb.event.ConnectionClosedEvent.Reason
The connection became stale by being idle for too long
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 - 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
 
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.
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.
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
 
InsertManyResult - Class in com.mongodb.client.result
The result of an insert many operation.
InsertManyResult() - Constructor for class com.mongodb.client.result.InsertManyResult
 
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
 
InsertOneResult - Class in com.mongodb.client.result
The result of an insert one operation.
InsertOneResult() - Constructor for class com.mongodb.client.result.InsertOneResult
 
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.
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.
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
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.
isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
Returns true if no key/value was inserted into the top level document.
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?
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.
isMarkedDirty() - Method in interface com.mongodb.session.ServerSession
Whether the server session is marked dirty.
isOk() - Method in class com.mongodb.connection.ServerDescription
The isOK() result from requesting this information from the server
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.
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.
isReplicaSetMember() - Method in class com.mongodb.connection.ServerDescription
Gets whether this server is a replica set member.
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.
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.
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
 
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.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.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.
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
 
JOURNALED - Static variable in class com.mongodb.WriteConcern
Write operations wait for the server to group commit to the journal file on disk.
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.
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.
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
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.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
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.
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
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 - 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.
MapReduceAction - Enum in com.mongodb.client.model
The map reduce to collection actions.
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.
markDirty() - Method in interface com.mongodb.session.ServerSession
Mark the server session as dirty.
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.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_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
Deprecated.
The connection became stale by being idle for too long
MAX_LIFE_TIME_EXCEEDED - com.mongodb.event.ConnectionRemovedEvent.Reason
Deprecated.
The connection became stale by being open for too long
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.
maxDocumentSize(int) - Method in class com.mongodb.connection.ServerDescription.Builder
The maximum permitted size of a BSON object in bytes for this mongod process.
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.
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.
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.
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.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_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.
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.
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_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(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(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.
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_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.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
 
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.Builder - Class in com.mongodb.connection.netty
A builder for an instance of NettyStreamFactoryFactory.
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.
NON_IGNORABLE - com.mongodb.client.model.CollationAlternate
Non-ignorable
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.
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.
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.
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
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.
OperationType - Enum in com.mongodb.client.model.changestream
The $changeStream operation type.
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.
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

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.
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.
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.ConnectionCheckOutFailedEvent.Reason
The pool was previously closed and cannot provide new connections
POOL_CLOSED - com.mongodb.event.ConnectionClosedEvent.Reason
The pool was closed, making the connection no longer valid
POOL_CLOSED - com.mongodb.event.ConnectionRemovedEvent.Reason
Deprecated.
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
 
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.
project(Bson) - Static method in class com.mongodb.client.model.Aggregates
Creates a $project pipeline stage for the specified projection
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.
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_PLANNER - com.mongodb.ExplainVerbosity
Runs the query planner and chooses the winning plan, but does not actually execute it.

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.
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.
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.
readTimeout(int, TimeUnit) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the socket read timeout.
receiveBufferSize(int) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the receive buffer size.
REDUCE - com.mongodb.client.model.MapReduceAction
Merge the new result with the existing result if the output collection already exists.
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.
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
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.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.
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.
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_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.
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
retryReads(boolean) - Method in class com.mongodb.MongoClientSettings.Builder
Sets whether reads should be retried if they fail 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
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

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
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 interface com.mongodb.selector.ServerSelector
Select a list of server descriptions from the given cluster description according to some criteria.
selectFreshServers(ClusterDescription, List<ServerDescription>) - Method in class com.mongodb.TaggableReadPreference
 
sendBufferSize(int) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the send buffer size.
SERIES_125 - com.mongodb.client.model.BucketGranularity
 
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
serverClosed(ServerClosedEvent) - Method in interface com.mongodb.event.ServerListener
Listener for server closed events.
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 interface com.mongodb.event.ServerListener
Listener for server description changed events.
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.
serverHearbeatStarted(ServerHeartbeatStartedEvent) - Method in interface com.mongodb.event.ServerMonitorListener
Listener for server heartbeat started events.
serverHeartbeatFailed(ServerHeartbeatFailedEvent) - Method in interface com.mongodb.event.ServerMonitorListener
Listener for server heartbeat failed events.
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 interface com.mongodb.event.ServerMonitorListener
Listener for server heartbeat succeeded events.
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
Deprecated.
ServerListenerAdapter() - Constructor for class com.mongodb.event.ServerListenerAdapter
Deprecated.
 
ServerMonitorListener - Interface in com.mongodb.event
A listener for server monitor-related events
ServerMonitorListenerAdapter - Class in com.mongodb.event
Deprecated.
ServerMonitorListenerAdapter() - Constructor for class com.mongodb.event.ServerMonitorListenerAdapter
Deprecated.
 
serverOpening(ServerOpeningEvent) - Method in interface com.mongodb.event.ServerListener
Listener for server opening events.
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.
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.
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.
setRecoveryToken(BsonDocument) - Method in interface com.mongodb.session.ClientSession
Set the recovery token.
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 - com.mongodb.connection.ClusterType
A sharded cluster, connected via one or more mongos servers.
SHIFTED - com.mongodb.client.model.CollationAlternate
Shifted
SINGLE - com.mongodb.connection.ClusterConnectionMode
Connect directly to a server, regardless of the type of cluster it is a part of.
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.
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.
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 - 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(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.
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.client.model.IndexOptions
Should the index only references documents with the specified field
sphereVersion(Integer) - Method in class com.mongodb.client.model.IndexOptions
Sets the 2dsphere index version number.
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.ConnectionClosedEvent.Reason
The connection is no longer valid because the pool has been cleared
STALE - com.mongodb.event.ConnectionRemovedEvent.Reason
Deprecated.
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.
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(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(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.
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.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.
TIMEOUT - com.mongodb.event.ConnectionCheckOutFailedEvent.Reason
The connection check out attempt exceeded the specific timeout
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
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.RELAXED 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.BulkWriteInsert
 
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.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
Deprecated.
 
toString() - Method in class com.mongodb.event.ConnectionCheckedInEvent
 
toString() - Method in class com.mongodb.event.ConnectionCheckedOutEvent
 
toString() - Method in class com.mongodb.event.ConnectionCheckOutFailedEvent
 
toString() - Method in class com.mongodb.event.ConnectionCheckOutStartedEvent
 
toString() - Method in class com.mongodb.event.ConnectionClosedEvent
 
toString() - Method in class com.mongodb.event.ConnectionCreatedEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolClearedEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolClosedEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolCreatedEvent
 
toString() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
Deprecated.
 
toString() - Method in class com.mongodb.event.ConnectionReadyEvent
 
toString() - Method in class com.mongodb.event.ConnectionRemovedEvent
Deprecated.
 
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.selector.CompositeServerSelector
 
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.
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.
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.InsertManyResult
Create an unacknowledged InsertManyResult
unacknowledged() - Static method in class com.mongodb.client.result.InsertOneResult
Create an unacknowledged InsertOneResult
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.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.ConnectionCheckOutFailedEvent.Reason
Reason unknown
UNKNOWN - com.mongodb.event.ConnectionRemovedEvent.Reason
Deprecated.
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.
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 - com.mongodb.client.model.changestream.OperationType
The update operation type
UPDATE_LOOKUP - com.mongodb.client.model.changestream.FullDocument
Lookup
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.
UpdateOptions - Class in com.mongodb.client.model
The options to apply when updating documents.
UpdateOptions() - Constructor for class com.mongodb.client.model.UpdateOptions
 
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.
UPPER - com.mongodb.client.model.CollationCaseFirst
Uppercase first
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.
uuidRepresentation(UuidRepresentation) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the UUID representation to use when encoding instances of UUID and when decoding BSON binary values with subtype of 3.

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 - 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 - 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(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.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.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.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.ConnectionCheckOutFailedEvent.Reason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.event.ConnectionClosedEvent.Reason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.event.ConnectionRemovedEvent.Reason
Deprecated.
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.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.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.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.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.ConnectionCheckOutFailedEvent.Reason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.event.ConnectionClosedEvent.Reason
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
Deprecated.
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.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.
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.
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.InsertManyResult
Returns true if the write was acknowledged.
wasAcknowledged() - Method in class com.mongodb.client.result.InsertOneResult
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(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(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
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
withUuidRepresentation(UuidRepresentation) - Method in class com.mongodb.DBObjectCodec
 
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.
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.
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(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(String) - Constructor for class com.mongodb.WriteConcern
Construct an instance with the given tag set-based value for w.
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.
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.
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