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

A

abort() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
Aborts the upload and deletes any data.
abort(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSUploadStream
Aborts the upload and deletes any data.
abortPipe() - Method in class org.bson.AbstractBsonWriter
Return true if the current execution of the pipe method should be aborted.
abortPipe() - Method in class org.bson.json.JsonWriter
 
abortTransaction() - Method in interface com.mongodb.client.ClientSession
Abort a transaction in the context of this session.
abortTransaction(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.ClientSession
Abort a transaction in the context of this session.
AbortTransactionOperation - Class in com.mongodb.operation
An operation that aborts a transaction.
AbortTransactionOperation(WriteConcern) - Constructor for class com.mongodb.operation.AbortTransactionOperation
Construct an instance.
AbstractBsonReader - Class in org.bson
Abstract base class for BsonReader implementations.
AbstractBsonReader() - Constructor for class org.bson.AbstractBsonReader
Initializes a new instance of the BsonReader class.
AbstractBsonReader.Context - Class in org.bson
The context for the reader.
AbstractBsonReader.Mark - Class in org.bson
 
AbstractBsonReader.State - Enum in org.bson
The state of a reader.
AbstractBsonWriter - Class in org.bson
Represents a BSON writer for some external format (see subclasses).
AbstractBsonWriter(BsonWriterSettings) - Constructor for class org.bson.AbstractBsonWriter
Initializes a new instance of the BsonWriter class.
AbstractBsonWriter(BsonWriterSettings, FieldNameValidator) - Constructor for class org.bson.AbstractBsonWriter
Initializes a new instance of the BsonWriter class.
AbstractBsonWriter.Context - Class in org.bson
The context for the writer.
AbstractBsonWriter.Mark - Class in org.bson
Capture the current state of this writer - its AbstractBsonWriter.Context, AbstractBsonWriter.State, field name and depth.
AbstractBsonWriter.State - Enum in org.bson
The state of a writer.
Accumulators - Class in com.mongodb.client.model
Builders for accumulators used in the group pipeline stage of an aggregation pipeline.
acknowledged(int, boolean, BsonValue) - Static method in class com.mongodb.WriteConcernResult
Create an acknowledged WriteConcernResult
acknowledged(int, int, int, Integer, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
acknowledged(long) - Static method in class com.mongodb.client.result.DeleteResult
Create an acknowledged DeleteResult
acknowledged(long, Long, BsonValue) - Static method in class com.mongodb.client.result.UpdateResult
Create an acknowledged UpdateResult
acknowledged(WriteRequest.Type, int, Integer, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
acknowledged(WriteRequest.Type, int, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
ACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement, using the default write concern configured on the server.
action(MapReduceAction) - Method in interface com.mongodb.async.client.MapReduceIterable
Specify the MapReduceAction to be used when writing to a collection.
action(MapReduceAction) - Method in interface com.mongodb.client.MapReduceIterable
Specify the MapReduceAction to be used when writing to a collection.
action(String) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Sets the output action one of: "replace", "merge", "reduce"
add(int, Object) - Method in class org.bson.LazyBSONList
 
add(int, BsonValue) - Method in class org.bson.BsonArray
 
add(int, BsonValue) - Method in class org.bson.RawBsonArray
 
add(ConnectionPoolListener) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
Adds the given connection pool listener to the list of listeners to invoke on connection pool events.
add(Object) - Method in class org.bson.LazyBSONList
 
add(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Same as append
add(BsonValue) - Method in class org.bson.BsonArray
 
add(BsonValue) - Method in class org.bson.RawBsonArray
 
addAll(int, Collection) - Method in class org.bson.LazyBSONList
 
addAll(int, Collection<? extends BsonValue>) - Method in class org.bson.BsonArray
 
addAll(int, Collection<? extends BsonValue>) - Method in class org.bson.RawBsonArray
 
addAll(Collection) - Method in class org.bson.LazyBSONList
 
addAll(Collection<? extends BsonValue>) - Method in class org.bson.BsonArray
 
addAll(Collection<? extends BsonValue>) - Method in class org.bson.RawBsonArray
 
addClusterListener(ClusterListener) - Method in class com.mongodb.connection.ClusterSettings.Builder
Adds a cluster listener.
addClusterListener(ClusterListener) - Method in class com.mongodb.MongoClientOptions.Builder
Adds the given cluster listener.
addCommandListener(CommandListener) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Deprecated.
Adds the given command listener.
addCommandListener(CommandListener) - Method in class com.mongodb.embedded.client.MongoClientSettings.Builder
Adds the given command listener.
addCommandListener(CommandListener) - Method in class com.mongodb.MongoClientOptions.Builder
Adds the given command 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.
addConnectionPoolListener(ConnectionPoolListener) - Method in class com.mongodb.MongoClientOptions.Builder
Adds the given connection pool listener.
addDecodingHook(Class<?>, Transformer) - Static method in class org.bson.BSON
Registers a Transformer to use when decoding a specific class from BSON.
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
addEncodingHook(Class<?>, Transformer) - Static method in class org.bson.BSON
Registers a Transformer to use to encode a specific class into BSON.
addErrorResult(MongoBulkWriteException, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Add an error result
addErrorResult(List<BulkWriteError>, WriteConcernError, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Add a list of error results and a write concern error
addFields(Field<?>...) - Static method in class com.mongodb.client.model.Aggregates
Creates an $addFields pipeline stage
addFields(List<Field<?>>) - Static method in class com.mongodb.client.model.Aggregates
Creates an $addFields pipeline stage
addLabel(String) - Method in exception com.mongodb.MongoException
Adds the given error label to the exception.
addOption(int) - Method in class com.mongodb.DB
Adds the given flag to the default query options.
addOption(int) - Method in class com.mongodb.DBCollection
Adds the given flag to the default query options.
addOption(int) - Method in class com.mongodb.DBCursor
Adds a query option.
addOption(int) - Method in class com.mongodb.Mongo
Deprecated.
Add options instead on instances of DBCursor
address(ServerAddress) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the address of the server.
addResult(BulkWriteResult, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Add a result
addServerListener(ServerListener) - Method in class com.mongodb.connection.ServerSettings.Builder
Add a server listener.
addServerListener(ServerListener) - Method in class com.mongodb.MongoClientOptions.Builder
Adds the given server listener.
addServerMonitorListener(ServerMonitorListener) - Method in class com.mongodb.connection.ServerSettings.Builder
Adds a server monitor listener.
addServerMonitorListener(ServerMonitorListener) - Method in class com.mongodb.MongoClientOptions.Builder
Adds the given server monitor listener.
addSpecial(String, Object) - Method in class com.mongodb.DBCursor
Adds a special operator like $comment or $returnKey.
addToSet(String, TExpression) - Static method in class com.mongodb.client.model.Accumulators
Gets a field name for a $group operation representing all unique values that results from applying the given expression to each document in a group of documents that share the same group by key.
addToSet(String, TItem) - Static method in class com.mongodb.client.model.Updates
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
addTxnNumberToCommand(ServerDescription, ConnectionDescription, BsonDocument, SessionContext) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
 
addUser(String, char[]) - Method in class com.mongodb.DB
Deprecated.
Use DB.command to call either the createUser or updateUser command
addUser(String, char[], boolean) - Method in class com.mongodb.DB
Deprecated.
Use DB.command to call either the createUser or updateUser command
addWriteConcernErrorResult(WriteConcernError) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Add a write concern error result
addWriteConcernToCommand(ConnectionDescription, BsonDocument, SessionContext) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
 
addWriteErrorResult(BulkWriteError, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Add a write error result
advanceClusterTime(BsonDocument) - Method in interface com.mongodb.session.ClientSession
 
advanceClusterTime(BsonDocument) - Method in interface com.mongodb.session.SessionContext
Advance the cluster time.
advanceOperationTime(BsonTimestamp) - Method in interface com.mongodb.session.ClientSession
Set the operation time of the last operation executed in this session.
advanceOperationTime(BsonTimestamp) - Method in interface com.mongodb.session.SessionContext
Advance the operation time.
advanceTransactionNumber() - Method in interface com.mongodb.session.ServerSession
Return the next available transaction number.
advanceTransactionNumber() - Method in interface com.mongodb.session.SessionContext
Advance the transaction number.
AFTER - com.mongodb.client.model.ReturnDocument
Indicates to return the document after the update, replacement, or insert occurred.
aggregate(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.async.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(ClientSession, List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(ClientSession, List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(DBObject, DBObject...) - Method in class com.mongodb.DBCollection
aggregate(List<? extends DBObject>) - Method in class com.mongodb.DBCollection
aggregate(List<? extends DBObject>, AggregationOptions) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
aggregate(List<? extends DBObject>, AggregationOptions, ReadPreference) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
aggregate(List<? extends DBObject>, ReadPreference) - Method in class com.mongodb.DBCollection
aggregate(List<? extends Bson>) - Method in interface com.mongodb.async.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(List<? extends Bson>) - Method in interface com.mongodb.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
aggregate(List<? extends Bson>, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Aggregates documents according to the specified aggregation pipeline.
AggregateIterable<TResult> - Interface in com.mongodb.async.client
Iterable for aggregate.
AggregateIterable<TResult> - Interface in com.mongodb.client
Iterable for aggregate.
AggregateOperation<T> - Class in com.mongodb.operation
An operation that executes an aggregation query.
AggregateOperation(MongoNamespace, List<BsonDocument>, Decoder<T>) - Constructor for class com.mongodb.operation.AggregateOperation
Construct a new instance.
Aggregates - Class in com.mongodb.client.model
Builders for aggregation pipeline stages.
AggregateToCollectionOperation - Class in com.mongodb.operation
An operation that executes an aggregation that writes its results to a collection (which is what makes this a write operation rather than a read operation).
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
AggregateToCollectionOperation(MongoNamespace, List<BsonDocument>, WriteConcern) - Constructor for class com.mongodb.operation.AggregateToCollectionOperation
Construct a new instance.
AggregationOptions - Class in com.mongodb
The options to apply to an aggregate operation.
AggregationOptions.Builder - Class in com.mongodb
Builder for creating AggregationOptions.
AggregationOptions.OutputMode - Enum in com.mongodb
Deprecated.
There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.
AggregationOutput - Class in com.mongodb
Deprecated.
Replace with use of aggregate methods in DBCollection that return instances of Cursor.
all(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $all operand
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 - Static variable in class com.mongodb.QueryOperators
 
ALL_PLANS_EXECUTIONS - com.mongodb.ExplainVerbosity
Runs the query optimizer and chooses the winning plan, but then runs all generated plans to completion.
allocator(ByteBufAllocator) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
Sets the allocator.
allowDiskUse(Boolean) - Method in class com.mongodb.AggregationOptions.Builder
Set whether to enable external sort capabilities.
allowDiskUse(Boolean) - Method in interface com.mongodb.async.client.AggregateIterable
Enables writing to temporary files.
allowDiskUse(Boolean) - Method in interface com.mongodb.client.AggregateIterable
Enables writing to temporary files.
allowDiskUse(Boolean) - Method in class com.mongodb.operation.AggregateOperation
Enables writing to temporary files.
allowDiskUse(Boolean) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Enables writing to temporary files.
alwaysUseMBeans - Variable in class com.mongodb.MongoOptions
Deprecated.
Sets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater.
alwaysUseMBeans(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater.
and(DBObject...) - Method in class com.mongodb.QueryBuilder
Equivalent to an $and operand
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(String) - Method in class com.mongodb.QueryBuilder
Equivalent to QueryBuilder.put(key).
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.
AND - Static variable in class com.mongodb.QueryOperators
 
ANNOTATION_CONVENTION - Static variable in class org.bson.codecs.pojo.Conventions
The annotation convention.
annotations(List<Annotation>) - Method in class org.bson.codecs.pojo.ClassModelBuilder
Sets the annotations for the model
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
append(String, Object) - Method in class org.bson.BasicBSONObject
Add a key/value pair to this object
append(String, Object) - Method in class org.bson.Document
Put the given key/value pair into this Document and return this.
append(String, BsonValue) - Method in class org.bson.BsonDocument
Put the given key and value into this document, and return the document.
append(String, BsonValue) - Method in class org.bson.RawBsonDocument
 
applicationName(String) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Deprecated.
Sets the logical name of the application using this MongoClient.
applicationName(String) - Method in class com.mongodb.embedded.client.MongoClientSettings.Builder
Sets the logical name of the application using this MongoClient.
applicationName(String) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the logical name of the application using this MongoClient.
applicationName(String) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the logical name of the application using this MongoClient.
apply(ClassModelBuilder<?>) - Method in interface org.bson.codecs.pojo.Convention
This method applies this Convention to the given ClassModelBuilder
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.async.client.MongoClientSettings.Builder
Deprecated.
Takes the settings from the given ConnectionString and applies them to the builder
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.embedded.client.MongoClientSettings.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
applyDecodingHooks(Object) - Static method in class org.bson.BSON
Transforms the objectToDecode using all transformers registered for the class of this object.
applyEncodingHooks(Object) - Static method in class org.bson.BSON
Transforms the objectToEncode using all transformers registered for the class of this object.
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.async.client.MongoClientSettings.Builder
Deprecated.
Applies the ClusterSettings.Builder block and then sets the clusterSettings.
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.async.client.MongoClientSettings.Builder
Deprecated.
Applies the ConnectionPoolSettings.Builder block and then sets the connectionPoolSettings.
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.async.client.MongoClientSettings.Builder
Deprecated.
Applies the ServerSettings.Builder block and then sets the serverSettings.
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.async.client.MongoClientSettings.Builder
Deprecated.
Applies the SocketSettings.Builder block and then sets the socketSettings.
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.async.client.MongoClientSettings.Builder
Deprecated.
Applies the SslSettings.Builder block and then sets the sslSettings.
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
array() - Method in interface org.bson.ByteBuf
Returns the byte array that backs this buffer (optional operation).
array() - Method in class org.bson.ByteBufNIO
 
ARRAY - org.bson.BsonContextType
A BSON array.
ARRAY - org.bson.BsonType
A BSON array.
ARRAY - Static variable in class org.bson.BSON
 
arrayDone() - Method in class org.bson.BasicBSONCallback
 
arrayDone() - Method in interface org.bson.BSONCallback
Called the end of the array, and returns the completed array.
arrayDone() - Method in class org.bson.EmptyBSONCallback
 
arrayFilters(List<? extends DBObject>) - Method in class com.mongodb.BulkWriteRequestBuilder
Specifies that the request being built should use the given array filters for an update.
arrayFilters(List<? extends DBObject>) - Method in class com.mongodb.client.model.DBCollectionFindAndModifyOptions
Sets the array filters option
arrayFilters(List<? extends DBObject>) - Method in class com.mongodb.client.model.DBCollectionUpdateOptions
Sets the array filters option
arrayFilters(List<? extends Bson>) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the array filters option
arrayFilters(List<? extends Bson>) - Method in class com.mongodb.client.model.UpdateOptions
Sets the array filters option
arrayFilters(List<BsonDocument>) - Method in class com.mongodb.bulk.UpdateRequest
Sets the array filters option
arrayFilters(List<BsonDocument>) - Method in class com.mongodb.operation.FindAndUpdateOperation
Sets the array filters option
arrayStart() - Method in class org.bson.BasicBSONCallback
 
arrayStart() - Method in interface org.bson.BSONCallback
Signals the start of a BSON array.
arrayStart() - Method in class org.bson.EmptyBSONCallback
 
arrayStart(String) - Method in class com.mongodb.util.JSONCallback
Deprecated.
 
arrayStart(String) - Method in class org.bson.BasicBSONCallback
 
arrayStart(String) - Method in interface org.bson.BSONCallback
Signals the start of a BSON array, with its field name.
arrayStart(String) - Method in class org.bson.EmptyBSONCallback
 
asArray() - Method in class org.bson.BsonValue
Gets this value as a BsonArray if it is one, otherwise throws exception
asBinary() - Method in class org.bson.BsonValue
Gets this value as a BsonBinary if it is one, otherwise throws exception
asBoolean() - Method in class org.bson.BsonValue
Gets this value as a BsonBoolean if it is one, otherwise throws exception
asBsonDocument(Object, CodecRegistry) - Static method in class org.bson.BsonDocumentWrapper
A helper to convert an document of type Object to a BsonDocument
asBsonReader() - Method in class org.bson.BsonDocument
Gets the first value in the document
ASC - com.mongodb.operation.OrderBy
Ascending order
ascending(String...) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
ascending(String...) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for an ascending sort on the given fields.
ascending(List<String>) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
ascending(List<String>) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for an ascending sort on the given fields.
asDateTime() - Method in class org.bson.BsonValue
Gets this value as a BsonDateTime if it is one, otherwise throws exception
asDBPointer() - Method in class org.bson.BsonValue
Gets this value as a BsonDbPointer if it is one, otherwise throws exception
asDecimal128() - Method in class org.bson.BsonValue
Gets this value as a BsonDecimal128 if it is one, otherwise throws exception
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.
asDocument() - Method in class org.bson.BsonValue
Gets this value as a BsonDocument if it is one, otherwise throws exception
asDouble() - Method in class org.bson.BsonValue
Gets this value as a BsonDouble if it is one, otherwise throws exception
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.AggregateOperation
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.CountOperation
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.FindOperation
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets an operation whose execution explains this operation.
asExplainableOperation(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.AggregateOperation
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.CountOperation
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.FindOperation
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets an operation whose execution explains this operation.
asExplainableOperationAsync(ExplainVerbosity) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets an operation whose execution explains this operation.
asInt32() - Method in class org.bson.BsonValue
Gets this value as a BsonInt32 if it is one, otherwise throws exception
asInt64() - Method in class org.bson.BsonValue
Gets this value as a BsonInt64 if it is one, otherwise throws exception
asJavaScript() - Method in class org.bson.BsonValue
Gets this value as a BsonJavaScript if it is one, otherwise throws exception
asJavaScriptWithScope() - Method in class org.bson.BsonValue
Gets this value as a BsonJavaScriptWithScope if it is one, otherwise throws exception
asNIO() - Method in interface org.bson.ByteBuf
Gets the underlying NIO ByteBuffer.
asNIO() - Method in class org.bson.ByteBufNIO
 
asNumber() - Method in class org.bson.BsonValue
Gets this value as a BsonNumber if it is one, otherwise throws exception
asObjectId() - Method in class org.bson.BsonValue
Gets this value as an BsonObjectId if it is one, otherwise throws exception
asReadOnly() - Method in interface org.bson.ByteBuf
Creates a new, read-only byte buffer that shares this buffer's content.
asReadOnly() - Method in class org.bson.ByteBufNIO
 
asRegularExpression() - Method in class org.bson.BsonValue
Gets this value as a BsonRegularExpression if it is one, otherwise throws exception
Assertions - Class in com.mongodb.assertions
Design by contract assertions.
Assertions - Class in org.bson.assertions
Design by contract assertions.
asString() - Method in class org.bson.BsonValue
Gets this value as a BsonString if it is one, otherwise throws exception
asSymbol() - Method in class org.bson.BsonValue
Gets this value as a BsonSymbol if it is one, otherwise throws exception
asTimestamp() - Method in class org.bson.BsonValue
Gets this value as a BsonTimestamp if it is one, otherwise throws exception
AsyncBatchCursor<T> - Interface in com.mongodb.async
MongoDB returns query results as batches, and this interface provides an asynchronous iterator over those batches.
AsyncClusterBinding - Class in com.mongodb.binding
A simple ReadWriteBinding implementation that supplies write connection sources bound to a possibly different primary each time, and a read connection source bound to a possible different server each time.
AsyncClusterBinding(Cluster, ReadPreference) - Constructor for class com.mongodb.binding.AsyncClusterBinding
AsyncClusterBinding(Cluster, ReadPreference, ReadConcern) - Constructor for class com.mongodb.binding.AsyncClusterBinding
Creates an instance.
AsyncCompletionHandler<T> - Interface in com.mongodb.connection
Completion handler for asynchronous I/O.
AsyncConnection - Interface in com.mongodb.connection
An asynchronous connection to a MongoDB server with non-blocking operations.
AsyncConnectionSource - Interface in com.mongodb.binding
A source of connections to a single MongoDB server.
AsynchronousChannelHelper - Class in com.mongodb.async.client.gridfs.helpers
A helper class to convert to AsynchronousByteChannel or AsynchronousFileChannel instances into AsyncInputStream or AsyncOutputStream instances.
AsynchronousSocketChannelStreamFactory - Class in com.mongodb.connection
Factory to create a Stream that's an AsynchronousSocketChannelStream.
AsynchronousSocketChannelStreamFactory(SocketSettings, SslSettings) - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactory
Create a new factory with the default BufferProvider and AsynchronousChannelGroup.
AsynchronousSocketChannelStreamFactory(SocketSettings, SslSettings, AsynchronousChannelGroup) - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactory
Create a new factory.
AsynchronousSocketChannelStreamFactoryFactory - Class in com.mongodb.connection
A StreamFactoryFactory implementation for AsynchronousSocketChannel-based streams.
AsynchronousSocketChannelStreamFactoryFactory() - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
Deprecated.
Use AsynchronousSocketChannelStreamFactoryFactory.builder() instead to construct the AsynchronousSocketChannelStreamFactoryFactory.
AsynchronousSocketChannelStreamFactoryFactory.Builder - Class in com.mongodb.connection
A builder for an instance of AsynchronousSocketChannelStreamFactoryFactory.
AsyncInputStream - Interface in com.mongodb.async.client.gridfs
The Async Input Stream interface represents some asynchronous input stream of bytes.
AsyncOperationExecutor - Interface in com.mongodb.operation
Deprecated.
there is no replacement for this interface
AsyncOutputStream - Interface in com.mongodb.async.client.gridfs
The Async Output Stream interface represents some asynchronous output stream of bytes.
AsyncReadBinding - Interface in com.mongodb.binding
An asynchronous factory of connection sources to servers that can be read from and that satisfy the specified read preference.
AsyncReadOperation<T> - Interface in com.mongodb.operation
An operation which asynchronously reads from a MongoDB server.
AsyncReadWriteBinding - Interface in com.mongodb.binding
An asynchronous factory of connection sources to servers that can be read from or written to.
AsyncSingleConnectionReadBinding - Class in com.mongodb.binding
An asynchronous read binding that is bound to a single connection.
AsyncSingleConnectionReadBinding(ReadPreference, ServerDescription, AsyncConnection) - Constructor for class com.mongodb.binding.AsyncSingleConnectionReadBinding
Construct an instance.
AsyncStreamHelper - Class in com.mongodb.async.client.gridfs.helpers
A general helper class that creates AsyncInputStream or AsyncOutputStream instances.
AsyncWriteBinding - Interface in com.mongodb.binding
An asynchronous factory of connection sources to servers that can be written to, e.g, a standalone, a mongos, or a replica set primary.
AsyncWriteOperation<T> - Interface in com.mongodb.operation
An operation which asynchronously writes to a MongoDB server.
AtomicBooleanCodec - Class in org.bson.codecs
Encodes and decodes AtomicBoolean objects.
AtomicBooleanCodec() - Constructor for class org.bson.codecs.AtomicBooleanCodec
 
AtomicIntegerCodec - Class in org.bson.codecs
Encodes and decodes AtomicInteger objects.
AtomicIntegerCodec() - Constructor for class org.bson.codecs.AtomicIntegerCodec
 
AtomicLongCodec - Class in org.bson.codecs
Encodes and decodes AtomicLong objects.
AtomicLongCodec() - Constructor for class org.bson.codecs.AtomicLongCodec
 
AuthenticationMechanism - Enum in com.mongodb
An enumeration of the MongodDB-supported authentication mechanisms.
autoIndex(boolean) - Method in class com.mongodb.client.model.CreateCollectionOptions
Deprecated.
this option was deprecated in MongoDB 3.2 and removed in MongodB 4.0
autoIndex(boolean) - Method in class com.mongodb.operation.CreateCollectionOperation
Sets if _id field of the collection is indexed.
automatic(boolean) - Method in class org.bson.codecs.pojo.PojoCodecProvider.Builder
Sets whether the provider should automatically try to create a ClassModel for any class that is requested.
available() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
 
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

B_BINARY - Static variable in class org.bson.BSON
 
B_FUNC - Static variable in class org.bson.BSON
 
B_GENERAL - Static variable in class org.bson.BSON
 
B_UUID - Static variable in class org.bson.BSON
 
background(boolean) - Method in class com.mongodb.bulk.IndexRequest
Should the index should be created in the background
background(boolean) - Method in class com.mongodb.client.model.IndexOptions
Should the index should be created in the background
backwards(Boolean) - Method in class com.mongodb.client.model.Collation.Builder
Sets the backwards value
BaseFindAndModifyOperation<T> - Class in com.mongodb.operation
Abstract base class for findAndModify-based operations
BaseFindAndModifyOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>) - Constructor for class com.mongodb.operation.BaseFindAndModifyOperation
Construct a new instance.
BaseWriteOperation - Class in com.mongodb.operation
Abstract base class for write operations.
BaseWriteOperation(MongoNamespace, boolean, WriteConcern) - Constructor for class com.mongodb.operation.BaseWriteOperation
BaseWriteOperation(MongoNamespace, boolean, WriteConcern, boolean) - Constructor for class com.mongodb.operation.BaseWriteOperation
Construct an instance
BasicBSONCallback - Class in org.bson
An implementation of BsonCallback that creates an instance of BSONObject.
BasicBSONCallback() - Constructor for class org.bson.BasicBSONCallback
Creates a new instance.
BasicBSONDecoder - Class in org.bson
Basic implementation of BSONDecoder interface that creates BasicBSONObject instances
BasicBSONDecoder() - Constructor for class org.bson.BasicBSONDecoder
 
BasicBSONEncoder - Class in org.bson
This is meant to be pooled or cached.
BasicBSONEncoder() - Constructor for class org.bson.BasicBSONEncoder
 
BasicBSONList - Class in org.bson.types
Utility class to allow array DBObjects to be created.
BasicBSONList() - Constructor for class org.bson.types.BasicBSONList
 
BasicBSONObject - Class in org.bson
A simple implementation of DBObject.
BasicBSONObject() - Constructor for class org.bson.BasicBSONObject
Creates an empty object.
BasicBSONObject(int) - Constructor for class org.bson.BasicBSONObject
Creates an empty object.
BasicBSONObject(String, Object) - Constructor for class org.bson.BasicBSONObject
Creates a BSONObject initialised with a single key/value pair.
BasicBSONObject(Map) - Constructor for class org.bson.BasicBSONObject
Creates a DBObject from a map.
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.
BasicOutputBuffer - Class in org.bson.io
A BSON output stream that stores the output in a single, un-pooled byte array.
BasicOutputBuffer() - Constructor for class org.bson.io.BasicOutputBuffer
Construct an instance with a default initial byte array size.
BasicOutputBuffer(int) - Constructor for class org.bson.io.BasicOutputBuffer
Construct an instance with the specified initial byte array size.
batchCursor(SingleResultCallback<AsyncBatchCursor<TResult>>) - Method in interface com.mongodb.async.client.MongoIterable
Provide the underlying AsyncBatchCursor allowing fine grained control of the cursor.
BatchCursor<T> - Interface in com.mongodb.operation
MongoDB returns query results as batches, and this interface provideds an iterator over those batches.
batchSize(int) - Method in interface com.mongodb.async.client.AggregateIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.ChangeStreamIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.DistinctIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.FindIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.gridfs.GridFSDownloadStream
Sets the number of chunks to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.gridfs.GridFSFindIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.ListCollectionsIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.ListDatabasesIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.ListIndexesIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.async.client.MongoIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.AggregateIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.ChangeStreamIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.DistinctIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.FindIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
Sets the number of chunks to return per batch.
batchSize(int) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.ListCollectionsIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.ListDatabasesIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.ListIndexesIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in interface com.mongodb.client.MapReduceIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.client.model.DBCollectionFindOptions
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.client.model.FindOptions
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.client.model.ParallelCollectionScanOptions
Deprecated.
The batch size to use for each cursor.
batchSize(int) - Method in interface com.mongodb.client.MongoIterable
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.DBCursor
Limits the number of elements returned in one batch.
batchSize(int) - Method in class com.mongodb.operation.FindOperation
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.operation.ListCollectionsOperation
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.operation.ListIndexesOperation
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
The batch size to use for each cursor.
batchSize(int) - Method in class com.mongodb.ParallelScanOptions.Builder
The batch size to use for each cursor.
batchSize(Integer) - Method in class com.mongodb.AggregationOptions.Builder
Sets the size of batches to use when iterating over results.
batchSize(Integer) - Method in class com.mongodb.operation.AggregateOperation
Sets the number of documents to return per batch.
batchSize(Integer) - Method in class com.mongodb.operation.ChangeStreamOperation
Sets the number of documents to return per batch.
BEFORE - com.mongodb.client.model.ReturnDocument
Indicates to return the document before the update, replacement, or insert occurred.
Beta - Annotation Type in com.mongodb.annotations
Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.
BigDecimalCodec - Class in org.bson.codecs
Encodes and decodes BigDecimal objects.
BigDecimalCodec() - Constructor for class org.bson.codecs.BigDecimalCodec
 
bigDecimalValue() - Method in class org.bson.types.Decimal128
Gets a BigDecimal that is equivalent to this Decimal128.
Binary - Class in org.bson.types
Generic binary holder.
Binary(byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary object with the default binary type of 0
Binary(byte, byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary object
Binary(BsonBinarySubType, byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary with the specified type and data.
BINARY - org.bson.BsonBinarySubType
Binary data.
BINARY - org.bson.BsonType
BSON binary data.
BINARY - Static variable in class org.bson.BSON
 
BinaryCodec - Class in org.bson.codecs
A Codec for the BSON Binary type.
BinaryCodec() - Constructor for class org.bson.codecs.BinaryCodec
 
binaryConverter(Converter<BsonBinary>) - Method in class org.bson.json.JsonWriterSettings.Builder
Sets the converter from BSON Binary values to JSON.
bits(Integer) - Method in class com.mongodb.bulk.IndexRequest
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
bits(Integer) - Method in class com.mongodb.client.model.IndexOptions
Sets the number of precision of the stored geohash value of the location data in 2d indexes.
Bits - Class in org.bson.io
Utility class for reading values from an input stream.
Bits() - Constructor for class org.bson.io.Bits
 
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.
BOOLEAN - org.bson.BsonType
A BSON bool.
BOOLEAN - Static variable in class org.bson.BSON
 
BooleanCodec - Class in org.bson.codecs
Encodes and decodes Boolean objects.
BooleanCodec() - Constructor for class org.bson.codecs.BooleanCodec
 
booleanConverter(Converter<Boolean>) - Method in class org.bson.json.JsonWriterSettings.Builder
Sets the converter from BSON Boolean values to JSON.
BOX - Static variable in class com.mongodb.QueryOperators
 
Bson - Interface in org.bson.conversions
An interface for types that are able to render themselves into a BsonDocument.
BSON - Class in org.bson
Contains byte representations of all the BSON types (see the BSON Specification).
BSON() - Constructor for class org.bson.BSON
 
BsonArray - Class in org.bson
A type-safe representation of the BSON array type.
BsonArray() - Constructor for class org.bson.BsonArray
Construct an empty BsonArray
BsonArray(List<? extends BsonValue>) - Constructor for class org.bson.BsonArray
Construct an instance with the given list of values.
BsonArrayCodec - Class in org.bson.codecs
A codec for BsonArray instances.
BsonArrayCodec() - Constructor for class org.bson.codecs.BsonArrayCodec
Creates a new instance with a default codec registry that uses the BsonValueCodecProvider.
BsonArrayCodec(CodecRegistry) - Constructor for class org.bson.codecs.BsonArrayCodec
Construct an instance with the given registry
BsonBinary - Class in org.bson
A representation of the BSON Binary type.
BsonBinary(byte[]) - Constructor for class org.bson.BsonBinary
Construct a new instance with the given data and the default sub-type
BsonBinary(byte, byte[]) - Constructor for class org.bson.BsonBinary
Construct a new instance with the given data and binary sub type.
BsonBinary(BsonBinarySubType, byte[]) - Constructor for class org.bson.BsonBinary
Construct a new instance with the given data and binary sub type.
BsonBinaryCodec - Class in org.bson.codecs
A Codec for the BSON Binary type.
BsonBinaryCodec() - Constructor for class org.bson.codecs.BsonBinaryCodec
 
BsonBinaryReader - Class in org.bson
A BsonReader implementation that reads from a binary stream of data.
BsonBinaryReader(ByteBuffer) - Constructor for class org.bson.BsonBinaryReader
Construct an instance.
BsonBinaryReader(BsonInput) - Constructor for class org.bson.BsonBinaryReader
Construct an instance.
BsonBinaryReader.Context - Class in org.bson
 
BsonBinaryReader.Mark - Class in org.bson
 
BsonBinarySubType - Enum in org.bson
The Binary subtype
BsonBinaryWriter - Class in org.bson
A BsonWriter implementation that writes to a binary stream of data.
BsonBinaryWriter(BsonWriterSettings, BsonBinaryWriterSettings, BsonOutput) - Constructor for class org.bson.BsonBinaryWriter
Construct an instance.
BsonBinaryWriter(BsonWriterSettings, BsonBinaryWriterSettings, BsonOutput, FieldNameValidator) - Constructor for class org.bson.BsonBinaryWriter
Construct an instance.
BsonBinaryWriter(BsonOutput) - Constructor for class org.bson.BsonBinaryWriter
Construct an instance.
BsonBinaryWriter(BsonOutput, FieldNameValidator) - Constructor for class org.bson.BsonBinaryWriter
Construct an instance.
BsonBinaryWriter.Context - Class in org.bson
 
BsonBinaryWriter.Mark - Class in org.bson
 
BsonBinaryWriterSettings - Class in org.bson
The customisable settings for writing BSON.
BsonBinaryWriterSettings() - Constructor for class org.bson.BsonBinaryWriterSettings
Creates a new instance of the settings with Integer.MAX_VALUE as the maximum document size.
BsonBinaryWriterSettings(int) - Constructor for class org.bson.BsonBinaryWriterSettings
Creates a new instance of the settings with the given maximum document size.
BsonBoolean - Class in org.bson
A representation of the BSON Boolean type.
BsonBoolean(boolean) - Constructor for class org.bson.BsonBoolean
Construct a new instance with the given value.
BsonBooleanCodec - Class in org.bson.codecs
A Codec for BsonBoolean instances.
BsonBooleanCodec() - Constructor for class org.bson.codecs.BsonBooleanCodec
 
BSONCallback - Interface in org.bson
A callback interface for describing the structure of a BSON document.
BsonContextType - Enum in org.bson
Used by BsonReader and BsonWriter implementations to represent the current context.
BsonCreator - Annotation Type in org.bson.codecs.pojo.annotations
An annotation that configures a constructor or method as the Creator for the Pojo.
BsonDateTime - Class in org.bson
A representation of the BSON DateTime type.
BsonDateTime(long) - Constructor for class org.bson.BsonDateTime
Construct a new instance with the given value.
BsonDateTimeCodec - Class in org.bson.codecs
A Codec for BsonDateTime instances.
BsonDateTimeCodec() - Constructor for class org.bson.codecs.BsonDateTimeCodec
 
BsonDbPointer - Class in org.bson
Holder for a BSON type DBPointer(0x0c).
BsonDbPointer(String, ObjectId) - Constructor for class org.bson.BsonDbPointer
Construct a new instance with the given namespace and id.
BsonDBPointerCodec - Class in org.bson.codecs
Converts BSON type DBPointer(0x0c) to database references as DBPointer is deprecated.
BsonDBPointerCodec() - Constructor for class org.bson.codecs.BsonDBPointerCodec
 
BsonDecimal128 - Class in org.bson
A representation of the BSON Decimal128 type.
BsonDecimal128(Decimal128) - Constructor for class org.bson.BsonDecimal128
Construct a new instance with the given value.
BsonDecimal128Codec - Class in org.bson.codecs
A Codec for BsonDecimal128 instances.
BsonDecimal128Codec() - Constructor for class org.bson.codecs.BsonDecimal128Codec
 
BSONDecoder - Interface in org.bson
An interface for decoders of BSON documents.
BsonDiscriminator - Annotation Type in org.bson.codecs.pojo.annotations
An annotation that configures the discriminator key and value for a class.
BsonDocument - Class in org.bson
A type-safe container for a BSON document.
BsonDocument() - Constructor for class org.bson.BsonDocument
Construct an empty document.
BsonDocument(String, BsonValue) - Constructor for class org.bson.BsonDocument
Construct a new instance with a single key value pair
BsonDocument(List<BsonElement>) - Constructor for class org.bson.BsonDocument
Construct a new instance with the given list BsonElement, none of which may be null.
BsonDocumentCodec - Class in org.bson.codecs
A codec for BsonDocument instances.
BsonDocumentCodec() - Constructor for class org.bson.codecs.BsonDocumentCodec
Creates a new instance with a default codec registry that uses the BsonValueCodecProvider.
BsonDocumentCodec(CodecRegistry) - Constructor for class org.bson.codecs.BsonDocumentCodec
Creates a new instance initialised with the given codec registry.
BsonDocumentReader - Class in org.bson
A BsonReader implementation that reads from an instance of BsonDocument.
BsonDocumentReader(BsonDocument) - Constructor for class org.bson.BsonDocumentReader
Construct a new instance.
BsonDocumentReader.Context - Class in org.bson
 
BsonDocumentReader.Mark - Class in org.bson
 
BsonDocumentWrapper<T> - Class in org.bson
A BsonDocument that begins its life as a document of any type and an Encoder for that document, which lets an instance of any class with an Encoder be treated as a BsonDocument.
BsonDocumentWrapper(T, Encoder<T>) - Constructor for class org.bson.BsonDocumentWrapper
Construct a new instance with the given document and encoder for the document.
BsonDocumentWrapperCodec - Class in org.bson.codecs
A Codec
BsonDocumentWrapperCodec(Codec<BsonDocument>) - Constructor for class org.bson.codecs.BsonDocumentWrapperCodec
Construct a new instance,
BsonDocumentWriter - Class in org.bson
A BsonWriter implementation that writes to an instance of BsonDocument.
BsonDocumentWriter(BsonDocument) - Constructor for class org.bson.BsonDocumentWriter
Construct a new instance.
BsonDouble - Class in org.bson
A representation of the BSON Double type.
BsonDouble(double) - Constructor for class org.bson.BsonDouble
Construct a new instance with the given value.
BsonDoubleCodec - Class in org.bson.codecs
A Codec for BsonDouble instances.
BsonDoubleCodec() - Constructor for class org.bson.codecs.BsonDoubleCodec
 
BsonElement - Class in org.bson
A mapping from a name to a BsonValue.
BsonElement(String, BsonValue) - Constructor for class org.bson.BsonElement
Construct a new instance with the given key and value
BSONEncoder - Interface in org.bson
A BSONEncoder is a class which can be used to turn documents into byte arrays.
BSONException - Exception in org.bson
A general runtime exception raised in BSON processing.
BSONException(int, String) - Constructor for exception org.bson.BSONException
 
BSONException(int, String, Throwable) - Constructor for exception org.bson.BSONException
 
BSONException(String) - Constructor for exception org.bson.BSONException
 
BSONException(String, Throwable) - Constructor for exception org.bson.BSONException
 
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
BsonId - Annotation Type in org.bson.codecs.pojo.annotations
An annotation that configures the property as the id property for a ClassModel.
BsonIgnore - Annotation Type in org.bson.codecs.pojo.annotations
An annotation that configures a property to be ignored when reading and writing to BSON
BsonInput - Interface in org.bson.io
An input stream that is optimized for reading BSON values directly from the underlying stream.
BsonInputMark - Interface in org.bson.io
Represents a bookmark that can be used to reset a BsonInput to its state at the time the mark was created.
BsonInt32 - Class in org.bson
A representation of the BSON Int32 type.
BsonInt32(int) - Constructor for class org.bson.BsonInt32
Construct a new instance with the given value.
BsonInt32Codec - Class in org.bson.codecs
A Codec for BsonInt32 instances.
BsonInt32Codec() - Constructor for class org.bson.codecs.BsonInt32Codec
 
BsonInt64 - Class in org.bson
A representation of the BSON Int64 type.
BsonInt64(long) - Constructor for class org.bson.BsonInt64
Construct a new instance with the given value.
BsonInt64Codec - Class in org.bson.codecs
A Codec for BsonInt64 instances.
BsonInt64Codec() - Constructor for class org.bson.codecs.BsonInt64Codec
 
BsonInvalidOperationException - Exception in org.bson
An exception indicating an invalid BSON operation.
BsonInvalidOperationException(String) - Constructor for exception org.bson.BsonInvalidOperationException
Construct a new instance.
BsonInvalidOperationException(String, Throwable) - Constructor for exception org.bson.BsonInvalidOperationException
Construct a new instance.
BsonJavaScript - Class in org.bson
For using the JavaScript Code type.
BsonJavaScript(String) - Constructor for class org.bson.BsonJavaScript
Construct a new instance with the given JavaScript code.
BsonJavaScriptCodec - Class in org.bson.codecs
A Codec for the BsonJavaScript type.
BsonJavaScriptCodec() - Constructor for class org.bson.codecs.BsonJavaScriptCodec
 
BsonJavaScriptWithScope - Class in org.bson
A representation of the JavaScript Code with Scope BSON type.
BsonJavaScriptWithScope(String, BsonDocument) - Constructor for class org.bson.BsonJavaScriptWithScope
Construct a new instance with the given code and scope.
BsonJavaScriptWithScopeCodec - Class in org.bson.codecs
A Codec for BsonJavaScriptWithScope instances.
BsonJavaScriptWithScopeCodec(Codec<BsonDocument>) - Constructor for class org.bson.codecs.BsonJavaScriptWithScopeCodec
Construct a new instance with the given codec to use for the nested document
BsonMaximumSizeExceededException - Exception in org.bson
An exception indicating a failure to serialize a BSON document due to it exceeding the maximum size.
BsonMaximumSizeExceededException(String) - Constructor for exception org.bson.BsonMaximumSizeExceededException
Construct a new instance.
BsonMaxKey - Class in org.bson
Represent the maximum key value regardless of the key's type
BsonMaxKey() - Constructor for class org.bson.BsonMaxKey
 
BsonMaxKeyCodec - Class in org.bson.codecs
A codec for BsonMaxKey instances.
BsonMaxKeyCodec() - Constructor for class org.bson.codecs.BsonMaxKeyCodec
 
BsonMinKey - Class in org.bson
Represent the minimum key value regardless of the key's type
BsonMinKey() - Constructor for class org.bson.BsonMinKey
 
BsonMinKeyCodec - Class in org.bson.codecs
A codec for BsonMinKey instances.
BsonMinKeyCodec() - Constructor for class org.bson.codecs.BsonMinKeyCodec
 
BsonNull - Class in org.bson
A representation of the BSON Null type.
BsonNull() - Constructor for class org.bson.BsonNull
 
BsonNullCodec - Class in org.bson.codecs
A Codec for BsonNull instances.
BsonNullCodec() - Constructor for class org.bson.codecs.BsonNullCodec
 
BsonNumber - Class in org.bson
Base class for the three numeric BSON types.
BsonNumber() - Constructor for class org.bson.BsonNumber
 
BSONObject - Interface in org.bson
A key-value map that can be saved to the database.
BsonObjectId - Class in org.bson
A representation of the BSON ObjectId type.
BsonObjectId() - Constructor for class org.bson.BsonObjectId
Construct a new instance with a new ObjectId.
BsonObjectId(ObjectId) - Constructor for class org.bson.BsonObjectId
Construct a new instance with the given ObjectId instance.
BsonObjectIdCodec - Class in org.bson.codecs
A Codec for BsonObjectId instances.
BsonObjectIdCodec() - Constructor for class org.bson.codecs.BsonObjectIdCodec
 
BsonOutput - Interface in org.bson.io
An output stream that is optimized for writing BSON values directly to the underlying stream.
BsonProperty - Annotation Type in org.bson.codecs.pojo.annotations
An annotation that configures a property.
BsonReader - Interface in org.bson
An interface for reading a logical BSON document using a pull-oriented API.
BsonReaderMark - Interface in org.bson
Represents a bookmark that can be used to reset a BsonReader to its state at the time the mark was created.
BsonRegularExpression - Class in org.bson
A holder class for a BSON regular expression, so that we can delay compiling into a Pattern until necessary.
BsonRegularExpression(String) - Constructor for class org.bson.BsonRegularExpression
Creates a new instance with no options set.
BsonRegularExpression(String, String) - Constructor for class org.bson.BsonRegularExpression
Creates a new instance
BsonRegularExpressionCodec - Class in org.bson.codecs
A codec for BSON regular expressions.
BsonRegularExpressionCodec() - Constructor for class org.bson.codecs.BsonRegularExpressionCodec
 
BsonSerializationException - Exception in org.bson
An exception indicating a failure to serialize a BSON value.
BsonSerializationException(String) - Constructor for exception org.bson.BsonSerializationException
Construct a new instance.
BsonString - Class in org.bson
A representation of the BSON String type.
BsonString(String) - Constructor for class org.bson.BsonString
Construct a new instance with the given value.
BsonStringCodec - Class in org.bson.codecs
A Codec for BsonString instances.
BsonStringCodec() - Constructor for class org.bson.codecs.BsonStringCodec
 
BsonSymbol - Class in org.bson
Class to hold a BSON symbol object, which is an interned string in Ruby
BsonSymbol(String) - Constructor for class org.bson.BsonSymbol
Creates a new instance.
BsonSymbolCodec - Class in org.bson.codecs
A codec for BSON symbol type.
BsonSymbolCodec() - Constructor for class org.bson.codecs.BsonSymbolCodec
 
BsonTimestamp - Class in org.bson
A value representing the BSON timestamp type.
BsonTimestamp() - Constructor for class org.bson.BsonTimestamp
Construct a new instance with a null time and a 0 increment.
BsonTimestamp(int, int) - Constructor for class org.bson.BsonTimestamp
Construct a new instance for the given time and increment.
BsonTimestamp(long) - Constructor for class org.bson.BsonTimestamp
Construct a new instance for the given value, which combines the time in seconds and the increment as a single long value.
BSONTimestamp - Class in org.bson.types
This is used for internal increment values.
BSONTimestamp() - Constructor for class org.bson.types.BSONTimestamp
Creates a new instance.
BSONTimestamp(int, int) - Constructor for class org.bson.types.BSONTimestamp
Creates a new instance.
BsonTimestampCodec - Class in org.bson.codecs
A Codec for BSON Timestamp instances.
BsonTimestampCodec() - Constructor for class org.bson.codecs.BsonTimestampCodec
 
BSONTimestampCodec - Class in com.mongodb
Knows how to encode and decode BSON timestamps.
BSONTimestampCodec() - Constructor for class com.mongodb.BSONTimestampCodec
 
BsonType - Enum in org.bson
Enumeration of all the BSON types currently supported.
BsonTypeClassMap - Class in org.bson.codecs
A map from a BSON types to the Class to which it should be decoded.
BsonTypeClassMap() - Constructor for class org.bson.codecs.BsonTypeClassMap
Construct an instance with the default mappings.
BsonTypeClassMap(Map<BsonType, Class<?>>) - Constructor for class org.bson.codecs.BsonTypeClassMap
Construct an instance with the default mapping, but replacing the default mapping with any values contained in the given map.
BsonTypeCodecMap - Class in org.bson.codecs
An efficient map of BsonType to Codec
BsonTypeCodecMap(BsonTypeClassMap, CodecRegistry) - Constructor for class org.bson.codecs.BsonTypeCodecMap
Initializes the map by iterating the keys of the given BsonTypeClassMap and looking up the Codec for the Class mapped to each key.
BsonUndefined - Class in org.bson
Represents the value associated with the BSON Undefined type.
BsonUndefined() - Constructor for class org.bson.BsonUndefined
 
BsonUndefinedCodec - Class in org.bson.codecs
Allows reading and writing of the BSON Undefined type.
BsonUndefinedCodec() - Constructor for class org.bson.codecs.BsonUndefinedCodec
 
BsonValue - Class in org.bson
Base class for any BSON type.
BsonValueCodec - Class in org.bson.codecs
A codec for unknown BsonValues.
BsonValueCodec() - Constructor for class org.bson.codecs.BsonValueCodec
Creates a new instance with a default codec registry that uses the BsonValueCodecProvider.
BsonValueCodec(CodecRegistry) - Constructor for class org.bson.codecs.BsonValueCodec
Creates a new instance initialised with the given codec registry.
BsonValueCodecProvider - Class in org.bson.codecs
A CodecProvider for all subclass of BsonValue.
BsonValueCodecProvider() - Constructor for class org.bson.codecs.BsonValueCodecProvider
Construct a new instance with the default codec for each BSON type.
BsonWriter - Interface in org.bson
An interface for writing a logical BSON document using a push-oriented API.
BsonWriterSettings - Class in org.bson
All the customisable settings for writing BSON.
BsonWriterSettings() - Constructor for class org.bson.BsonWriterSettings
Creates a new instance of the settings with the default maximum serialization depth of 1024.
BsonWriterSettings(int) - Constructor for class org.bson.BsonWriterSettings
Creates a new instance of the settings with the given maximum serialization depth.
bucket(TExpression, List<Boundary>) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucket pipeline stage
bucket(TExpression, List<TBoundary>, BucketOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucket pipeline stage
bucketAuto(TExpression, int) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucketAuto pipeline stage
bucketAuto(TExpression, int, BucketAutoOptions) - Static method in class com.mongodb.client.model.Aggregates
Creates a $bucketAuto pipeline stage
BucketAutoOptions - Class in com.mongodb.client.model
The options for a $bucketAuto aggregation pipeline stage
BucketAutoOptions() - Constructor for class com.mongodb.client.model.BucketAutoOptions
 
BucketGranularity - Enum in com.mongodb.client.model
Granularity values for automatic bucketing.
BucketOptions - Class in com.mongodb.client.model
The options for a $bucket aggregation pipeline stage
BucketOptions() - Constructor for class com.mongodb.client.model.BucketOptions
 
bucketSize(Double) - Method in class com.mongodb.bulk.IndexRequest
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
bucketSize(Double) - Method in class com.mongodb.client.model.IndexOptions
Sets the specified the number of units within which to group the location values for geoHaystack Indexes
BufferProvider - Interface in com.mongodb.connection
A provider of instances of ByteBuf.
build() - Method in class com.mongodb.AggregationOptions.Builder
Return the options based on this builder.
build() - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Deprecated.
Build an instance of MongoClientSettings.
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.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.embedded.client.MongoClientSettings.Builder
Build an instance of MongoClientSettings.
build() - Method in class com.mongodb.embedded.client.MongoEmbeddedSettings.Builder
Build an instance of MongoClientSettings.
build() - Method in class com.mongodb.MongoClientOptions.Builder
Build an instance of MongoClientOptions.
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.ParallelScanOptions.Builder
Creates a ParallelScanOptions with the settings initialised in this builder.
build() - Method in class com.mongodb.TransactionOptions.Builder
Build the transaction options instance.
build() - Method in class org.bson.codecs.DecoderContext.Builder
Build an instance of DecoderContext.
build() - Method in class org.bson.codecs.EncoderContext.Builder
Build an instance of EncoderContext.
build() - Method in class org.bson.codecs.pojo.ClassModelBuilder
Creates a new ClassModel instance based on the mapping data provided.
build() - Method in class org.bson.codecs.pojo.PojoCodecProvider.Builder
Creates the PojoCodecProvider with the classes or packages that configured and registered.
build() - Method in class org.bson.codecs.pojo.PropertyModelBuilder
Creates the PropertyModel.
build() - Method in class org.bson.json.JsonWriterSettings.Builder
Build a JsonWriterSettings instance.
build() - Method in class org.bson.json.StrictCharacterStreamJsonWriterSettings.Builder
Build a JsonWriterSettings instance.
builder() - Static method in class com.mongodb.AggregationOptions
Creates a new Builder for AggregationOptions.
builder() - Static method in class com.mongodb.async.client.MongoClientSettings
Deprecated.
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.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.embedded.client.MongoClientSettings
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.embedded.client.MongoEmbeddedSettings
Convenience method to create a Builder.
builder() - Static method in class com.mongodb.MongoClientOptions
Creates a builder 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.ParallelScanOptions
Create a builder for the options
builder() - Static method in class com.mongodb.TransactionOptions
Gets an instance of a builder
builder() - Static method in class org.bson.codecs.DecoderContext
Create a builder.
builder() - Static method in class org.bson.codecs.EncoderContext
Create a builder.
builder() - Static method in class org.bson.codecs.pojo.PojoCodecProvider
Creates a Builder so classes or packages can be registered and configured before creating an immutable CodecProvider.
builder() - Static method in class org.bson.codecs.pojo.PropertyModel
builder() - Static method in class org.bson.json.JsonWriterSettings
Create a builder for JsonWriterSettings, which are immutable.
builder() - Static method in class org.bson.json.StrictCharacterStreamJsonWriterSettings
Create a builder for StrictCharacterStreamJsonWriterSettings, which are immutable.
builder(MongoClientSettings) - Static method in class com.mongodb.async.client.MongoClientSettings
Deprecated.
Convenience method to create a from an existing MongoClientSettings.
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.embedded.client.MongoClientSettings
Convenience method to create a from an existing MongoClientSettings.
builder(MongoEmbeddedSettings) - Static method in class com.mongodb.embedded.client.MongoEmbeddedSettings
Convenience method to create a from an existing MongoClientSettings.
builder(MongoClientOptions) - Static method in class com.mongodb.MongoClientOptions
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(Class<S>) - Static method in class org.bson.codecs.pojo.ClassModel
Creates a new Class Model builder instance using reflection.
Builder() - Constructor for class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory.Builder
 
Builder() - Constructor for class com.mongodb.connection.ServerDescription.Builder
 
Builder() - Constructor for class com.mongodb.MongoClientOptions.Builder
Creates a Builder for MongoClientOptions, getting the appropriate system properties for initialization.
Builder() - Constructor for class com.mongodb.ParallelScanOptions.Builder
 
Builder(MongoClientOptions) - Constructor for class com.mongodb.MongoClientOptions.Builder
Creates a Builder from an existing MongoClientOptions.
BulkUpdateRequestBuilder - Class in com.mongodb
A builder for a single update request.
bulkWrite(ClientSession, List<? extends WriteModel<? extends TDocument>>, SingleResultCallback<BulkWriteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(ClientSession, List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions, SingleResultCallback<BulkWriteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(ClientSession, List<? extends WriteModel<? extends TDocument>>) - Method in interface com.mongodb.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(ClientSession, List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions) - Method in interface com.mongodb.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(List<? extends WriteModel<? extends TDocument>>) - Method in interface com.mongodb.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(List<? extends WriteModel<? extends TDocument>>, SingleResultCallback<BulkWriteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions) - Method in interface com.mongodb.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions, SingleResultCallback<BulkWriteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
BulkWriteBatchCombiner - Class in com.mongodb.connection
This class is not part of the public API.
BulkWriteBatchCombiner(ServerAddress, boolean, WriteConcern) - Constructor for class com.mongodb.connection.BulkWriteBatchCombiner
Construct an instance.
BulkWriteError - Class in com.mongodb.bulk
Represents an error for an item included in a bulk write operation, e.g.
BulkWriteError - Class in com.mongodb
Represents an error for an item included in a bulk write operation, e.g.
BulkWriteError(int, String, DBObject, int) - Constructor for class com.mongodb.BulkWriteError
Constructs a new instance.
BulkWriteError(int, String, BsonDocument, int) - Constructor for class com.mongodb.bulk.BulkWriteError
Constructs a new instance.
BulkWriteException - Exception in com.mongodb
An exception that represents all errors associated with a bulk write operation.
BulkWriteOperation - Class in com.mongodb
A bulk write operation.
BulkWriteOptions - Class in com.mongodb.client.model
The options to apply to a bulk write.
BulkWriteOptions() - Constructor for class com.mongodb.client.model.BulkWriteOptions
 
BulkWriteRequestBuilder - Class in com.mongodb
A builder for a single write request.
BulkWriteResult - Class in com.mongodb.bulk
The result of a successful bulk write operation.
BulkWriteResult - Class in com.mongodb
The result of a successful bulk write operation.
BulkWriteResult() - Constructor for class com.mongodb.bulk.BulkWriteResult
 
BulkWriteResult() - Constructor for class com.mongodb.BulkWriteResult
 
BulkWriteUpsert - Class in com.mongodb.bulk
Represents an item in the bulk write that was upserted.
BulkWriteUpsert - Class in com.mongodb
Represents an upsert request in a bulk write operation that resulted in an insert.
BulkWriteUpsert(int, Object) - Constructor for class com.mongodb.BulkWriteUpsert
Constructs an instance.
BulkWriteUpsert(int, BsonValue) - Constructor for class com.mongodb.bulk.BulkWriteUpsert
Construct an instance.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.AggregationOptions.Builder
Sets whether to bypass document validation.
bypassDocumentValidation(Boolean) - Method in interface com.mongodb.async.client.AggregateIterable
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in interface com.mongodb.client.AggregateIterable
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in interface com.mongodb.client.MapReduceIterable
Sets the bypass document level validation flag.
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.DBCollectionFindAndModifyOptions
Sets the bypassDocumentValidation
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.DBCollectionUpdateOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.InsertManyOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.InsertOneOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.ReplaceOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.client.model.UpdateOptions
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.InsertOptions
Sets whether to bypass document validation.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.BaseWriteOperation
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.FindAndReplaceOperation
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.FindAndUpdateOperation
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Sets the bypass document level validation flag.
bypassDocumentValidation(Boolean) - Method in class com.mongodb.operation.MixedBulkWriteOperation
Sets the bypass document level validation flag.
ByteArrayCodec - Class in org.bson.codecs
Encodes and decodes byte arrays.
ByteArrayCodec() - Constructor for class org.bson.codecs.ByteArrayCodec
 
ByteBuf - Interface in org.bson
An interface wrapper around a java.nio.ByteBuffer which additionally is Closeable, so that pooled byte buffers know how.
ByteBufferBsonInput - Class in org.bson.io
An implementation of BsonInput that is backed by a ByteBuf.
ByteBufferBsonInput(ByteBuf) - Constructor for class org.bson.io.ByteBufferBsonInput
Construct an instance with the given byte buffer.
ByteBufferBsonOutput - Class in com.mongodb.connection
This class should not be considered as part of the public API, and it may change or be removed at any time.
ByteBufferBsonOutput(BufferProvider) - Constructor for class com.mongodb.connection.ByteBufferBsonOutput
Construct an instance that uses the given buffer provider to allocate byte buffers as needs as it grows.
ByteBufNIO - Class in org.bson
Implementation of ByteBuf which simply wraps an NIO ByteBuffer and forwards all calls to it.
ByteBufNIO(ByteBuffer) - Constructor for class org.bson.ByteBufNIO
Creates a new instance.
ByteCodec - Class in org.bson.codecs
Encodes and decodes Byte objects.
ByteCodec() - Constructor for class org.bson.codecs.ByteCodec
 
Bytes - Class in com.mongodb
Class that hold definitions of the wire protocol
Bytes() - Constructor for class com.mongodb.Bytes
 

C

C_SHARP_LEGACY - org.bson.UuidRepresentation
The legacy representation of UUID used by the C# driver BSON binary subtype 3
callGetLastError() - Method in class com.mongodb.WriteConcern
Deprecated.
canonicalAddress(String) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the canonical host name and port of this server.
CANONICALIZE_HOST_NAME_KEY - Static variable in class com.mongodb.MongoCredential
Mechanism property key for specifying whether to canonicalize the host name for GSSAPI authentication.
capacity() - Method in interface org.bson.ByteBuf
Returns this buffer's capacity.
capacity() - Method in class org.bson.ByteBufNIO
 
capped(boolean) - Method in class com.mongodb.client.model.CreateCollectionOptions
sets whether the collection is capped.
capped(boolean) - Method in class com.mongodb.operation.CreateCollectionOperation
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.
CENTER - Static variable in class com.mongodb.QueryOperators
 
CENTER_SPHERE - Static variable in class com.mongodb.QueryOperators
 
ChangeStreamDocument<TDocument> - Class in com.mongodb.client.model.changestream
Represents the $changeStream aggregation output document.
ChangeStreamDocument(BsonDocument, MongoNamespace, TDocument, BsonDocument, OperationType, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
ChangeStreamDocument(BsonDocument, MongoNamespace, TDocument, BsonDocument, BsonTimestamp, OperationType, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
Deprecated.
ChangeStreamDocument(BsonDocument, BsonDocument, TDocument, BsonDocument, BsonTimestamp, OperationType, UpdateDescription) - Constructor for class com.mongodb.client.model.changestream.ChangeStreamDocument
Creates a new instance
ChangeStreamIterable<TResult> - Interface in com.mongodb.async.client
Iterable for change streams.
ChangeStreamIterable<TResult> - Interface in com.mongodb.client
Iterable for change streams.
ChangeStreamLevel - Enum in com.mongodb.client.model.changestream
The level at which the change stream operation operates at.
ChangeStreamOperation<T> - Class in com.mongodb.operation
An operation that executes an $changeStream aggregation.
ChangeStreamOperation(MongoNamespace, FullDocument, List<BsonDocument>, Decoder<T>) - Constructor for class com.mongodb.operation.ChangeStreamOperation
Construct a new instance.
ChangeStreamOperation(MongoNamespace, FullDocument, List<BsonDocument>, Decoder<T>, ChangeStreamLevel) - Constructor for class com.mongodb.operation.ChangeStreamOperation
Construct a new instance.
channelToInputStream(AsynchronousByteChannel) - Static method in class com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper
channelToInputStream(AsynchronousFileChannel) - Static method in class com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper
channelToOutputStream(AsynchronousByteChannel) - Static method in class com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper
channelToOutputStream(AsynchronousFileChannel) - Static method in class com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper
CharacterCodec - Class in org.bson.codecs
Encodes and decodes Character objects.
CharacterCodec() - Constructor for class org.bson.codecs.CharacterCodec
 
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.
checkedDiscriminator(boolean) - Method in class org.bson.codecs.DecoderContext.Builder
Sets the checkedDiscriminator
checkPreconditions(String, AbstractBsonWriter.State...) - Method in class org.bson.AbstractBsonWriter
Checks the writer is in the correct state.
checkPreconditions(String, BsonType) - Method in class org.bson.AbstractBsonReader
Ensures any conditions are met before reading commences.
checkState(AbstractBsonWriter.State[]) - Method in class org.bson.AbstractBsonWriter
Checks if this writer's current state is in the list of given states.
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.
CLASS_AND_PROPERTY_CONVENTION - Static variable in class org.bson.codecs.pojo.Conventions
The default class and property conventions Sets the discriminator key if not set to _t and the discriminator value if not set to the ClassModels simple type name. Configures the PropertyModels.
ClassMap<T> - Class in org.bson.util
Maps Class objects to values.
ClassMap() - Constructor for class org.bson.util.ClassMap
 
ClassModel<T> - Class in org.bson.codecs.pojo
This model represents the metadata for a class and all its properties.
ClassModelBuilder<T> - Class in org.bson.codecs.pojo
A builder for programmatically creating ClassModels.
clear() - Method in class org.bson.BsonArray
 
clear() - Method in class org.bson.BsonDocument
 
clear() - Method in class org.bson.BsonDocumentWrapper
 
clear() - Method in interface org.bson.ByteBuf
Clears this buffer.
clear() - Method in class org.bson.ByteBufNIO
 
clear() - Method in class org.bson.Document
 
clear() - Method in class org.bson.LazyBSONList
 
clear() - Method in class org.bson.RawBsonArray
 
clear() - Method in class org.bson.RawBsonDocument
 
clear() - Method in class org.bson.util.ClassMap
As per java.util.Map, removes all of the mappings from this map (optional operation).
clearAllHooks() - Static method in class org.bson.BSON
Remove all decoding and encoding hooks for all classes.
clearDecodingHooks() - Static method in class org.bson.BSON
Clears all decoding hooks.
clearEncodingHooks() - Static method in class org.bson.BSON
Clears all encoding hooks.
CLI - Class in com.mongodb.gridfs
A simple CLI for GridFS.
CLI() - Constructor for class com.mongodb.gridfs.CLI
 
CLIENT - com.mongodb.client.model.changestream.ChangeStreamLevel
Observing all changes on the Client
ClientSession - Interface in com.mongodb.async.client
A client session that supports transactions.
ClientSession - Interface in com.mongodb.client
A client session that supports transactions.
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
clone() - Method in class org.bson.BsonArray
 
clone() - Method in class org.bson.BsonDocument
 
clone() - Method in class org.bson.BsonDocumentWrapper
 
clone() - Method in class org.bson.RawBsonArray
 
clone() - Method in class org.bson.RawBsonDocument
 
close() - Method in interface com.mongodb.async.AsyncBatchCursor
 
close() - Method in interface com.mongodb.async.client.MongoClient
Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads.
close() - Method in class com.mongodb.client.gridfs.GridFSDownloadStream
 
close() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
 
close() - Method in interface com.mongodb.client.MongoClient
Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads.
close() - Method in interface com.mongodb.client.MongoCursor
 
close() - Method in class com.mongodb.connection.ByteBufferBsonOutput
 
close() - Method in interface com.mongodb.connection.Cluster
Closes connections to the servers in the cluster.
close() - Method in interface com.mongodb.connection.Stream
Closes the connection.
close() - Method in interface com.mongodb.Cursor
Terminates this cursor on the server.
close() - Method in class com.mongodb.DBCursor
 
close() - Static method in class com.mongodb.embedded.client.MongoClients
Closes down the mongod library
close() - Method in class com.mongodb.Mongo
Closes all resources associated with this instance, in particular any open network connections.
close() - Method in interface com.mongodb.operation.BatchCursor
 
close() - Method in interface com.mongodb.session.ClientSession
 
close() - Method in class org.bson.AbstractBsonReader
Closes the reader.
close() - Method in class org.bson.AbstractBsonWriter
 
close() - Method in class org.bson.BsonBinaryReader
 
close() - Method in class org.bson.BsonBinaryWriter
 
close() - Method in interface org.bson.BsonReader
 
close() - Method in class org.bson.io.BasicOutputBuffer
 
close() - Method in interface org.bson.io.BsonInput
 
close() - Method in interface org.bson.io.BsonOutput
 
close() - Method in class org.bson.io.ByteBufferBsonInput
 
close() - Method in class org.bson.io.OutputBuffer
 
close(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.AsyncInputStream
Closes the input stream
close(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.AsyncOutputStream
Closes the output stream
CLOSED - org.bson.AbstractBsonReader.State
The reader is closed.
CLOSED - org.bson.AbstractBsonWriter.State
The writer is closed.
Cluster - Interface in com.mongodb.connection
Represents a cluster of MongoDB servers.
ClusterBinding - Class in com.mongodb.binding
A simple ReadWriteBinding implementation that supplies write connection sources bound to a possibly different primary each time, and a read connection source bound to a possible different server each time.
ClusterBinding(Cluster, ReadPreference) - Constructor for class com.mongodb.binding.ClusterBinding
ClusterBinding(Cluster, ReadPreference, ReadConcern) - Constructor for class com.mongodb.binding.ClusterBinding
Creates an instance.
clusterClosed(ClusterClosedEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
 
clusterClosed(ClusterClosedEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is closed.
clusterClosed(ClusterClosedEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
ClusterClosedEvent - Class in com.mongodb.event
A cluster closed event.
ClusterClosedEvent(ClusterId) - Constructor for class com.mongodb.event.ClusterClosedEvent
Constructs a new instance of the event.
ClusterConnectionMode - Enum in com.mongodb.connection
The cluster connection mode.
ClusterDescription - Class in com.mongodb.connection
Immutable snapshot state of a cluster.
ClusterDescription(ClusterConnectionMode, ClusterType, List<ServerDescription>) - Constructor for class com.mongodb.connection.ClusterDescription
Creates a new ClusterDescription.
ClusterDescription(ClusterConnectionMode, ClusterType, List<ServerDescription>, ClusterSettings, ServerSettings) - Constructor for class com.mongodb.connection.ClusterDescription
Creates a new ClusterDescription.
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
 
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster description changes.
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
ClusterDescriptionChangedEvent - Class in com.mongodb.event
An event signifying that the cluster description has changed.
ClusterDescriptionChangedEvent(ClusterId, ClusterDescription, ClusterDescription) - Constructor for class com.mongodb.event.ClusterDescriptionChangedEvent
Constructs a new instance of the event.
ClusterEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple cluster listeners instead
ClusterEventMulticaster(List<ClusterListener>) - Constructor for class com.mongodb.event.ClusterEventMulticaster
Deprecated.
Construct an instance with the given list of cluster listeners
ClusterFactory - Interface in com.mongodb.connection
Factory for Cluster implementations.
ClusterId - Class in com.mongodb.connection
A client-generated identifier that uniquely identifies a connection to a MongoDB cluster, which could be sharded, replica set, or standalone.
ClusterId() - Constructor for class com.mongodb.connection.ClusterId
Construct an instance.
ClusterId(String) - Constructor for class com.mongodb.connection.ClusterId
Construct an instance.
ClusterListener - Interface in com.mongodb.event
A listener for cluster-related events.
ClusterListenerAdapter - Class in com.mongodb.event
An adapter for cluster listener implementations, for clients that want to listen for a subset of cluster events.
ClusterListenerAdapter() - Constructor for class com.mongodb.event.ClusterListenerAdapter
 
clusterOpening(ClusterOpeningEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
 
clusterOpening(ClusterOpeningEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is opened.
clusterOpening(ClusterOpeningEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
ClusterOpeningEvent - Class in com.mongodb.event
A cluster opening event.
ClusterOpeningEvent(ClusterId) - Constructor for class com.mongodb.event.ClusterOpeningEvent
Constructs a new instance of the event.
clusterSettings(ClusterSettings) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
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.
Code - Class in org.bson.types
For using the Code type.
Code(String) - Constructor for class org.bson.types.Code
Construct a new instance with the given code.
CODE - Static variable in class org.bson.BSON
 
CODE_W_SCOPE - Static variable in class org.bson.BSON
 
codec(Codec<T>) - Method in class org.bson.codecs.pojo.PropertyModelBuilder
Sets a custom codec for the property
Codec<T> - Interface in org.bson.codecs
Implementations of this interface can both encode and decode values of type T.
CodecConfigurationException - Exception in org.bson.codecs.configuration
An exception indicating that a codec registry has been misconfigured in some way, preventing it from providing a codec for the requested class.
CodecConfigurationException(String) - Constructor for exception org.bson.codecs.configuration.CodecConfigurationException
Construct a new instance.
CodecConfigurationException(String, Throwable) - Constructor for exception org.bson.codecs.configuration.CodecConfigurationException
Construct a new instance and wraps a cause
CodeCodec - Class in org.bson.codecs
Encodes and decodes instances of type Code.
CodeCodec() - Constructor for class org.bson.codecs.CodeCodec
 
CodecProvider - Interface in org.bson.codecs.configuration
A provider of Codec instances.
CodecRegistries - Class in org.bson.codecs.configuration
A helper class for creating and combining codecs, codec providers, and codec registries
codecRegistry(CodecRegistry) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Deprecated.
Sets the codec registry
codecRegistry(CodecRegistry) - Method in class com.mongodb.embedded.client.MongoClientSettings.Builder
Sets the codec registry
codecRegistry(CodecRegistry) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the codec registry
codecRegistry(CodecRegistry) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the codec registry
CodecRegistry - Interface in org.bson.codecs.configuration
A registry of Codec instances searchable by the class that the Codec can encode and decode.
CodeWithScope - Class in org.bson.types
A representation of the JavaScript Code with Scope BSON type.
CodeWithScope(String, Document) - Constructor for class org.bson.types.CodeWithScope
Construct an instance.
CodeWithScopeCodec - Class in org.bson.codecs
Encodes and decodes CodeWithScope instances.
CodeWithScopeCodec(Codec<Document>) - Constructor for class org.bson.codecs.CodeWithScopeCodec
Creates a new CodeWithScopeCodec.
CodeWScope - Class in org.bson.types
Represents the CodeWScope BSON type.
CodeWScope(String, BSONObject) - Constructor for class org.bson.types.CodeWScope
Creates a new instance
collation(Collation) - Method in class com.mongodb.AggregationOptions.Builder
Sets the collation
collation(Collation) - Method in interface com.mongodb.async.client.AggregateIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.async.client.ChangeStreamIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.async.client.DistinctIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.async.client.FindIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.async.client.gridfs.GridFSFindIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the collation options
collation(Collation) - Method in class com.mongodb.bulk.DeleteRequest
Sets the collation options
collation(Collation) - Method in class com.mongodb.bulk.IndexRequest
Sets the collation options
collation(Collation) - Method in class com.mongodb.bulk.UpdateRequest
Sets the collation options
collation(Collation) - Method in class com.mongodb.BulkUpdateRequestBuilder
Sets the collation
collation(Collation) - Method in class com.mongodb.BulkWriteRequestBuilder
Sets the collation
collation(Collation) - Method in interface com.mongodb.client.AggregateIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.client.ChangeStreamIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.client.DistinctIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.client.FindIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
Sets the collation options
collation(Collation) - Method in interface com.mongodb.client.MapReduceIterable
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.CountOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.CreateCollectionOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.CreateViewOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.DBCollectionCountOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DBCollectionDistinctOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DBCollectionFindAndModifyOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DBCollectionFindOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DBCollectionRemoveOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DBCollectionUpdateOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DBCreateViewOptions
Sets the collation
collation(Collation) - Method in class com.mongodb.client.model.DeleteOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.FindOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.IndexOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.ReplaceOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.client.model.UpdateOptions
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.AggregateOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.ChangeStreamOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.CountOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.CreateCollectionOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.CreateViewOperation
Sets the default collation for the view.
collation(Collation) - Method in class com.mongodb.operation.DistinctOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindAndDeleteOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindAndReplaceOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindAndUpdateOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.FindOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.GroupOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Sets the collation options
collation(Collation) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
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.
CollectibleCodec<T> - Interface in org.bson.codecs
A Codec that generates complete BSON documents for storage in a MongoDB collection.
COLLECTION - com.mongodb.client.model.changestream.ChangeStreamLevel
Observing all changes on a specific collection
collectionExists(String) - Method in class com.mongodb.DB
Checks to see if a collection with a given name exists on a server.
collectionName(String) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the collectionName for the output of the MapReduce
collectionName(String) - Method in interface com.mongodb.client.MapReduceIterable
Sets the collectionName for the output of the MapReduce
com.mongodb - package com.mongodb
The core mongodb package
com.mongodb.annotations - package com.mongodb.annotations
Contains annotations that can apply to any part of the driver code.
com.mongodb.assertions - package com.mongodb.assertions
Contains design by contract assertions
com.mongodb.async - package com.mongodb.async
This package contains async interfaces
com.mongodb.async.client - package com.mongodb.async.client
This packages contains classes for the new async client
com.mongodb.async.client.gridfs - package com.mongodb.async.client.gridfs
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
com.mongodb.async.client.gridfs.helpers - package com.mongodb.async.client.gridfs.helpers
Contains helper classes to create AsyncInputStream and AsyncOutputStream's from external sources.
com.mongodb.binding - package com.mongodb.binding
This package contains classes that manage binding to MongoDB servers for various operations.
com.mongodb.bulk - package com.mongodb.bulk
Contains classes for representing the result of a bulk write operation.
com.mongodb.client - package com.mongodb.client
 
com.mongodb.client.gridfs - package com.mongodb.client.gridfs
This package contains the new GridFS implementation
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.jndi - package com.mongodb.client.jndi
This package contains a JNDI ObjectFactory implementation.
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.result - package com.mongodb.client.result
This package contains classes representing operation results
com.mongodb.connection - package com.mongodb.connection
 
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.embedded.client - package com.mongodb.embedded.client
This packages contains classes for the embedded client
com.mongodb.event - package com.mongodb.event
This package contains cluster and connection event related classes
com.mongodb.gridfs - package com.mongodb.gridfs
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
com.mongodb.lang - package com.mongodb.lang
This package contains JSR 305-compatible annotations related to nullability.
com.mongodb.management - package com.mongodb.management
Contains classes for monitoring the server/driver via Java Management Extensions (JMX).
com.mongodb.operation - package com.mongodb.operation
The core of the MongoDB driver works via operations, using the command pattern.
com.mongodb.selector - package com.mongodb.selector
Contains classes that determine how to select the server to connect to in order to send commands or queries.
com.mongodb.session - package com.mongodb.session
Contains classes related to sessions
com.mongodb.util - package com.mongodb.util
Contains classes that can be used everywhere in the driver, and have no specific domain.
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(DBObject) - Method in class com.mongodb.DB
Executes a database command.
command(DBObject, DBEncoder) - Method in class com.mongodb.DB
Executes a database command.
command(DBObject, ReadPreference) - Method in class com.mongodb.DB
Executes the command against the database with the given read preference.
command(DBObject, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
command(String) - Method in class com.mongodb.DB
Executes a database command.
command(String, ReadPreference) - Method in class com.mongodb.DB
Executes a database command.
command(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>) - Method in interface com.mongodb.connection.Connection
command(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext) - Method in interface com.mongodb.connection.Connection
Execute the command.
command(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, boolean, SplittablePayload, FieldNameValidator) - Method in interface com.mongodb.connection.Connection
Executes the command, consuming as much of the SplittablePayload as possible.
COMMAND_COLLECTION_NAME - Static variable in class com.mongodb.MongoNamespace
 
commandAsync(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>, SingleResultCallback<T>) - Method in interface com.mongodb.connection.AsyncConnection
commandAsync(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, boolean, SplittablePayload, FieldNameValidator, SingleResultCallback<T>) - Method in interface com.mongodb.connection.AsyncConnection
Executes the command, consuming as much of the SplittablePayload as possible.
commandAsync(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, SingleResultCallback<T>) - Method in interface com.mongodb.connection.AsyncConnection
Execute the command.
CommandEvent - Class in com.mongodb.event
An event representing a MongoDB database command.
CommandEvent(int, ConnectionDescription, String) - Constructor for class com.mongodb.event.CommandEvent
Construct an instance.
CommandEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple command listeners instead
CommandEventMulticaster(List<CommandListener>) - Constructor for class com.mongodb.event.CommandEventMulticaster
Deprecated.
Construct an instance with the given list of command listeners
commandFailed(CommandFailedEvent) - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
 
commandFailed(CommandFailedEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command failure events
commandFailed(CommandFailedEvent) - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
 
CommandFailedEvent - Class in com.mongodb.event
An event representing the failure of a MongoDB database command.
CommandFailedEvent(int, ConnectionDescription, String, long, Throwable) - Constructor for class com.mongodb.event.CommandFailedEvent
Construct an instance.
CommandListener - Interface in com.mongodb.event
A listener for command events
commandListenerList(List<CommandListener>) - Method in class com.mongodb.embedded.client.MongoClientSettings.Builder
Sets the the command listeners
commandListenerList(List<CommandListener>) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the the command listeners
CommandListenerMulticaster - Class in com.mongodb.event
Deprecated.
register multiple command listeners in the settings
CommandListenerMulticaster(List<CommandListener>) - Constructor for class com.mongodb.event.CommandListenerMulticaster
Deprecated.
Construct an instance with the given list of command listeners
CommandReadOperation<T> - Class in com.mongodb.operation
An operation that executes an arbitrary command that reads from the server.
CommandReadOperation(String, BsonDocument, Decoder<T>) - Constructor for class com.mongodb.operation.CommandReadOperation
Construct a new instance.
CommandResult - Class in com.mongodb
A simple wrapper to hold the result of a command.
commandStarted(CommandStartedEvent) - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
 
commandStarted(CommandStartedEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command started events.
commandStarted(CommandStartedEvent) - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
 
CommandStartedEvent - Class in com.mongodb.event
An event representing the start of a command execution.
CommandStartedEvent(int, ConnectionDescription, String, String, BsonDocument) - Constructor for class com.mongodb.event.CommandStartedEvent
Construct an instance.
commandSucceeded(CommandSucceededEvent) - Method in class com.mongodb.event.CommandEventMulticaster
Deprecated.
 
commandSucceeded(CommandSucceededEvent) - Method in interface com.mongodb.event.CommandListener
Listener for command completed events
commandSucceeded(CommandSucceededEvent) - Method in class com.mongodb.event.CommandListenerMulticaster
Deprecated.
 
CommandSucceededEvent - Class in com.mongodb.event
An event representing the completion of a MongoDB database command.
CommandSucceededEvent(int, ConnectionDescription, String, BsonDocument, long) - Constructor for class com.mongodb.event.CommandSucceededEvent
Construct an instance.
CommandWriteOperation<T> - Class in com.mongodb.operation
An operation that executes an arbitrary command that writes to the server.
CommandWriteOperation(String, BsonDocument, Decoder<T>) - Constructor for class com.mongodb.operation.CommandWriteOperation
Construct a new instance.
comment(String) - Method in interface com.mongodb.async.client.AggregateIterable
Sets the comment to the aggregation.
comment(String) - Method in interface com.mongodb.async.client.FindIterable
Sets the comment to the query.
comment(String) - Method in interface com.mongodb.client.AggregateIterable
Sets the comment to the aggregation.
comment(String) - Method in interface com.mongodb.client.FindIterable
Sets the comment to the query.
comment(String) - Method in class com.mongodb.client.model.FindOptions
Sets the comment to the query.
comment(String) - Method in class com.mongodb.DBCursor
Adds a comment to the query to identify queries in the database profiler output.
comment(String) - Method in class com.mongodb.operation.AggregateOperation
Sets the comment to the aggregation.
comment(String) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Sets the comment to the aggregation.
comment(String) - Method in class com.mongodb.operation.FindOperation
Sets the comment to the query.
COMMENT - Static variable in class com.mongodb.QueryOperators
 
commitTransaction() - Method in interface com.mongodb.client.ClientSession
Commit a transaction in the context of this session.
commitTransaction(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.ClientSession
Commit a transaction in the context of this session.
CommitTransactionOperation - Class in com.mongodb.operation
An operation that commits a transaction.
CommitTransactionOperation(WriteConcern) - Constructor for class com.mongodb.operation.CommitTransactionOperation
Construct an instance.
compareTo(ServerVersion) - Method in class com.mongodb.connection.ServerVersion
 
compareTo(BsonBoolean) - Method in class org.bson.BsonBoolean
 
compareTo(BsonDateTime) - Method in class org.bson.BsonDateTime
 
compareTo(BsonDouble) - Method in class org.bson.BsonDouble
 
compareTo(BsonInt32) - Method in class org.bson.BsonInt32
 
compareTo(BsonInt64) - Method in class org.bson.BsonInt64
 
compareTo(BsonObjectId) - Method in class org.bson.BsonObjectId
 
compareTo(BsonString) - Method in class org.bson.BsonString
 
compareTo(BsonTimestamp) - Method in class org.bson.BsonTimestamp
 
compareTo(BSONTimestamp) - Method in class org.bson.types.BSONTimestamp
 
compareTo(ObjectId) - Method in class org.bson.types.ObjectId
 
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.async.client.MongoClientSettings.Builder
Deprecated.
Sets the compressors to use for compressing messages to the server.
compressorList(List<MongoCompressor>) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the compressors to use for compressing messages to the server.
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.
connect() - Method in class com.mongodb.MongoURI
Deprecated.
Creates a Mongo instance based on the URI.
connect(MongoClientURI) - Method in class com.mongodb.Mongo.Holder
Attempts to find an existing MongoClient instance matching that URI in the holder, and returns it if exists.
connect(MongoURI) - Method in class com.mongodb.Mongo.Holder
Deprecated.
connectCollection(DB) - Method in class com.mongodb.MongoURI
Deprecated.
Returns the URI's Collection from a given DB object.
connectCollection(Mongo) - Method in class com.mongodb.MongoURI
Deprecated.
Returns the URI's Collection from a given Mongo instance
connectDB() - Method in class com.mongodb.MongoURI
Deprecated.
Returns the DB object from a newly created Mongo instance based on this URI.
connectDB(Mongo) - Method in class com.mongodb.MongoURI
Deprecated.
Returns the URI's DB object from a given Mongo instance.
CONNECTED - com.mongodb.connection.ServerConnectionState
The application is connected to the remote server.
CONNECTING - com.mongodb.connection.ServerConnectionState
The application is actively attempting to connect to the remote server.
Connection - Interface in com.mongodb.connection
A synchronous connection to a MongoDB server with blocking operations.
connectionAdded(ConnectionAddedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionAdded(ConnectionAddedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is added to a pool.
connectionAdded(ConnectionAddedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionAdded(ConnectionAddedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionAddedEvent - Class in com.mongodb.event
An event for adding a new connection to the pool.
ConnectionAddedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionAddedEvent
Construct an instance
connectionCheckedIn(ConnectionCheckedInEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionCheckedIn(ConnectionCheckedInEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked in to a pool.
connectionCheckedIn(ConnectionCheckedInEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionCheckedIn(ConnectionCheckedInEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionCheckedInEvent - Class in com.mongodb.event
An event for checking in a connection to the pool.
ConnectionCheckedInEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionCheckedInEvent
Construct an instance
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked out of a pool.
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionCheckedOut(ConnectionCheckedOutEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionCheckedOutEvent - Class in com.mongodb.event
An event for checking our a connection from the pool.
ConnectionCheckedOutEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionCheckedOutEvent
Construct an instance
connectionClosed(ConnectionClosedEvent) - Method in interface com.mongodb.event.ConnectionListener
Deprecated.
Publish a connection message closed event.
ConnectionClosedEvent - Class in com.mongodb.event
A connection closed event.
ConnectionClosedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionClosedEvent
Constructs a new instance of the event.
ConnectionDescription - Class in com.mongodb.connection
A description of a connection to a MongoDB server.
ConnectionDescription(ConnectionId, ServerVersion, ServerType, int, int, int) - Constructor for class com.mongodb.connection.ConnectionDescription
Construct an instance.
ConnectionDescription(ConnectionId, ServerVersion, 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.
ConnectionListener - Interface in com.mongodb.event
Deprecated.
- No longer used
ConnectionMessageReceivedEvent - Class in com.mongodb.event
Deprecated.
- No longer used
ConnectionMessageReceivedEvent(ConnectionId, int, int) - Constructor for class com.mongodb.event.ConnectionMessageReceivedEvent
Deprecated.
Constructs a new instance of the event.
ConnectionMessagesSentEvent - Class in com.mongodb.event
Deprecated.
- No longer used
ConnectionMessagesSentEvent(ConnectionId, int, int) - Constructor for class com.mongodb.event.ConnectionMessagesSentEvent
Deprecated.
Constructs a new instance of the event.
connectionOpened(ConnectionOpenedEvent) - Method in interface com.mongodb.event.ConnectionListener
Deprecated.
Publish a connection opened event.
ConnectionOpenedEvent - Class in com.mongodb.event
An event for opening a new connection.
ConnectionOpenedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionOpenedEvent
Construct an instance
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is closed.
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolClosed(ConnectionPoolClosedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionPoolClosedEvent - Class in com.mongodb.event
An event signifying the closing of a connection pool.
ConnectionPoolClosedEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolClosedEvent
Constructs a new instance of the event.
ConnectionPoolEventMulticaster - Class in com.mongodb.event
Deprecated.
register multiple command listeners instead
ConnectionPoolEventMulticaster() - Constructor for class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
ConnectionPoolListener - Interface in com.mongodb.event
A listener for connection pool-related events.
ConnectionPoolListenerAdapter - Class in com.mongodb.event
An adapter for connection pool listener implementations, for clients that want to listen for a subset of connection pool events.
ConnectionPoolListenerAdapter() - Constructor for class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is opened.
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionPoolOpenedEvent - Class in com.mongodb.event
An event signifying the opening of a connection pool.
ConnectionPoolOpenedEvent(ServerId, ConnectionPoolSettings) - Constructor for class com.mongodb.event.ConnectionPoolOpenedEvent
Constructs a new instance of the event.
connectionPoolSettings(ConnectionPoolSettings) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
ConnectionPoolSettings - Class in com.mongodb.connection
All settings that relate to the pool of connections to a MongoDB server.
ConnectionPoolSettings.Builder - Class in com.mongodb.connection
A builder for creating ConnectionPoolSettings.
ConnectionPoolStatisticsMBean - Interface in com.mongodb.management
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
ConnectionPoolWaitQueueEnteredEvent - Class in com.mongodb.event
An event for entering the wait queue of the connection pool.
ConnectionPoolWaitQueueEnteredEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent
Construct an instance.
ConnectionPoolWaitQueueExitedEvent - Class in com.mongodb.event
An event for entering the wait queue of the connection pool.
ConnectionPoolWaitQueueExitedEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolWaitQueueExitedEvent
Construct an instance.
connectionRemoved(ConnectionRemovedEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Deprecated.
 
connectionRemoved(ConnectionRemovedEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is removed from a pool.
connectionRemoved(ConnectionRemovedEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionRemoved(ConnectionRemovedEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionRemovedEvent - Class in com.mongodb.event
An event for removing a connection from the pool.
ConnectionRemovedEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionRemovedEvent
Construct an instance
ConnectionSource - Interface in com.mongodb.binding
A source of connections to a single MongoDB server.
connectionsPerHost - Variable in class com.mongodb.MongoOptions
Deprecated.
The maximum number of connections allowed per host for this Mongo instance.
connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum number of connections per host.
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 - Variable in class com.mongodb.MongoOptions
Deprecated.
The connection timeout in milliseconds.
connectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the connection timeout.
connectTimeout(int, TimeUnit) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the socket connect timeout.
contains(Object) - Method in class org.bson.BsonArray
 
contains(Object) - Method in class org.bson.LazyBSONList
 
containsAll(TagSet) - Method in class com.mongodb.TagSet
Returns true if this tag set contains all of the elements of the specified tag set.
containsAll(Collection) - Method in class org.bson.LazyBSONList
 
containsAll(Collection<?>) - Method in class org.bson.BsonArray
 
containsField(String) - Method in class com.mongodb.gridfs.GridFSFile
 
containsField(String) - Method in class com.mongodb.ReflectionDBObject
 
containsField(String) - Method in class org.bson.BasicBSONObject
Checks if this object contains a given field
containsField(String) - Method in interface org.bson.BSONObject
Checks if this object contains a field with the given name.
containsField(String) - Method in class org.bson.LazyBSONObject
 
containsField(String) - Method in class org.bson.types.BasicBSONList
 
containsKey(Object) - Method in class org.bson.BsonDocument
 
containsKey(Object) - Method in class org.bson.BsonDocumentWrapper
 
containsKey(Object) - Method in class org.bson.Document
 
containsKey(Object) - Method in class org.bson.RawBsonDocument
 
containsKey(String) - Method in class com.mongodb.gridfs.GridFSFile
Deprecated.
containsKey(String) - Method in class com.mongodb.ReflectionDBObject
Deprecated.
containsKey(String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
Deprecated. 
containsKey(String) - Method in class org.bson.BasicBSONObject
Deprecated.
containsKey(String) - Method in interface org.bson.BSONObject
Deprecated.
containsKey(String) - Method in class org.bson.LazyBSONObject
Deprecated.
containsKey(String) - Method in class org.bson.types.BasicBSONList
Deprecated.
containsValue(Object) - Method in class org.bson.BsonDocument
 
containsValue(Object) - Method in class org.bson.BsonDocumentWrapper
 
containsValue(Object) - Method in class org.bson.Document
 
containsValue(Object) - Method in class org.bson.RawBsonDocument
 
context(SSLContext) - Method in class com.mongodb.connection.SslSettings.Builder
Sets the SSLContext for use when SSL is enabled.
Context(AbstractBsonReader.Context, BsonContextType) - Constructor for class org.bson.AbstractBsonReader.Context
Creates a new instance.
Context(AbstractBsonReader.Context, BsonContextType) - Constructor for class org.bson.json.JsonReader.Context
 
Context(AbstractBsonWriter.Context) - Constructor for class org.bson.AbstractBsonWriter.Context
Creates a new instance, copying values from an existing context.
Context(AbstractBsonWriter.Context, BsonContextType) - Constructor for class org.bson.AbstractBsonWriter.Context
Creates a new instance.
Context(BsonBinaryWriter.Context) - Constructor for class org.bson.BsonBinaryWriter.Context
Creates a new instance by copying the values from the given context.
Context(BsonBinaryWriter.Context, BsonContextType, int) - Constructor for class org.bson.BsonBinaryWriter.Context
Creates a new instance
Context(BsonDocumentReader.Context, BsonContextType, BsonArray) - Constructor for class org.bson.BsonDocumentReader.Context
 
Context(BsonDocumentReader.Context, BsonContextType, BsonDocument) - Constructor for class org.bson.BsonDocumentReader.Context
 
Context(JsonWriter.Context, BsonContextType) - Constructor for class org.bson.json.JsonWriter.Context
Creates a new context.
Context(JsonWriter.Context, BsonContextType, String) - Constructor for class org.bson.json.JsonWriter.Context
Deprecated.
continueOnError(boolean) - Method in class com.mongodb.InsertOptions
Set whether documents will continue to be inserted after a failure to insert one.
Convention - Interface in org.bson.codecs.pojo
Defines a convention to be applied when mapping a class.
conventions(List<Convention>) - Method in class org.bson.codecs.pojo.ClassModelBuilder
Sets the conventions to apply to the model
conventions(List<Convention>) - Method in class org.bson.codecs.pojo.PojoCodecProvider.Builder
Sets the conventions to use when creating ClassModels from classes or packages.
Conventions - Class in org.bson.codecs.pojo
The default Conventions
convert(T, StrictJsonWriter) - Method in interface org.bson.json.Converter
Convert the given value to JSON using the JSON writer.
Converter<T> - Interface in org.bson.json
A converter from a BSON value to JSON.
convertToType(Class<T>, Object, String) - Static method in class org.bson.assertions.Assertions
Cast an object to the given class and return it, or throw IllegalArgumentException if it's not assignable to that class.
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.
copy() - Method in class com.mongodb.client.model.DBCollectionFindOptions
Copy this DBCollectionFindOptions instance into a new instance.
copy() - Method in class com.mongodb.DBCursor
Creates a copy of an existing database cursor.
copy() - Method in class com.mongodb.MongoOptions
Deprecated.
Copy this MongoOptions instance into a new instance.
copy() - Method in class org.bson.AbstractBsonWriter.Context
Copies the values from this Context into a new instance.
copy() - Method in class org.bson.BsonBinaryWriter.Context
 
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() - Method in interface com.mongodb.client.MongoCollection
count() - Method in class com.mongodb.DBCollection
count() - Method in class com.mongodb.DBCursor
Counts the number of objects matching the query.
count(ClientSession, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
count(ClientSession, Bson, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
count(ClientSession, Bson, CountOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
count(SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
count(ClientSession) - Method in interface com.mongodb.client.MongoCollection
count(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
count(ClientSession, Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
count(DBObject) - Method in class com.mongodb.DBCollection
count(DBObject, DBCollectionCountOptions) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
count(DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
count(String) - Static method in class com.mongodb.client.model.Aggregates
Creates a $count pipeline stage using the named field to store the result
count(Bson) - Method in interface com.mongodb.client.MongoCollection
Deprecated.
count(Bson, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
count(Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
count(Bson, CountOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
countDocuments() - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection.
countDocuments(ClientSession, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection.
countDocuments(ClientSession, Bson, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(ClientSession, Bson, CountOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection.
countDocuments(ClientSession) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection.
countDocuments(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(ClientSession, Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(Bson) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(Bson, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection according to the given options.
countDocuments(Bson, CountOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection according to the given options.
CountOperation - Class in com.mongodb.operation
An operation that executes a count.
CountOperation(MongoNamespace) - Constructor for class com.mongodb.operation.CountOperation
Construct a new instance.
CountOperation(MongoNamespace, CountStrategy) - Constructor for class com.mongodb.operation.CountOperation
Construct a new instance.
CountOptions - Class in com.mongodb.client.model
The options for a count operation.
CountOptions() - Constructor for class com.mongodb.client.model.CountOptions
 
create() - Static method in class com.mongodb.async.client.MongoClients
Creates a new client with the default connection string "mongodb://localhost".
create() - Static method in class com.mongodb.client.MongoClients
Creates a new client with the default connection string "mongodb://localhost".
create() - Method in interface com.mongodb.DBDecoderFactory
Creates an instance.
create() - Method in interface com.mongodb.DBEncoderFactory
Creates an instance.
create() - Method in class com.mongodb.DefaultDBCallback
 
create() - Method in class com.mongodb.util.JSONCallback
Deprecated.
 
create() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSONObject.
create() - Method in interface org.bson.codecs.pojo.InstanceCreatorFactory
 
create(boolean, List<String>) - Method in class com.mongodb.DefaultDBCallback
 
create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
Helper method to create either a BSON Object or a BSON List depending upon whether the array parameter is true or not.
create(MongoClientSettings) - Static method in class com.mongodb.async.client.MongoClients
create(MongoClientSettings, MongoDriverInformation) - Static method in class com.mongodb.async.client.MongoClients
create(MongoDatabase) - Static method in class com.mongodb.async.client.gridfs.GridFSBuckets
Create a new GridFS bucket with the default 'fs' bucket name
create(MongoDatabase, String) - Static method in class com.mongodb.async.client.gridfs.GridFSBuckets
Create a new GridFS bucket with a custom bucket name
create(MongoDatabase) - Static method in class com.mongodb.client.gridfs.GridFSBuckets
Create a new GridFS bucket with the default 'fs' bucket name
create(MongoDatabase, String) - Static method in class com.mongodb.client.gridfs.GridFSBuckets
Create a new GridFS bucket with a custom bucket name
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener) - Method in interface com.mongodb.connection.ClusterFactory
Creates a cluster with the given settings.
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener) - Method in class com.mongodb.connection.DefaultClusterFactory
 
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener, CommandListener) - Method in class com.mongodb.connection.DefaultClusterFactory
create(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, ClusterListener, ConnectionPoolListener, ConnectionListener, CommandListener, String, MongoDriverInformation) - Method in class com.mongodb.connection.DefaultClusterFactory
create(SocketSettings, SslSettings) - Method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
 
create(SocketSettings, SslSettings) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory
 
create(SocketSettings, SslSettings) - Method in interface com.mongodb.connection.StreamFactoryFactory
Create a StreamFactory with the given settings.
create(ConnectionString) - Static method in class com.mongodb.async.client.MongoClients
Create a new client with the given connection string.
create(ConnectionString) - Static method in class com.mongodb.client.MongoClients
Create a new client with the given connection string.
create(ConnectionString, MongoDriverInformation) - Static method in class com.mongodb.async.client.MongoClients
Create a new client with the given connection string.
create(ConnectionString, MongoDriverInformation) - Static method in class com.mongodb.client.MongoClients
Create a new client with the given connection string.
create(DBCollection) - Method in interface com.mongodb.DBCallbackFactory
Creates a DBCallback for the given collection.
create(MongoClientSettings) - Static method in class com.mongodb.embedded.client.MongoClients
Creates a new client.
create(MongoClientSettings) - Static method in class com.mongodb.async.client.MongoClients
Create a new client with the given client settings.
create(MongoClientSettings) - Static method in class com.mongodb.client.MongoClients
Create a new client with the given client settings.
create(MongoClientSettings, MongoDriverInformation) - Static method in class com.mongodb.async.client.MongoClients
Creates a new client with the given client settings.
create(MongoClientSettings, MongoDriverInformation) - Static method in class com.mongodb.client.MongoClients
Creates a new client with the given client settings.
create(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
create(String) - Static method in class com.mongodb.async.client.MongoClients
Create a new client with the given connection string as if by a call to MongoClients.create(ConnectionString).
create(String) - Static method in class com.mongodb.client.MongoClients
Create a new client with the given connection string as if by a call to MongoClients.create(ConnectionString).
createArray(byte[], int) - Method in class com.mongodb.LazyDBCallback
 
createArray(byte[], int) - Method in class org.bson.LazyBSONCallback
Create a LazyBSONList from the given bytes starting from the given offset.
createBSONCallback() - Method in class org.bson.BasicBSONCallback
 
createBSONCallback() - Method in interface org.bson.BSONCallback
Factory method for BSONCallbacks.
createBSONCallback() - Method in class org.bson.EmptyBSONCallback
 
createChunk(Object, int, byte[]) - Method in class com.mongodb.gridfs.GridFSInputFile
Creates a new chunk of this file.
createCluster(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, CommandListener, String, MongoDriverInformation) - Method in class com.mongodb.connection.DefaultClusterFactory
createCluster(ClusterSettings, ServerSettings, ConnectionPoolSettings, StreamFactory, StreamFactory, List<MongoCredential>, CommandListener, String, MongoDriverInformation, List<MongoCompressor>) - Method in class com.mongodb.connection.DefaultClusterFactory
Creates a cluster with the given settings.
createCodec(Class<TFullDocument>, CodecRegistry) - Static method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Creates the codec for the specific ChangeStreamOutput type
createCollection(ClientSession, String, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Create a new collection with the given name.
createCollection(ClientSession, String, CreateCollectionOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Create a new collection with the selected options
createCollection(ClientSession, String) - Method in interface com.mongodb.client.MongoDatabase
Create a new collection with the given name.
createCollection(ClientSession, String, CreateCollectionOptions) - Method in interface com.mongodb.client.MongoDatabase
Create a new collection with the selected options
createCollection(String) - Method in interface com.mongodb.client.MongoDatabase
Create a new collection with the given name.
createCollection(String, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Create a new collection with the given name.
createCollection(String, CreateCollectionOptions) - Method in interface com.mongodb.client.MongoDatabase
Create a new collection with the selected options
createCollection(String, CreateCollectionOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Create a new collection with the selected options
createCollection(String, DBObject) - Method in class com.mongodb.DB
Creates a collection with a given name and options.
CreateCollectionOperation - Class in com.mongodb.operation
An operation to create a collection
CreateCollectionOperation(String, String) - Constructor for class com.mongodb.operation.CreateCollectionOperation
Construct a new instance.
CreateCollectionOperation(String, String, WriteConcern) - Constructor for class com.mongodb.operation.CreateCollectionOperation
Construct a new instance.
CreateCollectionOptions - Class in com.mongodb.client.model
Options for creating a collection
CreateCollectionOptions() - Constructor for class com.mongodb.client.model.CreateCollectionOptions
 
createCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance with an unspecified mechanism.
createDBRef(String, ObjectId) - Method in class com.mongodb.LazyDBCallback
 
createDBRef(String, ObjectId) - Method in class org.bson.LazyBSONCallback
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).
createFile() - Method in class com.mongodb.gridfs.GridFS
This method creates an empty GridFSInputFile instance.
createFile(byte[]) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(File) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream, boolean) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream, String) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream, String, boolean) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(String) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFromLegacyFormat(int, int, int) - Static method in class org.bson.types.ObjectId
Creates an ObjectId using time, machine and inc values.
createGSSAPICredential(String) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
createIndex(ClientSession, Bson, SingleResultCallback<String>) - Method in interface com.mongodb.async.client.MongoCollection
Creates an index.
createIndex(ClientSession, Bson, IndexOptions, SingleResultCallback<String>) - Method in interface com.mongodb.async.client.MongoCollection
Creates an index.
createIndex(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Create an index with the given keys.
createIndex(ClientSession, Bson, IndexOptions) - Method in interface com.mongodb.client.MongoCollection
Create an index with the given keys and options.
createIndex(DBObject) - Method in class com.mongodb.DBCollection
Creates an index on the field specified, if that index does not already exist.
createIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Creates an index on the field specified, if that index does not already exist.
createIndex(DBObject, String) - Method in class com.mongodb.DBCollection
Forces creation of an index on a set of fields, if one does not already exist.
createIndex(DBObject, String, boolean) - Method in class com.mongodb.DBCollection
Forces creation of an index on a set of fields, if one does not already exist.
createIndex(String) - Method in class com.mongodb.DBCollection
Forces creation of an ascending index on a field with the default options.
createIndex(Bson) - Method in interface com.mongodb.client.MongoCollection
Create an index with the given keys.
createIndex(Bson, SingleResultCallback<String>) - Method in interface com.mongodb.async.client.MongoCollection
Creates an index.
createIndex(Bson, IndexOptions) - Method in interface com.mongodb.client.MongoCollection
Create an index with the given keys and options.
createIndex(Bson, IndexOptions, SingleResultCallback<String>) - Method in interface com.mongodb.async.client.MongoCollection
Creates an index.
createIndexes(ClientSession, List<IndexModel>, SingleResultCallback<List<String>>) - Method in interface com.mongodb.async.client.MongoCollection
Create multiple indexes.
createIndexes(ClientSession, List<IndexModel>, CreateIndexOptions, SingleResultCallback<List<String>>) - Method in interface com.mongodb.async.client.MongoCollection
Create multiple indexes.
createIndexes(ClientSession, List<IndexModel>) - Method in interface com.mongodb.client.MongoCollection
Create multiple indexes.
createIndexes(ClientSession, List<IndexModel>, CreateIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Create multiple indexes.
createIndexes(List<IndexModel>) - Method in interface com.mongodb.client.MongoCollection
Create multiple indexes.
createIndexes(List<IndexModel>, SingleResultCallback<List<String>>) - Method in interface com.mongodb.async.client.MongoCollection
Create multiple indexes.
createIndexes(List<IndexModel>, CreateIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Create multiple indexes.
createIndexes(List<IndexModel>, CreateIndexOptions, SingleResultCallback<List<String>>) - Method in interface com.mongodb.async.client.MongoCollection
Create multiple indexes.
CreateIndexesOperation - Class in com.mongodb.operation
An operation that creates one or more indexes.
CreateIndexesOperation(MongoNamespace, List<IndexRequest>) - Constructor for class com.mongodb.operation.CreateIndexesOperation
CreateIndexesOperation(MongoNamespace, List<IndexRequest>, WriteConcern) - Constructor for class com.mongodb.operation.CreateIndexesOperation
Construct a new instance.
CreateIndexOptions - Class in com.mongodb.client.model
The options to apply to the command when creating indexes.
CreateIndexOptions() - Constructor for class com.mongodb.client.model.CreateIndexOptions
 
createList() - Method in class com.mongodb.util.JSONCallback
Deprecated.
 
createList() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSON List.
createMongoCRCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Deprecated.
MONGODB-CR was replaced by SCRAM-SHA-1 in MongoDB 3.0, and is now deprecated. Use the MongoCredential.createCredential(String, String, char[]) factory method instead.
createMongoX509Credential() - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the MongoDB X.509 protocol where the distinguished subject name of the client certificate acts as the userName.
createMongoX509Credential(String) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the MongoDB X.509 protocol.
createObject(byte[], int) - Method in class com.mongodb.LazyDBCallback
 
createObject(byte[], int) - Method in class org.bson.LazyBSONCallback
Create a LazyBSONObject instance from the given bytes starting from the given offset.
createPlainCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the PLAIN SASL mechanism.
createReplaceOptions(UpdateOptions) - Static method in class com.mongodb.client.model.ReplaceOptions
Creates replace options from updateOptions.
createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
createScramSha256Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-256 SASL mechanism.
createSnappyCompressor() - Static method in class com.mongodb.MongoCompressor
Create an instance for snappy compression.
CreateUserOperation - Class in com.mongodb.operation
Deprecated.
use CommandWriteOperation directly or the mongod shell helpers.
CreateUserOperation(MongoCredential, boolean) - Constructor for class com.mongodb.operation.CreateUserOperation
Deprecated.
Construct a new instance.
CreateUserOperation(MongoCredential, boolean, WriteConcern) - Constructor for class com.mongodb.operation.CreateUserOperation
Deprecated.
Construct a new instance.
createView(ClientSession, String, String, List<? extends Bson>, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
createView(ClientSession, String, String, List<? extends Bson>, CreateViewOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
createView(ClientSession, String, String, List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
createView(ClientSession, String, String, List<? extends Bson>, CreateViewOptions) - Method in interface com.mongodb.client.MongoDatabase
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
createView(String, String, List<? extends DBObject>) - Method in class com.mongodb.DB
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
createView(String, String, List<? extends DBObject>, DBCreateViewOptions) - Method in class com.mongodb.DB
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
createView(String, String, List<? extends Bson>) - Method in interface com.mongodb.client.MongoDatabase
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
createView(String, String, List<? extends Bson>, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
createView(String, String, List<? extends Bson>, CreateViewOptions) - Method in interface com.mongodb.client.MongoDatabase
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
createView(String, String, List<? extends Bson>, CreateViewOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
CreateViewOperation - Class in com.mongodb.operation
An operation to create a view.
CreateViewOperation(String, String, String, List<BsonDocument>, WriteConcern) - Constructor for class com.mongodb.operation.CreateViewOperation
Construct a new instance.
CreateViewOptions - Class in com.mongodb.client.model
Options for creating a view
CreateViewOptions() - Constructor for class com.mongodb.client.model.CreateViewOptions
 
createZlibCompressor() - Static method in class com.mongodb.MongoCompressor
Create an instance for zlib compression.
credential(MongoCredential) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Deprecated.
Sets the credential.
credential(MongoCredential) - Method in class com.mongodb.MongoClientSettings.Builder
Sets the credential.
credentialList(List<MongoCredential>) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
CRS_84 - Static variable in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
The urn:ogc:def:crs:OGC:1.3:CRS84 Coordinate Reference System
cur() - Method in class org.bson.BasicBSONCallback
Gets the current value
curName() - Method in class org.bson.BasicBSONCallback
Gets the name of the current field
curr() - Method in class com.mongodb.DBCursor
Returns the element the cursor is at.
currentDate(String) - Static method in class com.mongodb.client.model.Updates
Creates an update that sets the value of the field to the current date as a BSON date.
CurrentOpOperation - Class in com.mongodb.operation
An operation that determines the current operation on a MongoDB server.
CurrentOpOperation() - Constructor for class com.mongodb.operation.CurrentOpOperation
 
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.
Cursor - Interface in com.mongodb
Interface for providing consistent behaviour between different Cursor implementations.
CURSOR - com.mongodb.AggregationOptions.OutputMode
Deprecated.
The output of the aggregate operation is returned using a cursor.
cursorFinalizerEnabled - Variable in class com.mongodb.MongoOptions
Deprecated.
Sets whether there is a a finalize method created that cleans up instances of DBCursor that the client does not close.
cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether cursor finalizers are enabled.
cursorType(CursorType) - Method in interface com.mongodb.async.client.FindIterable
Sets the cursor type.
cursorType(CursorType) - Method in interface com.mongodb.client.FindIterable
Sets the cursor type.
cursorType(CursorType) - Method in class com.mongodb.client.model.DBCollectionFindOptions
Sets the cursor type.
cursorType(CursorType) - Method in class com.mongodb.client.model.FindOptions
Sets the cursor type.
cursorType(CursorType) - Method in class com.mongodb.operation.FindOperation
Sets the cursor type.
CursorType - Enum in com.mongodb
An enumeration of cursor types.

D

DATABASE - com.mongodb.client.model.changestream.ChangeStreamLevel
Observing all changes on a specific database
databaseName(String) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the name of the database to output into.
databaseName(String) - Method in interface com.mongodb.client.MapReduceIterable
Sets the name of the database to output into.
databaseName(String) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Sets the name of the database to output into.
DATE - Static variable in class org.bson.BSON
 
DATE_TIME - org.bson.BsonType
A BSON DateTime.
DateCodec - Class in org.bson.codecs
Encodes and decodes java.util.Date objects.
DateCodec() - Constructor for class org.bson.codecs.DateCodec
 
dateTimeConverter(Converter<Long>) - Method in class org.bson.json.JsonWriterSettings.Builder
Sets the converter from BSON DateTime values to JSON.
DB - Class in com.mongodb
A thread-safe client view of a logical database in a MongoDB cluster.
DB(Mongo, String) - Constructor for class com.mongodb.DB
Constructs a new instance of the DB.
DB_POINTER - org.bson.BsonType
A BSON regular expression.
DBAddress - Class in com.mongodb
Deprecated.
This class is no longer needed, as the driver does not rely on it for anything anymore. Use ServerAddress instead.
DBAddress(DBAddress, String) - Constructor for class com.mongodb.DBAddress
Deprecated.
Create a DBAddress using the host and port from an existing DBAddress, and connected to a given database.
DBAddress(String) - Constructor for class com.mongodb.DBAddress
Deprecated.
Creates a new address.
DBAddress(String, int, String) - Constructor for class com.mongodb.DBAddress
Deprecated.
Creates a DBAddress for the given database on the given host at the given port.
DBAddress(String, String) - Constructor for class com.mongodb.DBAddress
Deprecated.
Creates a DBAddress for the given database on the given host.
DBAddress(InetAddress, int, String) - Constructor for class com.mongodb.DBAddress
Deprecated.
 
DBCallback - Interface in com.mongodb
The DB callback interface.
DBCallbackFactory - Interface in com.mongodb
Factory for creating concrete implementations of DBCallback.
DBCollection - Class in com.mongodb
Implementation of a database collection.
DBCollection(DB, String) - Constructor for class com.mongodb.DBCollection
Initializes a new collection.
DBCollectionCountOptions - Class in com.mongodb.client.model
The options for a count operation.
DBCollectionCountOptions() - Constructor for class com.mongodb.client.model.DBCollectionCountOptions
Construct a new instance
DBCollectionDistinctOptions - Class in com.mongodb.client.model
The options for a distinct operation.
DBCollectionDistinctOptions() - Constructor for class com.mongodb.client.model.DBCollectionDistinctOptions
Construct a new instance
DBCollectionFindAndModifyOptions - Class in com.mongodb.client.model
The oprtions for find and modify operations.
DBCollectionFindAndModifyOptions() - Constructor for class com.mongodb.client.model.DBCollectionFindAndModifyOptions
Construct a new instance
DBCollectionFindOptions - Class in com.mongodb.client.model
The options to apply to a find operation (also commonly referred to as a query).
DBCollectionFindOptions() - Constructor for class com.mongodb.client.model.DBCollectionFindOptions
Construct a new instance
DBCollectionRemoveOptions - Class in com.mongodb.client.model
The options to apply when removing documents from the DBCollection
DBCollectionRemoveOptions() - Constructor for class com.mongodb.client.model.DBCollectionRemoveOptions
Construct a new instance
DBCollectionUpdateOptions - Class in com.mongodb.client.model
The options to apply when updating documents in the DBCollection
DBCollectionUpdateOptions() - Constructor for class com.mongodb.client.model.DBCollectionUpdateOptions
Construct a new instance
DBCreateViewOptions - Class in com.mongodb.client.model
The options to apply when creating a view
DBCreateViewOptions() - Constructor for class com.mongodb.client.model.DBCreateViewOptions
 
DBCursor - Class in com.mongodb
An iterator over database results.
DBCursor(DBCollection, DBObject, DBObject, ReadPreference) - Constructor for class com.mongodb.DBCursor
Initializes a new database cursor.
DBDecoder - Interface in com.mongodb
An interface for decoders of BSON into instances of DBObject that belong to a DBCollection.
dbDecoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the DBCallback factory.
dbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the decoder factory.
DBDecoderFactory - Interface in com.mongodb
Creates concrete DBDecoder instances.
dbEncoder(DBEncoder) - Method in class com.mongodb.InsertOptions
Set the encoder to use for the documents.
DBEncoder - Interface in com.mongodb
An interface for encoders of BSONObject to BSON.
dbEncoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the encoding factory.
dbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the encoder factory.
DBEncoderFactory - Interface in com.mongodb
Creates concrete DBEncoder instances.
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.
dbPath(String) - Method in class com.mongodb.embedded.client.MongoClientSettings.Builder
Sets the dbPath for the mongod.
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) - Method in interface org.bson.diagnostics.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.
debug(String, Throwable) - Method in interface org.bson.diagnostics.Logger
Log an exception (throwable) at the DEBUG level with an accompanying message.
Decimal128 - Class in org.bson.types
A binary integer decimal representation of a 128-bit decimal value, supporting 34 decimal digits of significand and an exponent range of -6143 to +6144.
Decimal128(long) - Constructor for class org.bson.types.Decimal128
Constructs a Decimal128 value representing the given long.
Decimal128(BigDecimal) - Constructor for class org.bson.types.Decimal128
Constructs a Decimal128 value representing the given BigDecimal.
DECIMAL128 - org.bson.BsonType
A BSON Decimal128.
Decimal128Codec - Class in org.bson.codecs
Encodes and decodes Decimal128 objects.
Decimal128Codec() - Constructor for class org.bson.codecs.Decimal128Codec
 
decimal128Converter(Converter<Decimal128>) - Method in class org.bson.json.JsonWriterSettings.Builder
Sets the converter from BSON Decimal128 values to JSON.
decimal128Value() - Method in class org.bson.BsonDecimal128
 
decimal128Value() - Method in class org.bson.BsonDouble
 
decimal128Value() - Method in class org.bson.BsonInt32
 
decimal128Value() - Method in class org.bson.BsonInt64
 
decimal128Value() - Method in class org.bson.BsonNumber
Returns the value of the specified number as a Decimal128, which may involve rounding.
decode(byte[]) - Static method in class org.bson.BSON
Decodes a BSON byte array into a DBObject instance.
decode(byte[], DBCollection) - Method in interface com.mongodb.DBDecoder
Decode a single DBObject belonging to the given collection from the given array of bytes.
decode(byte[], DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
decode(byte[], DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
decode(byte[], BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(byte[], BSONCallback) - Method in interface org.bson.BSONDecoder
Decode a single BSON object into the given callback from the given byte array.
decode(byte[], BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(InputStream, DBCollection) - Method in interface com.mongodb.DBDecoder
Decode a single DBObject belonging to the given collection from the given input stream.
decode(InputStream, DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
decode(InputStream, DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(InputStream, BSONCallback) - Method in interface org.bson.BSONDecoder
Decode a single BSON object into the given callback from the given input stream.
decode(InputStream, BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
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
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.AtomicBooleanCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.AtomicIntegerCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.AtomicLongCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BigDecimalCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BinaryCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BooleanCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonArrayCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonBinaryCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonBooleanCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonDateTimeCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonDBPointerCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonDecimal128Codec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonDocumentCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonDocumentWrapperCodec
Decoding of BsonDocumentWrapper instances is not supported, so this method will throw UnsupportedOperationException in all cases.
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonDoubleCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonInt32Codec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonInt64Codec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonJavaScriptCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonJavaScriptWithScopeCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonMaxKeyCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonMinKeyCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonNullCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonObjectIdCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonRegularExpressionCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonStringCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonSymbolCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonTimestampCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonUndefinedCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.BsonValueCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.ByteArrayCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.ByteCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.CharacterCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.CodeCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.CodeWithScopeCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.DateCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.Decimal128Codec
 
decode(BsonReader, DecoderContext) - Method in interface org.bson.codecs.Decoder
Decodes a BSON value from the given reader into an instance of the type parameter T.
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.DocumentCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.DoubleCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.FloatCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.IntegerCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.IterableCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.jsr310.InstantCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.jsr310.LocalDateCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.jsr310.LocalDateTimeCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.jsr310.LocalTimeCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.LongCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.MapCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.MaxKeyCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.MinKeyCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.ObjectIdCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.PatternCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.RawBsonDocumentCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.ShortCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.StringCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.SymbolCodec
 
decode(BsonReader, DecoderContext) - Method in class org.bson.codecs.UuidCodec
 
decode(Codec<T>) - Method in class org.bson.RawBsonDocument
Decode this into a document.
decode(Decoder<T>) - Method in class org.bson.RawBsonDocument
Decode this into a document.
Decoder<T> - Interface in org.bson.codecs
Decoders are used for reading BSON types from MongoDB and converting them into Java objects.
DecoderContext - Class in org.bson.codecs
The context for decoding values to BSON.
DecoderContext.Builder - Class in org.bson.codecs
A builder for DecoderContext instances.
decodeWithChildContext(Decoder<T>, BsonReader) - Method in class org.bson.codecs.DecoderContext
Creates a child context and then deserializes using the reader.
DEFAULT - com.mongodb.client.model.changestream.FullDocument
Default
DEFAULT - Static variable in class com.mongodb.ReadConcern
Use the servers default read concern.
DEFAULT_BUCKET - Static variable in class com.mongodb.gridfs.GridFS
Bucket to use for the collection namespaces
DEFAULT_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
File's chunk size
DEFAULT_CONVENTIONS - Static variable in class org.bson.codecs.pojo.Conventions
The default conventions list
defaultBucket(Object) - Method in class com.mongodb.client.model.BucketOptions
The name of the default bucket for values outside the defined buckets
DefaultClusterFactory - Class in com.mongodb.connection
The default factory for cluster implementations.
DefaultClusterFactory() - Constructor for class com.mongodb.connection.DefaultClusterFactory
 
DefaultDBCallback - Class in com.mongodb
An implementation of DBCallback that decodes into a DBObject.
DefaultDBCallback(DBCollection) - Constructor for class com.mongodb.DefaultDBCallback
Creates a new DefaultDBCallback.
DefaultDBDecoder - Class in com.mongodb
An implementation of DBDecoder
DefaultDBDecoder() - Constructor for class com.mongodb.DefaultDBDecoder
 
DefaultDBEncoder - Class in com.mongodb
The default BSON encoder for BSONObject instances.
DefaultDBEncoder() - Constructor for class com.mongodb.DefaultDBEncoder
 
defaultHost() - Static method in class com.mongodb.ServerAddress
Returns the default database host: "127.0.0.1"
defaultLanguage(String) - Method in class com.mongodb.bulk.IndexRequest
Sets the language for the text index.
defaultLanguage(String) - Method in class com.mongodb.client.model.IndexOptions
Sets the language for the text index.
defaultPort() - Static method in class com.mongodb.ServerAddress
Returns the default database port: 27017
defaultTransactionOptions(TransactionOptions) - Method in class com.mongodb.ClientSessionOptions.Builder
Sets whether operations using the session should causally consistent with each other.
delete(ClientSession, BsonValue, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(ClientSession, ObjectId, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(ClientSession, BsonValue) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(ClientSession, ObjectId) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(MongoNamespace, boolean, DeleteRequest) - Method in interface com.mongodb.connection.Connection
Delete the documents using the delete wire protocol and apply the write concern.
delete(BsonValue) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(BsonValue, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(ObjectId) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
delete(ObjectId, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Given a id, delete this stored file's files collection document and associated chunks from a GridFS bucket.
DELETE - com.mongodb.bulk.WriteRequest.Type
A delete.
DELETE - com.mongodb.client.model.changestream.OperationType
The delete operation type
DELETE - com.mongodb.connection.SplittablePayload.Type
A delete.
deleteAsync(MongoNamespace, boolean, DeleteRequest, SingleResultCallback<WriteConcernResult>) - Method in interface com.mongodb.connection.AsyncConnection
Delete the documents using the delete wire protocol and apply the write concern asynchronously.
deleteMany(ClientSession, Bson, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(ClientSession, Bson, DeleteOptions, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(ClientSession, Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(Bson) - Method in interface com.mongodb.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(Bson, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Removes all documents from the collection that match the given query filter.
deleteMany(Bson, DeleteOptions, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes all documents from the collection that match the given query filter.
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.
deleteOne(ClientSession, Bson, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(ClientSession, Bson, DeleteOptions, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(ClientSession, Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(Bson) - Method in interface com.mongodb.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(Bson, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(Bson, DeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
deleteOne(Bson, DeleteOptions, SingleResultCallback<DeleteResult>) - Method in interface com.mongodb.async.client.MongoCollection
Removes at most one document from the collection that matches the given filter.
DeleteOneModel<T> - Class in com.mongodb.client.model
A model describing the removal of at most one document matching the query filter.
DeleteOneModel(Bson) - Constructor for class com.mongodb.client.model.DeleteOneModel
Construct a new instance.
DeleteOneModel(Bson, DeleteOptions) - Constructor for class com.mongodb.client.model.DeleteOneModel
Construct a new instance.
DeleteOperation - Class in com.mongodb.operation
An operation that deletes one or more documents from a collection.
DeleteOperation(MongoNamespace, boolean, WriteConcern, boolean, List<DeleteRequest>) - Constructor for class com.mongodb.operation.DeleteOperation
Construct an instance.
DeleteOperation(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Constructor for class com.mongodb.operation.DeleteOperation
DeleteOptions - Class in com.mongodb.client.model
The options to apply when deleting documents.
DeleteOptions() - Constructor for class com.mongodb.client.model.DeleteOptions
 
DeleteRequest - Class in com.mongodb.bulk
A representation of a delete.
DeleteRequest(BsonDocument) - Constructor for class com.mongodb.bulk.DeleteRequest
Construct a new instance.
DeleteResult - Class in com.mongodb.client.result
The result of a delete operation.
DeleteResult() - Constructor for class com.mongodb.client.result.DeleteResult
 
depthField(String) - Method in class com.mongodb.client.model.GraphLookupOptions
The name of the field in which to store the depth value
DESC - com.mongodb.operation.OrderBy
Descending order
descending(String...) - Static method in class com.mongodb.client.model.Indexes
Create an index key for an ascending index on the given fields.
descending(String...) - Static method in class com.mongodb.client.model.Sorts
Create a sort specification for an ascending 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 an ascending sort on the given fields.
description - Variable in class com.mongodb.MongoOptions
Deprecated.
The description for Mongo instances created with these options.
description(String) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the user defined description of the MongoClient.
description(String) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the description.
diacriticSensitive(Boolean) - Method in class com.mongodb.client.model.TextSearchOptions
Set the diacritic-sensitive flag for the text search
discriminator(String) - Method in class org.bson.codecs.pojo.ClassModelBuilder
Sets the discriminator to be used when storing instances of the modeled type
discriminatorEnabled(boolean) - Method in class org.bson.codecs.pojo.PropertyModelBuilder
Enables or disables the use of a discriminator when serializing
discriminatorKey(String) - Method in class org.bson.codecs.pojo.ClassModelBuilder
Sets the discriminator key to be used when storing instances of the modeled type
distinct(ClientSession, String, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(ClientSession, String, Bson, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(ClientSession, String, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(ClientSession, String, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(String) - Method in class com.mongodb.DBCollection
Find the distinct values for a specified field across a collection and returns the results in an array.
distinct(String, DBCollectionDistinctOptions) - Method in class com.mongodb.DBCollection
Find the distinct values for a specified field across a collection and returns the results in an array.
distinct(String, DBObject) - Method in class com.mongodb.DBCollection
Find the distinct values for a specified field across a collection and returns the results in an array.
distinct(String, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Find the distinct values for a specified field across a collection and returns the results in an array.
distinct(String, ReadPreference) - Method in class com.mongodb.DBCollection
Find the distinct values for a specified field across a collection and returns the results in an array.
distinct(String, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(String, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(String, Bson, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Gets the distinct values of the specified field name.
distinct(String, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Gets the distinct values of the specified field name.
DistinctIterable<TResult> - Interface in com.mongodb.async.client
Iterable for distinct.
DistinctIterable<TResult> - Interface in com.mongodb.client
Iterable interface for distinct.
DistinctOperation<T> - Class in com.mongodb.operation
Finds the distinct values for a specified field across a single collection.
DistinctOperation(MongoNamespace, String, Decoder<T>) - Constructor for class com.mongodb.operation.DistinctOperation
Construct an instance.
Document - Class in org.bson
A representation of a document as a Map.
Document() - Constructor for class org.bson.Document
Creates an empty Document instance.
Document(String, Object) - Constructor for class org.bson.Document
Create a Document instance initialized with the given key/value pair.
Document(Map<String, Object>) - Constructor for class org.bson.Document
Creates a Document instance initialized with the given map.
DOCUMENT - org.bson.BsonContextType
A (possibly embedded) BSON document.
DOCUMENT - org.bson.BsonType
A BSON document.
DocumentCodec - Class in org.bson.codecs
A Codec for Document instances.
DocumentCodec() - Constructor for class org.bson.codecs.DocumentCodec
Construct a new instance with a default CodecRegistry.
DocumentCodec(CodecRegistry) - Constructor for class org.bson.codecs.DocumentCodec
Construct a new instance with the given registry.
DocumentCodec(CodecRegistry, BsonTypeClassMap) - Constructor for class org.bson.codecs.DocumentCodec
Construct a new instance with the given registry and BSON type class map.
DocumentCodec(CodecRegistry, BsonTypeClassMap, Transformer) - Constructor for class org.bson.codecs.DocumentCodec
Construct a new instance with the given registry and BSON type class map.
DocumentCodecProvider - Class in org.bson.codecs
A CodecProvider for the Document class and all the default Codec implementations on which it depends.
DocumentCodecProvider() - Constructor for class org.bson.codecs.DocumentCodecProvider
Construct a new instance with a default BsonTypeClassMap.
DocumentCodecProvider(BsonTypeClassMap) - Constructor for class org.bson.codecs.DocumentCodecProvider
Construct a new instance with the given instance of BsonTypeClassMap.
DocumentCodecProvider(BsonTypeClassMap, Transformer) - Constructor for class org.bson.codecs.DocumentCodecProvider
Construct a new instance with the given instance of BsonTypeClassMap.
DocumentCodecProvider(Transformer) - Constructor for class org.bson.codecs.DocumentCodecProvider
Construct a new instance with a default BsonTypeClassMap and the given Transformer.
documentHasId(DBObject) - Method in class com.mongodb.DBObjectCodec
 
documentHasId(BsonDocument) - Method in class org.bson.codecs.BsonDocumentCodec
 
documentHasId(Document) - Method in class org.bson.codecs.DocumentCodec
 
documentHasId(T) - Method in interface org.bson.codecs.CollectibleCodec
Returns true if the given document has an _id.
DocumentToDBRefTransformer - Class in com.mongodb
A Document to DBRef Transformer.
DocumentToDBRefTransformer() - Constructor for class com.mongodb.DocumentToDBRefTransformer
 
doEval(String, Object...) - Method in class com.mongodb.DB
Evaluates JavaScript functions on the database server.
doGetCollection(String) - Method in class com.mongodb.DB
Gets a collection with a given name.
done() - Method in class org.bson.BasicBSONEncoder
 
done() - Method in interface org.bson.BSONEncoder
Free the resources.
DONE - org.bson.AbstractBsonReader.State
The reader has finished reading a document.
DONE - org.bson.AbstractBsonWriter.State
The writer is done.
doPeekBinarySize() - Method in class org.bson.AbstractBsonReader
Handles the logic to peek at the binary size.
doPeekBinarySize() - Method in class org.bson.BsonBinaryReader
 
doPeekBinarySize() - Method in class org.bson.BsonDocumentReader
 
doPeekBinarySize() - Method in class org.bson.json.JsonReader
 
doPeekBinarySubType() - Method in class org.bson.AbstractBsonReader
Handles the logic to peek at the binary subtype.
doPeekBinarySubType() - Method in class org.bson.BsonBinaryReader
 
doPeekBinarySubType() - Method in class org.bson.BsonDocumentReader
 
doPeekBinarySubType() - Method in class org.bson.json.JsonReader
 
doReadBinaryData() - Method in class org.bson.AbstractBsonReader
Handles the logic to read binary data
doReadBinaryData() - Method in class org.bson.BsonBinaryReader
 
doReadBinaryData() - Method in class org.bson.BsonDocumentReader
 
doReadBinaryData() - Method in class org.bson.json.JsonReader
 
doReadBoolean() - Method in class org.bson.AbstractBsonReader
Handles the logic to read booleans
doReadBoolean() - Method in class org.bson.BsonBinaryReader
 
doReadBoolean() - Method in class org.bson.BsonDocumentReader
 
doReadBoolean() - Method in class org.bson.json.JsonReader
 
doReadDateTime() - Method in class org.bson.AbstractBsonReader
Handles the logic to read date time
doReadDateTime() - Method in class org.bson.BsonBinaryReader
 
doReadDateTime() - Method in class org.bson.BsonDocumentReader
 
doReadDateTime() - Method in class org.bson.json.JsonReader
 
doReadDBPointer() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a DBPointer
doReadDBPointer() - Method in class org.bson.BsonBinaryReader
 
doReadDBPointer() - Method in class org.bson.BsonDocumentReader
 
doReadDBPointer() - Method in class org.bson.json.JsonReader
 
doReadDecimal128() - Method in class org.bson.AbstractBsonReader
Handles the logic to read Decimal128
doReadDecimal128() - Method in class org.bson.BsonBinaryReader
 
doReadDecimal128() - Method in class org.bson.BsonDocumentReader
 
doReadDecimal128() - Method in class org.bson.json.JsonReader
 
doReadDouble() - Method in class org.bson.AbstractBsonReader
Handles the logic to read doubles
doReadDouble() - Method in class org.bson.BsonBinaryReader
 
doReadDouble() - Method in class org.bson.BsonDocumentReader
 
doReadDouble() - Method in class org.bson.json.JsonReader
 
doReadEndArray() - Method in class org.bson.AbstractBsonReader
Handles the logic when reading the end of an array
doReadEndArray() - Method in class org.bson.BsonBinaryReader
 
doReadEndArray() - Method in class org.bson.BsonDocumentReader
 
doReadEndArray() - Method in class org.bson.json.JsonReader
 
doReadEndDocument() - Method in class org.bson.AbstractBsonReader
Handles the logic when reading the end of a document
doReadEndDocument() - Method in class org.bson.BsonBinaryReader
 
doReadEndDocument() - Method in class org.bson.BsonDocumentReader
 
doReadEndDocument() - Method in class org.bson.json.JsonReader
 
doReadInt32() - Method in class org.bson.AbstractBsonReader
Handles the logic to read 32 bit ints
doReadInt32() - Method in class org.bson.BsonBinaryReader
 
doReadInt32() - Method in class org.bson.BsonDocumentReader
 
doReadInt32() - Method in class org.bson.json.JsonReader
 
doReadInt64() - Method in class org.bson.AbstractBsonReader
Handles the logic to read 64 bit ints
doReadInt64() - Method in class org.bson.BsonBinaryReader
 
doReadInt64() - Method in class org.bson.BsonDocumentReader
 
doReadInt64() - Method in class org.bson.json.JsonReader
 
doReadJavaScript() - Method in class org.bson.AbstractBsonReader
Handles the logic to read Javascript functions
doReadJavaScript() - Method in class org.bson.BsonBinaryReader
 
doReadJavaScript() - Method in class org.bson.BsonDocumentReader
 
doReadJavaScript() - Method in class org.bson.json.JsonReader
 
doReadJavaScriptWithScope() - Method in class org.bson.AbstractBsonReader
Handles the logic to read scoped Javascript functions
doReadJavaScriptWithScope() - Method in class org.bson.BsonBinaryReader
 
doReadJavaScriptWithScope() - Method in class org.bson.BsonDocumentReader
 
doReadJavaScriptWithScope() - Method in class org.bson.json.JsonReader
 
doReadMaxKey() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a Max key
doReadMaxKey() - Method in class org.bson.BsonBinaryReader
 
doReadMaxKey() - Method in class org.bson.BsonDocumentReader
 
doReadMaxKey() - Method in class org.bson.json.JsonReader
 
doReadMinKey() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a Min key
doReadMinKey() - Method in class org.bson.BsonBinaryReader
 
doReadMinKey() - Method in class org.bson.BsonDocumentReader
 
doReadMinKey() - Method in class org.bson.json.JsonReader
 
doReadNull() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a null value
doReadNull() - Method in class org.bson.BsonBinaryReader
 
doReadNull() - Method in class org.bson.BsonDocumentReader
 
doReadNull() - Method in class org.bson.json.JsonReader
 
doReadObjectId() - Method in class org.bson.AbstractBsonReader
Handles the logic to read an ObjectId
doReadObjectId() - Method in class org.bson.BsonBinaryReader
 
doReadObjectId() - Method in class org.bson.BsonDocumentReader
 
doReadObjectId() - Method in class org.bson.json.JsonReader
 
doReadRegularExpression() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a regular expression
doReadRegularExpression() - Method in class org.bson.BsonBinaryReader
 
doReadRegularExpression() - Method in class org.bson.BsonDocumentReader
 
doReadRegularExpression() - Method in class org.bson.json.JsonReader
 
doReadStartArray() - Method in class org.bson.AbstractBsonReader
Handles the logic to read the start of an array
doReadStartArray() - Method in class org.bson.BsonBinaryReader
 
doReadStartArray() - Method in class org.bson.BsonDocumentReader
 
doReadStartArray() - Method in class org.bson.json.JsonReader
 
doReadStartDocument() - Method in class org.bson.AbstractBsonReader
Handles the logic to read the start of a document
doReadStartDocument() - Method in class org.bson.BsonBinaryReader
 
doReadStartDocument() - Method in class org.bson.BsonDocumentReader
 
doReadStartDocument() - Method in class org.bson.json.JsonReader
 
doReadString() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a String
doReadString() - Method in class org.bson.BsonBinaryReader
 
doReadString() - Method in class org.bson.BsonDocumentReader
 
doReadString() - Method in class org.bson.json.JsonReader
 
doReadSymbol() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a Symbol
doReadSymbol() - Method in class org.bson.BsonBinaryReader
 
doReadSymbol() - Method in class org.bson.BsonDocumentReader
 
doReadSymbol() - Method in class org.bson.json.JsonReader
 
doReadTimestamp() - Method in class org.bson.AbstractBsonReader
Handles the logic to read a timestamp
doReadTimestamp() - Method in class org.bson.BsonBinaryReader
 
doReadTimestamp() - Method in class org.bson.BsonDocumentReader
 
doReadTimestamp() - Method in class org.bson.json.JsonReader
 
doReadUndefined() - Method in class org.bson.AbstractBsonReader
Handles the logic to read an Undefined value
doReadUndefined() - Method in class org.bson.BsonBinaryReader
 
doReadUndefined() - Method in class org.bson.BsonDocumentReader
 
doReadUndefined() - Method in class org.bson.json.JsonReader
 
doSkipName() - Method in class org.bson.AbstractBsonReader
Handles any logic required to skip the name (reader must be positioned on a name).
doSkipName() - Method in class org.bson.BsonBinaryReader
 
doSkipName() - Method in class org.bson.BsonDocumentReader
 
doSkipName() - Method in class org.bson.json.JsonReader
 
doSkipValue() - Method in class org.bson.AbstractBsonReader
Handles any logic required to skip the value (reader must be positioned on a value).
doSkipValue() - Method in class org.bson.BsonBinaryReader
 
doSkipValue() - Method in class org.bson.BsonDocumentReader
 
doSkipValue() - Method in class org.bson.json.JsonReader
 
DOUBLE - org.bson.BsonType
A BSON double.
DoubleCodec - Class in org.bson.codecs
Encodes and decodes Double objects.
DoubleCodec() - Constructor for class org.bson.codecs.DoubleCodec
 
doubleConverter(Converter<Double>) - Method in class org.bson.json.JsonWriterSettings.Builder
Sets the converter from BSON Double values to JSON.
doubleValue() - Method in class org.bson.BsonDecimal128
 
doubleValue() - Method in class org.bson.BsonDouble
 
doubleValue() - Method in class org.bson.BsonInt32
 
doubleValue() - Method in class org.bson.BsonInt64
 
doubleValue() - Method in class org.bson.BsonNumber
Returns the value of the specified number as a double, which may involve rounding.
downloadToStream(ClientSession, String, AsyncOutputStream, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the latest version of the stored file specified by filename and writes the contents to the destination Stream.
downloadToStream(ClientSession, String, AsyncOutputStream, GridFSDownloadOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by filename and by the revision in options and writes the contents to the destination Stream.
downloadToStream(ClientSession, BsonValue, AsyncOutputStream, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination AsyncOutputStream.
downloadToStream(ClientSession, ObjectId, AsyncOutputStream, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination AsyncOutputStream.
downloadToStream(ClientSession, String, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the latest version of the stored file specified by filename and writes the contents to the destination Stream.
downloadToStream(ClientSession, String, OutputStream, GridFSDownloadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by filename and by the revision in options and writes the contents to the destination Stream.
downloadToStream(ClientSession, BsonValue, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination Stream.
downloadToStream(ClientSession, ObjectId, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination Stream.
downloadToStream(String, AsyncOutputStream, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the latest version of the stored file specified by filename and writes the contents to the destination Stream.
downloadToStream(String, AsyncOutputStream, GridFSDownloadOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by filename and by the revision in options and writes the contents to the destination Stream.
downloadToStream(String, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the latest version of the stored file specified by filename and writes the contents to the destination Stream.
downloadToStream(String, OutputStream, GridFSDownloadOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by filename and by the revision in options and writes the contents to the destination Stream.
downloadToStream(BsonValue, AsyncOutputStream, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination AsyncOutputStream.
downloadToStream(BsonValue, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination Stream.
downloadToStream(ObjectId, AsyncOutputStream, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination AsyncOutputStream.
downloadToStream(ObjectId, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Downloads the contents of the stored file specified by id and writes the contents to the destination Stream.
downloadToStreamByName(String, OutputStream) - Method in interface com.mongodb.client.gridfs.GridFSBucket
downloadToStreamByName(String, OutputStream, GridFSDownloadByNameOptions) - Method in interface com.mongodb.client.gridfs.GridFSBucket
doWriteBinaryData(BsonBinary) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a BsonBinary value
doWriteBinaryData(BsonBinary) - Method in class org.bson.BsonBinaryWriter
 
doWriteBinaryData(BsonBinary) - Method in class org.bson.BsonDocumentWriter
 
doWriteBinaryData(BsonBinary) - Method in class org.bson.json.JsonWriter
 
doWriteBoolean(boolean) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a boolean value
doWriteBoolean(boolean) - Method in class org.bson.BsonBinaryWriter
 
doWriteBoolean(boolean) - Method in class org.bson.BsonDocumentWriter
 
doWriteBoolean(boolean) - Method in class org.bson.json.JsonWriter
 
doWriteDateTime(long) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a date time value
doWriteDateTime(long) - Method in class org.bson.BsonBinaryWriter
 
doWriteDateTime(long) - Method in class org.bson.BsonDocumentWriter
 
doWriteDateTime(long) - Method in class org.bson.json.JsonWriter
 
doWriteDBPointer(BsonDbPointer) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a DbPointer value
doWriteDBPointer(BsonDbPointer) - Method in class org.bson.BsonBinaryWriter
 
doWriteDBPointer(BsonDbPointer) - Method in class org.bson.BsonDocumentWriter
 
doWriteDBPointer(BsonDbPointer) - Method in class org.bson.json.JsonWriter
 
doWriteDecimal128(Decimal128) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a Decimal128 value
doWriteDecimal128(Decimal128) - Method in class org.bson.BsonBinaryWriter
 
doWriteDecimal128(Decimal128) - Method in class org.bson.BsonDocumentWriter
 
doWriteDecimal128(Decimal128) - Method in class org.bson.json.JsonWriter
 
doWriteDouble(double) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a Double value
doWriteDouble(double) - Method in class org.bson.BsonBinaryWriter
 
doWriteDouble(double) - Method in class org.bson.BsonDocumentWriter
 
doWriteDouble(double) - Method in class org.bson.json.JsonWriter
 
doWriteEndArray() - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing the end of an array
doWriteEndArray() - Method in class org.bson.BsonBinaryWriter
 
doWriteEndArray() - Method in class org.bson.BsonDocumentWriter
 
doWriteEndArray() - Method in class org.bson.json.JsonWriter
 
doWriteEndDocument() - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing the end of a document
doWriteEndDocument() - Method in class org.bson.BsonBinaryWriter
 
doWriteEndDocument() - Method in class org.bson.BsonDocumentWriter
 
doWriteEndDocument() - Method in class org.bson.json.JsonWriter
 
doWriteInt32(int) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing an int32 value
doWriteInt32(int) - Method in class org.bson.BsonBinaryWriter
 
doWriteInt32(int) - Method in class org.bson.BsonDocumentWriter
 
doWriteInt32(int) - Method in class org.bson.json.JsonWriter
 
doWriteInt64(long) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing an int64 value
doWriteInt64(long) - Method in class org.bson.BsonBinaryWriter
 
doWriteInt64(long) - Method in class org.bson.BsonDocumentWriter
 
doWriteInt64(long) - Method in class org.bson.json.JsonWriter
 
doWriteJavaScript(String) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a JavaScript function
doWriteJavaScript(String) - Method in class org.bson.BsonBinaryWriter
 
doWriteJavaScript(String) - Method in class org.bson.BsonDocumentWriter
 
doWriteJavaScript(String) - Method in class org.bson.json.JsonWriter
 
doWriteJavaScriptWithScope(String) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a scoped JavaScript function
doWriteJavaScriptWithScope(String) - Method in class org.bson.BsonBinaryWriter
 
doWriteJavaScriptWithScope(String) - Method in class org.bson.BsonDocumentWriter
 
doWriteJavaScriptWithScope(String) - Method in class org.bson.json.JsonWriter
 
doWriteMaxKey() - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a Max key
doWriteMaxKey() - Method in class org.bson.BsonBinaryWriter
 
doWriteMaxKey() - Method in class org.bson.BsonDocumentWriter
 
doWriteMaxKey() - Method in class org.bson.json.JsonWriter
 
doWriteMinKey() - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a Min key
doWriteMinKey() - Method in class org.bson.BsonBinaryWriter
 
doWriteMinKey() - Method in class org.bson.BsonDocumentWriter
 
doWriteMinKey() - Method in class org.bson.json.JsonWriter
 
doWriteName(String) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing the element name.
doWriteName(String) - Method in class org.bson.json.JsonWriter
 
doWriteNull() - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a Null value
doWriteNull() - Method in class org.bson.BsonBinaryWriter
 
doWriteNull() - Method in class org.bson.BsonDocumentWriter
 
doWriteNull() - Method in class org.bson.json.JsonWriter
 
doWriteObjectId(ObjectId) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing an ObjectId
doWriteObjectId(ObjectId) - Method in class org.bson.BsonBinaryWriter
 
doWriteObjectId(ObjectId) - Method in class org.bson.BsonDocumentWriter
 
doWriteObjectId(ObjectId) - Method in class org.bson.json.JsonWriter
 
doWriteRegularExpression(BsonRegularExpression) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a regular expression
doWriteRegularExpression(BsonRegularExpression) - Method in class org.bson.BsonBinaryWriter
 
doWriteRegularExpression(BsonRegularExpression) - Method in class org.bson.BsonDocumentWriter
 
doWriteRegularExpression(BsonRegularExpression) - Method in class org.bson.json.JsonWriter
 
doWriteStartArray() - Method in class org.bson.AbstractBsonWriter
Handles the logic to start writing an array
doWriteStartArray() - Method in class org.bson.BsonBinaryWriter
 
doWriteStartArray() - Method in class org.bson.BsonDocumentWriter
 
doWriteStartArray() - Method in class org.bson.json.JsonWriter
 
doWriteStartDocument() - Method in class org.bson.AbstractBsonWriter
Handles the logic to start writing a document
doWriteStartDocument() - Method in class org.bson.BsonBinaryWriter
 
doWriteStartDocument() - Method in class org.bson.BsonDocumentWriter
 
doWriteStartDocument() - Method in class org.bson.json.JsonWriter
 
doWriteString(String) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a String
doWriteString(String) - Method in class org.bson.BsonBinaryWriter
 
doWriteString(String) - Method in class org.bson.BsonDocumentWriter
 
doWriteString(String) - Method in class org.bson.json.JsonWriter
 
doWriteSymbol(String) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a Symbol
doWriteSymbol(String) - Method in class org.bson.BsonBinaryWriter
 
doWriteSymbol(String) - Method in class org.bson.BsonDocumentWriter
 
doWriteSymbol(String) - Method in class org.bson.json.JsonWriter
 
doWriteTimestamp(BsonTimestamp) - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing a timestamp
doWriteTimestamp(BsonTimestamp) - Method in class org.bson.BsonBinaryWriter
 
doWriteTimestamp(BsonTimestamp) - Method in class org.bson.BsonDocumentWriter
 
doWriteTimestamp(BsonTimestamp) - Method in class org.bson.json.JsonWriter
 
doWriteUndefined() - Method in class org.bson.AbstractBsonWriter
Handles the logic of writing an Undefined value
doWriteUndefined() - Method in class org.bson.BsonBinaryWriter
 
doWriteUndefined() - Method in class org.bson.BsonDocumentWriter
 
doWriteUndefined() - Method in class org.bson.json.JsonWriter
 
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() - Method in interface com.mongodb.client.gridfs.GridFSBucket
Drops the data associated with this bucket from the database.
drop() - Method in interface com.mongodb.client.MongoCollection
Drops this collection from the Database.
drop() - Method in interface com.mongodb.client.MongoDatabase
Drops this database.
drop() - Method in class com.mongodb.DBCollection
Drops (deletes) this collection from the database.
drop() - Method in class com.mongodb.MapReduceOutput
Drops the collection that holds the results.
drop(ClientSession, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Drops the data associated with this bucket from the database.
drop(ClientSession, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops this collection from the Database.
drop(ClientSession, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Drops this database.
drop(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Drops the data associated with this bucket from the database.
drop(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops this collection from the Database.
drop(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Drops this database.
drop(ClientSession) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Drops the data associated with this bucket from the database.
drop(ClientSession) - Method in interface com.mongodb.client.MongoCollection
Drops this collection from the Database.
drop(ClientSession) - Method in interface com.mongodb.client.MongoDatabase
Drops this database.
DROP - com.mongodb.client.model.changestream.OperationType
The drop operation type
DROP_DATABASE - com.mongodb.client.model.changestream.OperationType
The dropDatabase operation type
DropCollectionOperation - Class in com.mongodb.operation
Operation to drop a Collection in MongoDB.
DropCollectionOperation(MongoNamespace) - Constructor for class com.mongodb.operation.DropCollectionOperation
DropCollectionOperation(MongoNamespace, WriteConcern) - Constructor for class com.mongodb.operation.DropCollectionOperation
Construct a new instance.
dropDatabase() - Method in class com.mongodb.DB
Drops this database.
dropDatabase(String) - Method in class com.mongodb.Mongo
Drops the database if it exists.
DropDatabaseOperation - Class in com.mongodb.operation
Operation to drop a database in MongoDB.
DropDatabaseOperation(String) - Constructor for class com.mongodb.operation.DropDatabaseOperation
Deprecated.
DropDatabaseOperation(String, WriteConcern) - Constructor for class com.mongodb.operation.DropDatabaseOperation
Construct a new instance.
dropDups(boolean) - Method in class com.mongodb.bulk.IndexRequest
Sets the legacy dropDups setting
dropIndex(ClientSession, String, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given its name.
dropIndex(ClientSession, String, DropIndexOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given its name.
dropIndex(ClientSession, Bson, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(ClientSession, Bson, DropIndexOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(ClientSession, String) - Method in interface com.mongodb.client.MongoCollection
Drops the index given its name.
dropIndex(ClientSession, String, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Drops the index given its name.
dropIndex(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(ClientSession, Bson, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(DBObject) - Method in class com.mongodb.DBCollection
Drops an index from this collection.
dropIndex(String) - Method in interface com.mongodb.client.MongoCollection
Drops the index given its name.
dropIndex(String) - Method in class com.mongodb.DBCollection
Drops the index with the given name from this collection.
dropIndex(String, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given its name.
dropIndex(String, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Drops the index given its name.
dropIndex(String, DropIndexOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given its name.
dropIndex(Bson) - Method in interface com.mongodb.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(Bson, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(Bson, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(Bson, DropIndexOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given the keys used to create it.
dropIndexes() - Method in interface com.mongodb.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes() - Method in class com.mongodb.DBCollection
Drop all indexes on this collection.
dropIndexes(ClientSession, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(ClientSession, DropIndexOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(ClientSession) - Method in interface com.mongodb.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(ClientSession, DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(DropIndexOptions) - Method in interface com.mongodb.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(DropIndexOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drop all the indexes on this collection, except for the default on _id.
dropIndexes(String) - Method in class com.mongodb.DBCollection
Drops the index with the given name from this collection.
DropIndexOperation - Class in com.mongodb.operation
An operation that drops an index.
DropIndexOperation(MongoNamespace, String) - Constructor for class com.mongodb.operation.DropIndexOperation
DropIndexOperation(MongoNamespace, String, WriteConcern) - Constructor for class com.mongodb.operation.DropIndexOperation
Construct a new instance.
DropIndexOperation(MongoNamespace, BsonDocument) - Constructor for class com.mongodb.operation.DropIndexOperation
DropIndexOperation(MongoNamespace, BsonDocument, WriteConcern) - Constructor for class com.mongodb.operation.DropIndexOperation
Construct a new instance.
DropIndexOptions - Class in com.mongodb.client.model
The options to apply to the command when dropping indexes.
DropIndexOptions() - Constructor for class com.mongodb.client.model.DropIndexOptions
 
dropTarget(boolean) - Method in class com.mongodb.client.model.RenameCollectionOptions
Sets if mongod should drop the target of renameCollection prior to renaming the collection.
dropTarget(boolean) - Method in class com.mongodb.operation.RenameCollectionOperation
Sets if mongod should drop the target of renameCollection prior to renaming the collection.
DropUserOperation - Class in com.mongodb.operation
Deprecated.
use CommandWriteOperation directly or the mongod shell helpers.
DropUserOperation(String, String) - Constructor for class com.mongodb.operation.DropUserOperation
Deprecated.
Construct a new instance.
DropUserOperation(String, String, WriteConcern) - Constructor for class com.mongodb.operation.DropUserOperation
Deprecated.
Construct a new instance.
duplicate() - Method in interface org.bson.ByteBuf
Creates a new byte buffer that shares this buffer's content.
duplicate() - Method in class org.bson.ByteBufNIO
 
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.
ELEM_MATCH - Static variable in class com.mongodb.QueryOperators
 
elemMatch(DBObject) - Method in class com.mongodb.QueryBuilder
Equivalent to the $elemMatch operand
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.
EmptyBSONCallback - Class in org.bson
Convenience implementation of BSONCallback that throws UnsupportedOperationException for all methods.
EmptyBSONCallback() - Constructor for class org.bson.EmptyBSONCallback
 
enabled(boolean) - Method in class com.mongodb.connection.SslSettings.Builder
Define whether SSL should be enabled.
enableDiscriminator(boolean) - Method in class org.bson.codecs.pojo.ClassModelBuilder
Enables or disables the use of a discriminator when serializing
encode(BSONObject) - Method in class org.bson.BasicBSONEncoder
 
encode(BSONObject) - Static method in class org.bson.BSON
Encodes a DBObject as a BSON byte array.
encode(BSONObject) - Method in interface org.bson.BSONEncoder
Encode a document into byte array.
encode(BsonWriter, byte[], EncoderContext) - Method in class org.bson.codecs.ByteArrayCodec
 
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, Boolean, EncoderContext) - Method in class org.bson.codecs.BooleanCodec
 
encode(BsonWriter, Byte, EncoderContext) - Method in class org.bson.codecs.ByteCodec
 
encode(BsonWriter, Character, EncoderContext) - Method in class org.bson.codecs.CharacterCodec
 
encode(BsonWriter, Double, EncoderContext) - Method in class org.bson.codecs.DoubleCodec
 
encode(BsonWriter, Float, EncoderContext) - Method in class org.bson.codecs.FloatCodec
 
encode(BsonWriter, Integer, EncoderContext) - Method in class org.bson.codecs.IntegerCodec
 
encode(BsonWriter, Iterable, EncoderContext) - Method in class org.bson.codecs.IterableCodec
 
encode(BsonWriter, Long, EncoderContext) - Method in class org.bson.codecs.LongCodec
 
encode(BsonWriter, Short, EncoderContext) - Method in class org.bson.codecs.ShortCodec
 
encode(BsonWriter, String, EncoderContext) - Method in class org.bson.codecs.StringCodec
 
encode(BsonWriter, BigDecimal, EncoderContext) - Method in class org.bson.codecs.BigDecimalCodec
 
encode(BsonWriter, Instant, EncoderContext) - Method in class org.bson.codecs.jsr310.InstantCodec
Encode an instance of the type parameter T into a BSON value.
encode(BsonWriter, LocalDate, EncoderContext) - Method in class org.bson.codecs.jsr310.LocalDateCodec
Encode an instance of the type parameter T into a BSON value.
encode(BsonWriter, LocalDateTime, EncoderContext) - Method in class org.bson.codecs.jsr310.LocalDateTimeCodec
Encode an instance of the type parameter T into a BSON value.
encode(BsonWriter, LocalTime, EncoderContext) - Method in class org.bson.codecs.jsr310.LocalTimeCodec
Encode an instance of the type parameter T into a BSON value.
encode(BsonWriter, AtomicBoolean, EncoderContext) - Method in class org.bson.codecs.AtomicBooleanCodec
 
encode(BsonWriter, AtomicInteger, EncoderContext) - Method in class org.bson.codecs.AtomicIntegerCodec
 
encode(BsonWriter, AtomicLong, EncoderContext) - Method in class org.bson.codecs.AtomicLongCodec
 
encode(BsonWriter, Date, EncoderContext) - Method in class org.bson.codecs.DateCodec
 
encode(BsonWriter, Map<String, Object>, EncoderContext) - Method in class org.bson.codecs.MapCodec
 
encode(BsonWriter, Pattern, EncoderContext) - Method in class org.bson.codecs.PatternCodec
 
encode(BsonWriter, UUID, EncoderContext) - Method in class org.bson.codecs.UuidCodec
 
encode(BsonWriter, BsonArray, EncoderContext) - Method in class org.bson.codecs.BsonArrayCodec
 
encode(BsonWriter, BsonBinary, EncoderContext) - Method in class org.bson.codecs.BsonBinaryCodec
 
encode(BsonWriter, BsonBoolean, EncoderContext) - Method in class org.bson.codecs.BsonBooleanCodec
 
encode(BsonWriter, BsonDateTime, EncoderContext) - Method in class org.bson.codecs.BsonDateTimeCodec
 
encode(BsonWriter, BsonDbPointer, EncoderContext) - Method in class org.bson.codecs.BsonDBPointerCodec
 
encode(BsonWriter, BsonDecimal128, EncoderContext) - Method in class org.bson.codecs.BsonDecimal128Codec
 
encode(BsonWriter, BsonDocument, EncoderContext) - Method in class org.bson.codecs.BsonDocumentCodec
 
encode(BsonWriter, BsonDocumentWrapper, EncoderContext) - Method in class org.bson.codecs.BsonDocumentWrapperCodec
 
encode(BsonWriter, BsonDouble, EncoderContext) - Method in class org.bson.codecs.BsonDoubleCodec
 
encode(BsonWriter, BsonInt32, EncoderContext) - Method in class org.bson.codecs.BsonInt32Codec
 
encode(BsonWriter, BsonInt64, EncoderContext) - Method in class org.bson.codecs.BsonInt64Codec
 
encode(BsonWriter, BsonJavaScript, EncoderContext) - Method in class org.bson.codecs.BsonJavaScriptCodec
 
encode(BsonWriter, BsonJavaScriptWithScope, EncoderContext) - Method in class org.bson.codecs.BsonJavaScriptWithScopeCodec
 
encode(BsonWriter, BsonMaxKey, EncoderContext) - Method in class org.bson.codecs.BsonMaxKeyCodec
 
encode(BsonWriter, BsonMinKey, EncoderContext) - Method in class org.bson.codecs.BsonMinKeyCodec
 
encode(BsonWriter, BsonNull, EncoderContext) - Method in class org.bson.codecs.BsonNullCodec
 
encode(BsonWriter, BsonObjectId, EncoderContext) - Method in class org.bson.codecs.BsonObjectIdCodec
 
encode(BsonWriter, BsonRegularExpression, EncoderContext) - Method in class org.bson.codecs.BsonRegularExpressionCodec
 
encode(BsonWriter, BsonString, EncoderContext) - Method in class org.bson.codecs.BsonStringCodec
 
encode(BsonWriter, BsonSymbol, EncoderContext) - Method in class org.bson.codecs.BsonSymbolCodec
 
encode(BsonWriter, BsonTimestamp, EncoderContext) - Method in class org.bson.codecs.BsonTimestampCodec
 
encode(BsonWriter, BsonUndefined, EncoderContext) - Method in class org.bson.codecs.BsonUndefinedCodec
 
encode(BsonWriter, BsonValue, EncoderContext) - Method in class org.bson.codecs.BsonValueCodec
 
encode(BsonWriter, Document, EncoderContext) - Method in class org.bson.codecs.DocumentCodec
 
encode(BsonWriter, RawBsonDocument, EncoderContext) - Method in class org.bson.codecs.RawBsonDocumentCodec
 
encode(BsonWriter, Binary, EncoderContext) - Method in class org.bson.codecs.BinaryCodec
 
encode(BsonWriter, BSONTimestamp, EncoderContext) - Method in class com.mongodb.BSONTimestampCodec
 
encode(BsonWriter, Code, EncoderContext) - Method in class org.bson.codecs.CodeCodec
 
encode(BsonWriter, CodeWithScope, EncoderContext) - Method in class org.bson.codecs.CodeWithScopeCodec
 
encode(BsonWriter, Decimal128, EncoderContext) - Method in class org.bson.codecs.Decimal128Codec
 
encode(BsonWriter, MaxKey, EncoderContext) - Method in class org.bson.codecs.MaxKeyCodec
 
encode(BsonWriter, MinKey, EncoderContext) - Method in class org.bson.codecs.MinKeyCodec
 
encode(BsonWriter, ObjectId, EncoderContext) - Method in class org.bson.codecs.ObjectIdCodec
 
encode(BsonWriter, Symbol, EncoderContext) - Method in class org.bson.codecs.SymbolCodec
 
encode(BsonWriter, T, EncoderContext) - Method in interface org.bson.codecs.Encoder
Encode an instance of the type parameter T into a BSON value.
encoder(DBEncoder) - Method in class com.mongodb.client.model.DBCollectionRemoveOptions
Sets the encoder
encoder(DBEncoder) - Method in class com.mongodb.client.model.DBCollectionUpdateOptions
Sets the encoder
Encoder<T> - Interface in org.bson.codecs
Instances of this class are capable of encoding an instance of the type parameter T into a BSON value.
EncoderContext - Class in org.bson.codecs
The context for encoding values to BSON.
EncoderContext.Builder - Class in org.bson.codecs
A builder for EncoderContext instances.
encodeWithChildContext(Encoder<T>, BsonWriter, T) - Method in class org.bson.codecs.EncoderContext
Creates a child context based on this and serializes the value with it to the writer.
END_OF_ARRAY - org.bson.AbstractBsonReader.State
The reader is positioned at the end of an array.
END_OF_DOCUMENT - org.bson.AbstractBsonReader.State
The reader is positioned at the end of a document.
END_OF_DOCUMENT - org.bson.BsonType
Not a real BSON type.
entrySet() - Method in class org.bson.BsonDocument
 
entrySet() - Method in class org.bson.BsonDocumentWrapper
 
entrySet() - Method in class org.bson.Document
 
entrySet() - Method in class org.bson.LazyBSONObject
Gets the entry set for all the key/value pairs in this BSONObject.
entrySet() - Method in class org.bson.RawBsonDocument
 
EOO - Static variable in class org.bson.BSON
 
EPSG_4326 - Static variable in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
The EPSG:4326 Coordinate Reference System.
EPSG_4326_STRICT_WINDING - Static variable in class com.mongodb.client.model.geojson.NamedCoordinateReferenceSystem
A custom MongoDB EPSG:4326 Coordinate Reference System that uses a strict counter-clockwise winding order.
eq(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the field name equals the specified value.
eq(TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of _id field equals the specified value.
equals(Object) - Method in class com.mongodb.BasicDBObject
 
equals(Object) - Method in class com.mongodb.bulk.BulkWriteError
 
equals(Object) - Method in class com.mongodb.bulk.BulkWriteUpsert
 
equals(Object) - Method in class com.mongodb.bulk.WriteConcernError
 
equals(Object) - Method in class com.mongodb.BulkWriteError
 
equals(Object) - Method in exception com.mongodb.BulkWriteException
 
equals(Object) - Method in class com.mongodb.BulkWriteUpsert
 
equals(Object) - Method in class com.mongodb.client.gridfs.model.GridFSFile
 
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.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.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.DBAddress
Deprecated.
 
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.MongoClientOptions
 
equals(Object) - Method in class com.mongodb.MongoClientURI
 
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.MongoOptions
Deprecated.
 
equals(Object) - Method in class com.mongodb.ReadConcern
 
equals(Object) - Method in class com.mongodb.selector.CompositeServerSelector
 
equals(Object) - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
 
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.WriteConcernError
 
equals(Object) - Method in class com.mongodb.WriteError
 
equals(Object) - Method in class org.bson.BasicBSONObject
Compares two documents according to their serialized form, ignoring the order of keys.
equals(Object) - Method in class org.bson.BsonArray
 
equals(Object) - Method in class org.bson.BsonBinary
 
equals(Object) - Method in class org.bson.BsonBoolean
 
equals(Object) - Method in class org.bson.BsonDateTime
 
equals(Object) - Method in class org.bson.BsonDbPointer
 
equals(Object) - Method in class org.bson.BsonDecimal128
 
equals(Object) - Method in class org.bson.BsonDocument
 
equals(Object) - Method in class org.bson.BsonDocumentWrapper
 
equals(Object) - Method in class org.bson.BsonDouble
 
equals(Object) - Method in class org.bson.BsonElement
 
equals(Object) - Method in class org.bson.BsonInt32
 
equals(Object) - Method in class org.bson.BsonInt64
 
equals(Object) - Method in class org.bson.BsonJavaScript
 
equals(Object) - Method in class org.bson.BsonJavaScriptWithScope
 
equals(Object) - Method in class org.bson.BsonMaxKey
 
equals(Object) - Method in class org.bson.BsonMinKey
 
equals(Object) - Method in class org.bson.BsonNull
 
equals(Object) - Method in class org.bson.BsonObjectId
 
equals(Object) - Method in class org.bson.BsonRegularExpression
 
equals(Object) - Method in class org.bson.BsonString
 
equals(Object) - Method in class org.bson.BsonSymbol
Will compare equal to a String that is equal to the String that this holds
equals(Object) - Method in class org.bson.BsonTimestamp
 
equals(Object) - Method in class org.bson.BsonUndefined
 
equals(Object) - Method in class org.bson.codecs.BsonTypeClassMap
 
equals(Object) - Method in class org.bson.codecs.DocumentCodecProvider
 
equals(Object) - Method in class org.bson.codecs.IterableCodecProvider
 
equals(Object) - Method in class org.bson.codecs.MapCodecProvider
 
equals(Object) - Method in class org.bson.codecs.pojo.ClassModel
 
equals(Object) - Method in class org.bson.codecs.pojo.PropertyModel
 
equals(Object) - Method in class org.bson.codecs.ValueCodecProvider
 
equals(Object) - Method in class org.bson.Document
 
equals(Object) - Method in class org.bson.LazyBSONObject
 
equals(Object) - Method in class org.bson.RawBsonArray
 
equals(Object) - Method in class org.bson.RawBsonDocument
 
equals(Object) - Method in class org.bson.types.Binary
 
equals(Object) - Method in class org.bson.types.BSONTimestamp
 
equals(Object) - Method in class org.bson.types.Code
 
equals(Object) - Method in class org.bson.types.CodeWithScope
 
equals(Object) - Method in class org.bson.types.CodeWScope
 
equals(Object) - Method in class org.bson.types.Decimal128
Returns true if the encoded representation of this instance is the same as the encoded representation of o.
equals(Object) - Method in class org.bson.types.MaxKey
 
equals(Object) - Method in class org.bson.types.MinKey
 
equals(Object) - Method in class org.bson.types.ObjectId
 
equals(Object) - Method in class org.bson.types.Symbol
Will compare equal to a String that is equal to the String that this holds
error(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the ERROR level.
error(String) - Method in interface org.bson.diagnostics.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(String, Throwable) - Method in interface org.bson.diagnostics.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.
ErrorCategory - Enum in com.mongodb
A categorization of errors returned by a MongoDB server command.
estimatedDocumentCount() - Method in interface com.mongodb.client.MongoCollection
Gets an estimate of the count of documents in a collection using collection metadata.
estimatedDocumentCount(SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Gets an estimate of the count of documents in a collection using collection metadata.
estimatedDocumentCount(EstimatedDocumentCountOptions) - Method in interface com.mongodb.client.MongoCollection
Gets an estimate of the count of documents in a collection using collection metadata.
estimatedDocumentCount(EstimatedDocumentCountOptions, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Gets an estimate of the count of documents in a collection using collection metadata.
EstimatedDocumentCountOptions - Class in com.mongodb.client.model
The options an estimated count operation.
EstimatedDocumentCountOptions() - Constructor for class com.mongodb.client.model.EstimatedDocumentCountOptions
 
eval(String, Object...) - Method in class com.mongodb.DB
eventLoopGroup(EventLoopGroup) - Method in class com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
Sets the event loop group.
exception(Throwable) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the exception thrown while attempting to determine the server description.
exclude(String...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that excludes all of the given fields.
exclude(List<String>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that excludes all of the given fields.
excludeId() - Static method in class com.mongodb.client.model.Projections
Creates a projection that excludes the _id field.
execute() - Method in class com.mongodb.BulkWriteOperation
Execute the bulk write operation with the default write concern of the collection from which this came.
execute(ReadBinding) - Method in class com.mongodb.operation.AggregateOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.ChangeStreamOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.CommandReadOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.CountOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.CurrentOpOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.DistinctOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.FindOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.FsyncUnlockOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.GroupOperation
Will return a cursor of Documents containing the results of the group operation.
execute(ReadBinding) - Method in class com.mongodb.operation.ListCollectionsOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.ListDatabasesOperation
Executing this will return a list of all the databases names in the MongoDB instance.
execute(ReadBinding) - Method in class com.mongodb.operation.ListIndexesOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Executing this will return a cursor with your results and the statistics in.
execute(ReadBinding) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
 
execute(ReadBinding) - Method in interface com.mongodb.operation.ReadOperation
General execute which can return anything of type T
execute(ReadBinding) - Method in class com.mongodb.operation.UserExistsOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.AggregateToCollectionOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.BaseWriteOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.CommandWriteOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.CommitTransactionOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateCollectionOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateIndexesOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateUserOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.CreateViewOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropCollectionOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropDatabaseOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropIndexOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.DropUserOperation
Deprecated.
 
execute(WriteBinding) - Method in class com.mongodb.operation.FsyncUnlockOperation
execute(WriteBinding) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Executing this will return a cursor with your results in.
execute(WriteBinding) - Method in class com.mongodb.operation.MixedBulkWriteOperation
Executes a bulk write operation.
execute(WriteBinding) - Method in class com.mongodb.operation.RenameCollectionOperation
Rename the collection with oldCollectionName in database databaseName to the newCollectionName.
execute(WriteBinding) - Method in class com.mongodb.operation.TransactionOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.UpdateUserOperation
Deprecated.
 
execute(WriteBinding) - Method in interface com.mongodb.operation.WriteOperation
General execute which can return anything of type T
execute(AsyncReadOperation<T>, ReadPreference, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the read operation with the given read preference.
execute(AsyncReadOperation<T>, ReadPreference, ClientSession, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the read operation with the given read preference.
execute(AsyncWriteOperation<T>, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the write operation.
execute(AsyncWriteOperation<T>, ClientSession, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Deprecated.
Execute the write operation.
execute(ReadOperation<T>, ReadPreference) - Method in interface com.mongodb.operation.OperationExecutor
Deprecated.
Execute the read operation with the given read preference.
execute(WriteOperation<T>) - Method in interface com.mongodb.operation.OperationExecutor
Deprecated.
Execute the write operation.
execute(WriteConcern) - Method in class com.mongodb.BulkWriteOperation
Execute the bulk write operation with the given write concern.
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.AggregateOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ChangeStreamOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.DistinctOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.FindOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.GroupOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ListCollectionsOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ListDatabasesOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.ListIndexesOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<MapReduceAsyncBatchCursor<T>>) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<Boolean>) - Method in class com.mongodb.operation.UserExistsOperation
Deprecated.
 
executeAsync(AsyncReadBinding, SingleResultCallback<Long>) - Method in class com.mongodb.operation.CountOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<List<AsyncBatchCursor<T>>>) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncReadOperation
General execute which can return anything of type T
executeAsync(AsyncReadBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.CommandReadOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.MixedBulkWriteOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<MapReduceStatistics>) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.BaseWriteOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.AggregateToCollectionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CommitTransactionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateCollectionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateIndexesOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateUserOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.CreateViewOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropCollectionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropDatabaseOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropIndexOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.DropUserOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.RenameCollectionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.TransactionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.UpdateUserOperation
Deprecated.
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncWriteOperation
General execute which can return anything of type T
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.BaseFindAndModifyOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.CommandWriteOperation
 
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(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $exists operand
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.
EXISTS - Static variable in class com.mongodb.QueryOperators
 
expireAfter(Long, TimeUnit) - Method in class com.mongodb.bulk.IndexRequest
Sets the time to live for documents in the collection
expireAfter(Long, TimeUnit) - Method in class com.mongodb.client.model.IndexOptions
Sets the time to live for documents in the collection
explain() - Method in class com.mongodb.DBCursor
Returns an object containing basic information about the execution of the query that created this cursor.
EXPLAIN - Static variable in class com.mongodb.QueryOperators
 
explainAggregate(List<? extends DBObject>, AggregationOptions) - Method in class com.mongodb.DBCollection
Return the explain plan for the aggregation pipeline.
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.
EXTENDED - org.bson.json.JsonMode
Standard extended JSON representation.
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.

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
 
FACTORY - Static variable in class com.mongodb.DefaultDBCallback
 
FACTORY - Static variable in class com.mongodb.DefaultDBDecoder
 
FACTORY - Static variable in class com.mongodb.DefaultDBEncoder
 
FACTORY - Static variable in class com.mongodb.LazyDBDecoder
 
failed(Throwable) - Method in interface com.mongodb.connection.AsyncCompletionHandler
Invoked when an operation fails.
FALSE - Static variable in class org.bson.BsonBoolean
 
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
FieldNameValidator - Interface in org.bson
A field name validator, for use by BSON writers to validate field names as documents are encoded.
fields(List<? extends Bson>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that combines the list of projections into a single one.
fields(Bson...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that combines the list of projections into a single one.
filter(DBObject) - Method in class com.mongodb.client.model.DBCollectionDistinctOptions
Sets the selection query to determine the subset of documents from which to retrieve the distinct values.
filter(BsonDocument) - Method in class com.mongodb.operation.CountOperation
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.DistinctOperation
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindAndDeleteOperation
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindAndReplaceOperation
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindAndUpdateOperation
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.FindOperation
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.GroupOperation
Sets the optional query filter to determine which documents in the collection to process.
filter(BsonDocument) - Method in class com.mongodb.operation.ListCollectionsOperation
Sets the query filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.ListDatabasesOperation
Sets the query filter to apply to the returned database names.
filter(BsonDocument) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Sets the filter to apply to the query.
filter(BsonDocument) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Sets the filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.async.client.DistinctIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.async.client.FindIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.async.client.gridfs.GridFSFindIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.async.client.ListCollectionsIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.async.client.ListDatabasesIterable
Sets the query filter to apply to the returned database names.
filter(Bson) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.client.DistinctIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.client.FindIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.client.gridfs.GridFSFindIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.client.ListCollectionsIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.client.ListDatabasesIterable
Sets the query filter to apply to the returned database names.
filter(Bson) - Method in interface com.mongodb.client.MapReduceIterable
Sets the query filter to apply to the query.
Filters - Class in com.mongodb.client.model
A factory for query filters.
finalizeFunction(String) - Method in interface com.mongodb.async.client.MapReduceIterable
Sets the JavaScript function that follows the reduce method and modifies the output.
finalizeFunction(String) - Method in interface com.mongodb.client.MapReduceIterable
Sets the JavaScript function that follows the reduce method and modifies the output.
finalizeFunction(BsonJavaScript) - Method in class com.mongodb.operation.GroupOperation
Sets the function that runs each item in the result set before returning the final value.
finalizeFunction(BsonJavaScript) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Sets the JavaScript function that follows the reduce method and modifies the output.
finalizeFunction(BsonJavaScript) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Sets the JavaScript function that follows the reduce method and modifies the output.
find() - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Finds all documents in the files collection.
find() - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find() - Method in interface com.mongodb.client.gridfs.GridFSBucket
Finds all documents in the files collection.
find() - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find() - Method in class com.mongodb.DBCollection
Select all documents in collection and get a cursor to the selected documents.
find(ClientSession) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Finds all documents in the files collection.
find(ClientSession) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(ClientSession, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(ClientSession, Bson) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Finds all documents in the collection that match the filter.
find(ClientSession, Bson) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(ClientSession, Bson, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(ClientSession) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Finds all documents in the files collection.
find(ClientSession) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(ClientSession, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(ClientSession, Bson) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Finds all documents in the collection that match the filter.
find(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(ClientSession, Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(DBObject) - Method in class com.mongodb.BulkWriteOperation
Start building a write request to add to the bulk write operation.
find(DBObject) - Method in class com.mongodb.DBCollection
Select documents in collection and get a cursor to the selected documents.
find(DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds a list of files matching the given query.
find(DBObject, DBCollectionFindOptions) - Method in class com.mongodb.DBCollection
Select documents in collection and get a cursor to the selected documents.
find(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Select documents in collection and get a cursor to the selected documents.
find(DBObject, DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds a list of files matching the given query.
find(DBObject, DBObject, int, int) - Method in class com.mongodb.DBCollection
Deprecated.
find(DBObject, DBObject, int, int, int) - Method in class com.mongodb.DBCollection
find(Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(String) - Method in class com.mongodb.gridfs.GridFS
Finds a list of files matching the given filename.
find(String, DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds a list of files matching the given filename.
find(Bson) - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Finds all documents in the collection that match the filter.
find(Bson) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(Bson) - Method in interface com.mongodb.client.gridfs.GridFSBucket
Finds all documents in the collection that match the filter.
find(Bson) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(Bson, Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(Bson, Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(ObjectId) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given objectId.
FindAndDeleteOperation<T> - Class in com.mongodb.operation
An operation that atomically finds and deletes a single document.
FindAndDeleteOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
Construct a new instance.
FindAndDeleteOperation(MongoNamespace, WriteConcern, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
FindAndDeleteOperation(MongoNamespace, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
findAndModify(DBObject, DBCollectionFindAndModifyOptions) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, boolean, long, TimeUnit) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, boolean, long, TimeUnit, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, long, TimeUnit) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, long, TimeUnit, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndRemove(DBObject) - Method in class com.mongodb.DBCollection
Atomically remove and return a single document.
FindAndReplaceOperation<T> - Class in com.mongodb.operation
An operation that atomically finds and replaces a single document.
FindAndReplaceOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
Construct a new instance.
FindAndReplaceOperation(MongoNamespace, WriteConcern, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
FindAndReplaceOperation(MongoNamespace, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
FindAndUpdateOperation<T> - Class in com.mongodb.operation
An operation that atomically finds and updates a single document.
FindAndUpdateOperation(MongoNamespace, WriteConcern, boolean, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
Construct a new instance.
FindAndUpdateOperation(MongoNamespace, WriteConcern, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
FindAndUpdateOperation(MongoNamespace, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
findByValue(int) - Static method in enum org.bson.BsonType
Gets the BsonType that corresponds to the given int value.
FindIterable<T> - Interface in com.mongodb.async.client
Iterable for find.
FindIterable<TResult> - Interface in com.mongodb.client
Iterable for find.
findOne() - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(DBObject) - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given query.
findOne(DBObject, DBCollectionFindOptions) - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(DBObject, DBObject, DBObject) - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(DBObject, DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Get a single document from collection.
findOne(Object) - Method in class com.mongodb.DBCollection
Get a single document from collection by '_id'.
findOne(Object, DBObject) - Method in class com.mongodb.DBCollection
Get a single document from collection by '_id'.
findOne(String) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given filename.
findOne(ObjectId) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given objectId.
findOneAndDelete(ClientSession, Bson, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(ClientSession, Bson, FindOneAndDeleteOptions, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(ClientSession, Bson) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(ClientSession, Bson, FindOneAndDeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(Bson) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(Bson, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(Bson, FindOneAndDeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(Bson, FindOneAndDeleteOptions, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and remove it.
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
 
findOneAndReplace(ClientSession, Bson, TDocument, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(ClientSession, Bson, TDocument, FindOneAndReplaceOptions, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(ClientSession, Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(ClientSession, Bson, TDocument, FindOneAndReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(Bson, TDocument, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(Bson, TDocument, FindOneAndReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(Bson, TDocument, FindOneAndReplaceOptions, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and replace it.
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
 
findOneAndUpdate(ClientSession, Bson, Bson, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(ClientSession, Bson, Bson, FindOneAndUpdateOptions, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(ClientSession, Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(ClientSession, Bson, Bson, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(Bson, Bson, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(Bson, Bson, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(Bson, Bson, FindOneAndUpdateOptions, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.client.MongoCollection
Atomically find a document and update it.
FindOneAndUpdateOptions - Class in com.mongodb.client.model
The options to apply to an operation that atomically finds a document and updates it.
FindOneAndUpdateOptions() - Constructor for class com.mongodb.client.model.FindOneAndUpdateOptions
 
FindOperation<T> - Class in com.mongodb.operation
An operation that queries a collection using the provided criteria.
FindOperation(MongoNamespace, Decoder<T>) - Constructor for class com.mongodb.operation.FindOperation
Construct a new instance.
FindOptions - Class in com.mongodb.client.model
The options to apply to a find operation (also commonly referred to as a query).
FindOptions() - Constructor for class com.mongodb.client.model.FindOptions
Construct a new instance.
FindOptions(FindOptions) - Constructor for class com.mongodb.client.model.FindOptions
Construct a new instance by making a shallow copy of the given model.
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() - Method in interface com.mongodb.client.MongoIterable
Helper to return the first item in the iterator or null.
first(SingleResultCallback<TResult>) - Method in interface com.mongodb.async.client.MongoIterable
Helper to return the first item in the iterator or null.
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.
flip() - Method in interface org.bson.ByteBuf
Flips this buffer.
flip() - Method in class org.bson.ByteBufNIO
 
FloatCodec - Class in org.bson.codecs
Encodes and decodes Float objects.
FloatCodec() - Constructor for class org.bson.codecs.FloatCodec
 
flush() - Method in class com.mongodb.client.gridfs.GridFSUploadStream
 
flush() - Method in class org.bson.BsonBinaryWriter
 
flush() - Method in class org.bson.BsonDocumentWriter
 
flush() - Method in interface org.bson.BsonWriter
Flushes any pending data to the output destination.
flush() - Method in class org.bson.json.JsonWriter
 
forEach(Block<? super TResult>) - Method in interface com.mongodb.client.MongoIterable
Iterates over all documents in the view, applying the given block to each.
forEach(Block<? super TResult>, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoIterable
Iterates over all documents in the view, applying the given block to each, and completing the returned future after all documents have been iterated, or an exception has occurred.
fromCodecs(List<? extends Codec<?>>) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of Codec instances.
fromCodecs(Codec<?>...) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of Codec instances.
fromErrorCode(int) - Static method in enum com.mongodb.ErrorCategory
Translate an error code into an error category
fromIEEE754BIDEncoding(long, long) - Static method in class org.bson.types.Decimal128
Create an instance with the given high and low order bits representing this Decimal128 as an IEEE 754-2008 128-bit decimal floating point using the BID encoding scheme.
fromInt(int) - Static method in enum com.mongodb.client.model.CollationStrength
Gets the order from the given integer representation.
fromInt(int) - Static method in enum com.mongodb.operation.OrderBy
Gets the order from the given integer representation.
fromMechanismName(String) - Static method in enum com.mongodb.AuthenticationMechanism
Gets the mechanism by its name.
fromProviders(List<? extends CodecProvider>) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of CodecProvider instances.
fromProviders(CodecProvider...) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of CodecProvider instances.
fromRegistries(List<? extends CodecRegistry>) - Static method in class org.bson.codecs.configuration.CodecRegistries
A CodecRegistry that combines the given CodecRegistry instances into a single registry.
fromRegistries(CodecRegistry...) - Static method in class org.bson.codecs.configuration.CodecRegistries
A CodecRegistry that combines the given CodecRegistry instances into a single registry.
fromString(String) - Static method in enum com.mongodb.client.model.BucketGranularity
Tries find the enum instance for the given value
fromString(String) - Static method in enum com.mongodb.client.model.changestream.FullDocument
Returns the ChangeStreamFullDocument from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.changestream.OperationType
Returns the ChangeStreamOperationType from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.CollationAlternate
Returns the CollationAlternate from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.CollationCaseFirst
Returns the CollationCaseFirst from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.CollationMaxVariable
Returns the CollationMaxVariable from the string value.
fromString(String) - Static method in enum com.mongodb.client.model.ValidationAction
Returns the validationAction from the string representation of a validation action.
fromString(String) - Static method in enum com.mongodb.client.model.ValidationLevel
Returns the ValidationLevel from the string representation of the validation level.
fromString(String) - Static method in enum com.mongodb.ReadConcernLevel
Returns the ReadConcern from the string read concern level.
fromThrowable(Throwable) - Static method in exception com.mongodb.MongoException
Static helper to create or cast a MongoException from a throwable
fromThrowableNonNull(Throwable) - Static method in exception com.mongodb.MongoException
Static helper to create or cast a MongoException from a throwable
fsync - Variable in class com.mongodb.MongoOptions
Deprecated.
The "fsync" value of the global WriteConcern.
fsync() - Method in class com.mongodb.WriteConcern
Deprecated.
fsync(boolean) - Method in class com.mongodb.Mongo
Forces the master server to fsync the RAM data to disk This is done automatically by the server at intervals, but can be forced for better reliability.
FSYNC_SAFE - Static variable in class com.mongodb.WriteConcern
Deprecated.
fsyncAndLock() - Method in class com.mongodb.Mongo
Forces the master server to fsync the RAM data to disk, then lock all writes.
FSYNCED - Static variable in class com.mongodb.WriteConcern
Deprecated.
FsyncUnlockOperation - Class in com.mongodb.operation
Unlocks the MongoDB server, allowing write operations to go through.
FsyncUnlockOperation() - Constructor for class com.mongodb.operation.FsyncUnlockOperation
 
fullDocument(FullDocument) - Method in interface com.mongodb.async.client.ChangeStreamIterable
Sets the fullDocument value.
fullDocument(FullDocument) - Method in interface com.mongodb.client.ChangeStreamIterable
Sets the fullDocument value.
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.
FUNCTION - org.bson.BsonBinarySubType
A function.

G

generate() - Method in interface org.bson.codecs.IdGenerator
Generates an ID for a MongoDB Document.
generate() - Method in class org.bson.codecs.ObjectIdGenerator
 
generateIdIfAbsentFromDocument(DBObject) - Method in class com.mongodb.DBObjectCodec
 
generateIdIfAbsentFromDocument(BsonDocument) - Method in class org.bson.codecs.BsonDocumentCodec
 
generateIdIfAbsentFromDocument(Document) - Method in class org.bson.codecs.DocumentCodec
 
generateIdIfAbsentFromDocument(T) - Method in interface org.bson.codecs.CollectibleCodec
Generates a value for the _id field on the given document, if the document does not have one.
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() - Method in class com.mongodb.QueryBuilder
Creates a DBObject query to be used for the driver's find operations
get() - Method in class org.bson.BasicBSONCallback
 
get() - Method in interface org.bson.BSONCallback
Returns the finished top-level Document.
get() - Method in interface org.bson.ByteBuf
Relative get method.
get() - Method in class org.bson.ByteBufNIO
 
get() - Method in class org.bson.EmptyBSONCallback
 
get() - Method in class org.bson.LazyBSONCallback
 
get() - Static method in class org.bson.types.ObjectId
Gets a new object id.
get(byte[]) - Method in interface org.bson.ByteBuf
Relative bulk get method.
get(byte[]) - Method in class org.bson.ByteBufNIO
 
get(byte[], int, int) - Method in interface org.bson.ByteBuf
Relative bulk get method.
get(byte[], int, int) - Method in class org.bson.ByteBufNIO
 
get(int) - Method in class org.bson.BsonArray
 
get(int) - Method in interface org.bson.ByteBuf
Absolute get method.
get(int) - Method in class org.bson.ByteBufNIO
 
get(int) - Method in class org.bson.LazyBSONList
 
get(int, byte[]) - Method in interface org.bson.ByteBuf
Absolute bulk get method.
get(int, byte[]) - Method in class org.bson.ByteBufNIO
 
get(int, byte[], int, int) - Method in interface org.bson.ByteBuf
Absolute bulk get method.
get(int, byte[], int, int) - Method in class org.bson.ByteBufNIO
 
get(ReflectionDBObject, String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
Gets the value for the given field from the given document.
get(Class<T>) - Method in interface org.bson.codecs.configuration.CodecRegistry
Gets a Codec for the given Class.
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
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.BsonValueCodecProvider
 
get(Class<T>, CodecRegistry) - Method in interface org.bson.codecs.configuration.CodecProvider
Get a Codec using the given context, which includes, most importantly, the Class for which a Codec is required.
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.DocumentCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.IterableCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.jsr310.Jsr310CodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.MapCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.pojo.PojoCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.UuidCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.ValueCodecProvider
 
get(Object) - Method in class org.bson.BsonDocument
 
get(Object) - Method in class org.bson.BsonDocumentWrapper
 
get(Object) - Method in class org.bson.Document
 
get(Object) - Method in class org.bson.RawBsonDocument
 
get(Object) - Method in class org.bson.util.ClassMap
Gets the value associated with either this Class or a superclass of this class.
get(Object, Class<T>) - Method in class org.bson.Document
Gets the value of the given key, casting it to the given Class<T>.
get(Object, BsonValue) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
get(Object, T) - Method in class org.bson.Document
Gets the value of the given key, casting it to Class<T> or returning the default value if null.
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get(String) - Method in class com.mongodb.ReflectionDBObject
 
get(String) - Method in class org.bson.BasicBSONObject
Gets a value from this object
get(String) - Method in interface org.bson.BSONObject
Gets a field from this object by a given name.
get(String) - Method in class org.bson.LazyBSONObject
 
get(String) - Method in class org.bson.types.BasicBSONList
Gets a value at an index.
get(BsonType) - Method in class org.bson.codecs.BsonTypeClassMap
Gets the Class that is mapped to the given BSON type.
get(BsonType) - Method in class org.bson.codecs.BsonTypeCodecMap
Gets the Codec mapped to the given bson type.
get(TypeWithTypeParameters<T>) - Method in interface org.bson.codecs.pojo.PropertyCodecRegistry
Gets a Codec for the given Class.
get(TypeWithTypeParameters<T>, PropertyCodecRegistry) - Method in interface org.bson.codecs.pojo.PropertyCodecProvider
Get a Codec using the given context, which includes, most importantly, the class and bound type parameters for which a Codec is required.
get(S) - Method in interface org.bson.codecs.pojo.PropertyAccessor
Gets the value for a given PropertyModel instance.
get_id() - Method in class com.mongodb.ReflectionDBObject
Gets the _id
getAcceptableLatencyDifference(TimeUnit) - Method in class com.mongodb.selector.LatencyMinimizingServerSelector
Gets the acceptable latency difference.
getAction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the output action, one of: "replace", "merge", "reduce".
getAddress() - Method in class com.mongodb.connection.QueryResult
Gets the server address.
getAddress() - Method in class com.mongodb.connection.ServerDescription
Gets the address of this server
getAddress() - Method in class com.mongodb.connection.ServerId
Gets the server address.
getAddress() - Method in interface com.mongodb.connection.Stream
The address that this stream is connected to.
getAddress() - Method in class com.mongodb.Mongo
Gets the address of the current master
getAddress() - Method in class com.mongodb.ServerCursor
Gets the server address.
getAliases() - Method in class com.mongodb.client.gridfs.model.GridFSFile
Deprecated.
any aliases should be stored in the metadata document instead.
getAliases() - Method in class com.mongodb.gridfs.GridFSFile
Gets the aliases from the metadata.
getAll() - Method in class com.mongodb.connection.ClusterDescription
getAllAddress() - Method in class com.mongodb.Mongo
Gets a list of all server addresses used when this Mongo was created
getAllowDiskUse() - Method in class com.mongodb.AggregationOptions
If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of RAM.
getAllowDiskUse() - Method in class com.mongodb.operation.AggregateOperation
Whether writing to temporary files is enabled.
getAllowDiskUse() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Whether writing to temporary files is enabled.
getAlternate() - Method in class com.mongodb.client.model.Collation
Returns the collation alternate
getAncestry(Class<T>) - Static method in class org.bson.util.ClassMap
Helper method that walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
getAnnotations() - Method in class org.bson.codecs.pojo.ClassModelBuilder
 
getAny() - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getAnyPrimaryOrSecondary() - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getAnyPrimaryOrSecondary(TagSet) - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getApplicationName() - Method in class com.mongodb.async.client.MongoClientSettings
Deprecated.
Gets the logical name of the application using this MongoClient.
getApplicationName() - Method in class com.mongodb.ConnectionString
Gets the logical name of the application.
getApplicationName() - Method in class com.mongodb.embedded.client.MongoClientSettings
Gets the logical name of the application using this MongoClient.
getApplicationName() - Method in class com.mongodb.MongoClientOptions
Gets the logical name of the application using this MongoClient.
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
getArray(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonArray, or throws if not.
getArray(Object, BsonArray) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getArrayFilters() - Method in class com.mongodb.bulk.UpdateRequest
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.BulkUpdateRequestBuilder
Gets the array filters to apply to the update operation
getArrayFilters() - Method in class com.mongodb.client.model.DBCollectionFindAndModifyOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.client.model.DBCollectionUpdateOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.client.model.UpdateOptions
Returns the array filters option
getArrayFilters() - Method in class com.mongodb.operation.FindAndUpdateOperation
Returns the array filters option
getAuthenticationMechanism() - Method in class com.mongodb.MongoCredential
Gets the mechanism
getBackwards() - Method in class com.mongodb.client.model.Collation
Returns the backwards value
getBatchSize() - Method in class com.mongodb.AggregationOptions
The size of batches to use when iterating over results.
getBatchSize() - Method in interface com.mongodb.async.AsyncBatchCursor
Gets the batch size to use when requesting the next batch.
getBatchSize() - Method in interface com.mongodb.async.client.MongoIterable
Gets the number of documents to return per batch or null if not set.
getBatchSize() - Method in class com.mongodb.client.model.DBCollectionFindOptions
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.client.model.FindOptions
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.client.model.ParallelCollectionScanOptions
Deprecated.
Gets the batch size to use for each cursor.
getBatchSize() - Method in class com.mongodb.DBCursor
Gets the batch size.
getBatchSize() - Method in class com.mongodb.operation.AggregateOperation
Gets the number of documents to return per batch.
getBatchSize() - Method in interface com.mongodb.operation.BatchCursor
Gets the batch size to use when requesting the next batch.
getBatchSize() - Method in class com.mongodb.operation.ChangeStreamOperation
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.FindOperation
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.ListCollectionsOperation
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.ListIndexesOperation
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Gets the batch size to use for each cursor.
getBatchSize() - Method in class com.mongodb.ParallelScanOptions
Gets the batch size to use for each cursor.
getBinary(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonBinary, or throws if not.
getBinary(Object, BsonBinary) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getBinaryConverter() - Method in class org.bson.json.JsonWriterSettings
A converter from BSON Binary values to JSON.
getBinaryWriterSettings() - Method in class org.bson.BsonBinaryWriter
 
getBits() - Method in class com.mongodb.bulk.IndexRequest
Gets the number of precision of the stored geohash value of the location data in 2d indexes.
getBits() - Method in class com.mongodb.client.model.IndexOptions
Gets the number of precision of the stored geohash value of the location data in 2d indexes.
getBoolean(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonBoolean, or throws if not.
getBoolean(Object) - Method in class org.bson.Document
Gets the value of the given key as a Boolean.
getBoolean(Object, boolean) - Method in class org.bson.Document
Gets the value of the given key as a primitive boolean.
getBoolean(Object, BsonBoolean) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getBoolean(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a boolean.
getBoolean(String, boolean) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a boolean
getBooleanConverter() - Method in class org.bson.json.JsonWriterSettings
A converter from BSON Boolean values to JSON.
getBsonInput() - Method in class org.bson.BsonBinaryReader
Gets the BSON input backing this instance.
getBsonOutput() - Method in class org.bson.BsonBinaryWriter
Gets the BSON output backing this instance.
getBSONSize() - Method in class org.bson.LazyBSONObject
Gets the size in bytes of the BSON document.
getBsonType() - Method in class org.bson.BsonArray
 
getBsonType() - Method in class org.bson.BsonBinary
 
getBsonType() - Method in class org.bson.BsonBoolean
 
getBsonType() - Method in class org.bson.BsonDateTime
 
getBsonType() - Method in class org.bson.BsonDbPointer
 
getBsonType() - Method in class org.bson.BsonDecimal128
 
getBsonType() - Method in class org.bson.BsonDocument
 
getBsonType() - Method in class org.bson.BsonDouble
 
getBsonType() - Method in class org.bson.BsonInt32
 
getBsonType() - Method in class org.bson.BsonInt64
 
getBsonType() - Method in class org.bson.BsonJavaScript
 
getBsonType() - Method in class org.bson.BsonJavaScriptWithScope
 
getBsonType() - Method in class org.bson.BsonMaxKey
 
getBsonType() - Method in class org.bson.BsonMinKey
 
getBsonType() - Method in class org.bson.BsonNull
 
getBsonType() - Method in class org.bson.BsonObjectId
 
getBsonType() - Method in class org.bson.BsonRegularExpression
 
getBsonType() - Method in class org.bson.BsonString
 
getBsonType() - Method in class org.bson.BsonSymbol
 
getBsonType() - Method in class org.bson.BsonTimestamp
 
getBsonType() - Method in class org.bson.BsonUndefined
 
getBsonType() - Method in class org.bson.BsonValue
Gets the BSON type of this value.
getBsonTypeClassMap() - Static method in class org.bson.codecs.BsonValueCodecProvider
Gets the BsonTypeClassMap used by this provider.
getBsonWriter() - Method in class org.bson.BasicBSONEncoder
Gets the writer responsible for writing the encoded BSON.
getBucketName() - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
The bucket name.
getBucketName() - Method in interface com.mongodb.client.gridfs.GridFSBucket
The bucket name.
getBucketName() - Method in class com.mongodb.gridfs.GridFS
Gets the bucket name used in the collection's namespace.
getBucketSize() - Method in class com.mongodb.bulk.IndexRequest
Gets the specified the number of units within which to group the location values for geoHaystack Indexes
getBucketSize() - Method in class com.mongodb.client.model.IndexOptions
Gets the specified the number of units within which to group the location values for geoHaystack Indexes
getBuffer(int) - Method in interface com.mongodb.connection.BufferProvider
Gets a buffer with the givens capacity.
getBypassDocumentValidation() - Method in class com.mongodb.AggregationOptions
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidation() - Method in class com.mongodb.BulkWriteOperation
Gets whether to bypass document validation, or null if unspecified.
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.DBCollectionFindAndModifyOptions
Returns the bypassDocumentValidation
getBypassDocumentValidation() - Method in class com.mongodb.client.model.DBCollectionUpdateOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.InsertManyOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.InsertOneOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.ReplaceOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.client.model.UpdateOptions
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.InsertOptions
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidation() - Method in class com.mongodb.MapReduceCommand
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidation() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.BaseWriteOperation
Gets the the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the bypass document level validation flag
getBypassDocumentValidation() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Gets the the bypass document level validation flag
getByServerAddress(ServerAddress) - Method in class com.mongodb.connection.ClusterDescription
Deprecated.
Replace with a filter on ServerDescription in the caller
getByteBuffer() - Method in class org.bson.RawBsonDocument
Returns a ByteBuf that wraps the byte array, with the proper byte order.
getByteBuffers() - Method in class com.mongodb.connection.ByteBufferBsonOutput
 
getByteBuffers() - Method in class org.bson.io.BasicOutputBuffer
 
getByteBuffers() - Method in class org.bson.io.OutputBuffer
Get a list of byte buffers that are prepared to be read from; in other words, whose position is 0 and whose limit is the number of bytes that should read.
getBytes() - Method in class org.bson.LazyBSONObject
Gets the raw bytes.
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.
getChildContext() - Method in class org.bson.codecs.EncoderContext
Gets a child context based on this.
getChunksCollection() - Method in class com.mongodb.gridfs.GridFS
Gets the DBCollection in which the binary chunks are stored.
getChunkSize() - Method in class com.mongodb.client.gridfs.model.GridFSFile
The size, in bytes, of each data chunk of this file
getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
Gets the size of a chunk.
getChunkSizeBytes() - Method in interface com.mongodb.async.client.gridfs.GridFSBucket
Sets the chunk size in bytes.
getChunkSizeBytes() - Method in interface com.mongodb.client.gridfs.GridFSBucket
Sets the chunk size in bytes.
getChunkSizeBytes() - Method in class com.mongodb.client.gridfs.model.GridFSUploadOptions
The number of bytes per chunk of this file.
getClassForBsonType(BsonType) - Static method in class org.bson.codecs.BsonValueCodecProvider
Get the BsonValue subclass associated with the given BsonType.
getClusterDescription() - Method in exception com.mongodb.MongoIncompatibleDriverException
The cluster description which was determined to be incompatible.
getClusterId() - Method in class com.mongodb.connection.ServerId
Gets the cluster identifier.
getClusterId() - Method in class com.mongodb.event.ClusterClosedEvent
Gets the cluster id associated with this event.
getClusterId() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
Gets the cluster id associated with this event.
getClusterId() - Method in class com.mongodb.event.ClusterOpeningEvent
Gets the cluster id.
getClusterListeners() - Method in class com.mongodb.connection.ClusterSettings
Gets the cluster listeners.
getClusterListeners() - Method in class com.mongodb.event.ClusterEventMulticaster
Deprecated.
Gets the cluster listeners.
getClusterListeners() - Method in class com.mongodb.MongoClientOptions
Gets the list of added ClusterListener.
getClusterSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Deprecated.
Gets the cluster settings.
getClusterSettings() - Method in class com.mongodb.connection.ClusterDescription
Gets the cluster settings, which may be null if not provided.
getClusterSettings() - Method in class com.mongodb.MongoClientSettings
Gets the cluster settings.
getClusterTime() - Method in class com.mongodb.client.model.changestream.ChangeStreamDocument
Gets the cluster time at which the change occurred.
getClusterTime() - Method in interface com.mongodb.connection.Cluster
Get the last seen cluster time