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

A

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.
acknowledged(WriteRequest.Type, int, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
acknowledged(WriteRequest.Type, int, Integer, List<BulkWriteUpsert>) - Static method in class com.mongodb.bulk.BulkWriteResult
Create an acknowledged BulkWriteResult
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 - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement from the primary server before returning.
acknowledged(int, boolean, BsonValue) - Static method in class com.mongodb.WriteConcernResult
Create an acknowledged WriteConcernResult
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(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Same as append
add(ClusterListener) - Method in class com.mongodb.event.ClusterEventMulticaster
Adds the given cluster listener to the list of listeners to invoke on cluster events.
add(ConnectionListener) - Method in class com.mongodb.event.ConnectionEventMulticaster
Adds the given connection listener to the list of listeners to invoke on connection events.
add(ConnectionPoolListener) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
Adds the given connection pool listener to the list of listeners to invoke on connection pool events.
add(BsonValue) - Method in class org.bson.BsonArray
 
add(int, BsonValue) - Method in class org.bson.BsonArray
 
add(Object) - Method in class org.bson.LazyBSONList
 
add(int, Object) - Method in class org.bson.LazyBSONList
 
addAll(Collection<? extends BsonValue>) - Method in class org.bson.BsonArray
 
addAll(int, Collection<? extends BsonValue>) - Method in class org.bson.BsonArray
 
addAll(Collection) - Method in class org.bson.LazyBSONList
 
addAll(int, Collection) - Method in class org.bson.LazyBSONList
 
addDecodingHook(Class<?>, Transformer) - Static method in class org.bson.BSON
Registers a Transformer to use when decoding a specific class from BSON.
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
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
Add the default query option.
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
addSpecial(String, Object) - Method in class com.mongodb.DBCursor
Adds a special operator like $maxScan or $returnKey.
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
addWriteErrorResult(BulkWriteError, IndexMap) - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Add a write error result
aggregate(List<? extends Bson>) - 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.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.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
Method implements aggregation framework.
aggregate(List<? extends DBObject>, ReadPreference) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
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.
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.
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
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
Enumeration to define where the results of the aggregation will be output.
AggregationOutput - Class in com.mongodb
Container for the result of aggregation operation.
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(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(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $all operand
ALL - Static variable in class com.mongodb.QueryOperators
 
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(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.
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.
and(Iterable<Bson>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that performs a logical AND of the provided list of filters.
and(Bson...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that performs a logical AND of the provided list of filters.
and(String) - Method in class com.mongodb.QueryBuilder
Equivalent to QueryBuilder.put(key).
and(DBObject...) - Method in class com.mongodb.QueryBuilder
Equivalent to an $and operand
AND - Static variable in class com.mongodb.QueryOperators
 
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, BsonValue) - Method in class org.bson.BsonDocument
Put the given key and value into this document, and return the document.
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.RawBsonDocument
 
apply(T) - Method in interface com.mongodb.Block
Apply some logic to the value.
apply(T) - Method in interface com.mongodb.Function
Yield an appropriate result object for the input object.
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.ClusterSettings.Builder
Take the settings from the given ConnectionString and add them to the builder
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.ConnectionPoolSettings.Builder
Takes connection pool settings from the given connection string and applies them to this builder.
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.SocketSettings.Builder
Apply any socket settings specified in the connection string to this builder.
applyConnectionString(ConnectionString) - Method in class com.mongodb.connection.SslSettings.Builder
Take the settings from the given ConnectionString and set them in this 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.
arbiters(Set<String>) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets the arbiters in the replica set
ARRAY - Static variable in class org.bson.BSON
 
array() - Method in interface org.bson.ByteBuf
Returns the byte array that backs this buffer (optional operation).
array() - Method in class org.bson.ByteBufNIO
 
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
 
arrayStart(String) - Method in class com.mongodb.util.JSONCallback
 
arrayStart() - Method in class org.bson.BasicBSONCallback
 
arrayStart(String) - Method in class org.bson.BasicBSONCallback
 
arrayStart() - Method in interface org.bson.BSONCallback
Signals the start of a BSON array.
arrayStart(String) - Method in interface org.bson.BSONCallback
Signals the start of a BSON array, with its field name.
arrayStart() - Method in class org.bson.EmptyBSONCallback
 
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 Binary if it is one, otherwise throws exception
asBoolean() - Method in class org.bson.BsonValue
Gets this value as a BsonString 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
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.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 DBPointer if it is one, otherwise throws exception
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 BsonString 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.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 BsonString if it is one, otherwise throws exception
asInt64() - Method in class org.bson.BsonValue
Gets this value as a BsonString 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 CodeWithScope 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 RegularExpression 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 Symbol if it is one, otherwise throws exception
asTimestamp() - Method in class org.bson.BsonValue
Gets this value as a Timestamp 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
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.
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.
AsyncOperationExecutor - Interface in com.mongodb.operation
An interface describing the execution of a read or a write operation.
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.
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
Gets if auto-index is to be enabled on the collection
autoIndex(boolean) - Method in class com.mongodb.operation.CreateCollectionOperation
Sets if _id field of the collection is indexed.

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
BaseWriteOperation - Class in com.mongodb.operation
Abstract base class for write operations.
BaseWriteOperation(MongoNamespace, boolean, WriteConcern) - 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(Integer) - Method in class com.mongodb.AggregationOptions.Builder
Sets the size of batches to use when iterating over results.
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.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.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.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 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.FindOptions
Sets the number of documents to return per batch.
batchSize(int) - Method in class com.mongodb.client.model.ParallelCollectionScanOptions
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(Integer) - Method in class com.mongodb.operation.AggregateOperation
Sets the number of documents to return per 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.
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.
BINARY - Static variable in class org.bson.BSON
 
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(BsonBinarySubType, byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary with the specified type and data.
Binary(byte, byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary object
BinaryCodec - Class in org.bson.codecs
A Codec for the BSON Binary type.
BinaryCodec() - Constructor for class org.bson.codecs.BinaryCodec
 
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
 
Block<T> - Interface in com.mongodb
An interface for applying some logic against the given parameter.
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
 
BOX - Static variable in class com.mongodb.QueryOperators
 
BSON - Class in org.bson
Contains byte representations of all the BSON types (see the BSON Specification).
BSON() - Constructor for class org.bson.BSON
 
Bson - Interface in org.bson.conversions
An interface for types that are able to render themselves into a BsonDocument.
BsonArray - Class in org.bson
A type-safe representation of the BSON array type.
BsonArray(List<? extends BsonValue>) - Constructor for class org.bson.BsonArray
Construct an instance with the given list of values.
BsonArray() - Constructor for class org.bson.BsonArray
Construct an empty B
BsonArrayCodec - Class in org.bson.codecs
A codec for BsonArray instances.
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(BsonBinarySubType, byte[]) - Constructor for class org.bson.BsonBinary
Construct a new instance with the given data and binary sub type.
BsonBinary(byte, 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(BsonOutput, FieldNameValidator) - Constructor for class org.bson.BsonBinaryWriter
Construct an instance.
BsonBinaryWriter(BsonOutput) - Constructor for class org.bson.BsonBinaryWriter
Construct an instance.
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.Context - Class in org.bson
 
BsonBinaryWriter.Mark - Class in org.bson
 
BsonBinaryWriterSettings - Class in org.bson
The customisable settings for writing BSON.
BsonBinaryWriterSettings(int) - Constructor for class org.bson.BsonBinaryWriterSettings
Creates a new instance of the settings with the given maximum document size.
BsonBinaryWriterSettings() - Constructor for class org.bson.BsonBinaryWriterSettings
Creates a new instance of the settings with Integer.MAX_VALUE as the 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.
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
 
BSONDecoder - Interface in org.bson
An interface for decoders of BSON documents.
BsonDocument - Class in org.bson
A type-safe container for a BSON document.
BsonDocument(List<BsonElement>) - Constructor for class org.bson.BsonDocument
Construct a new instance with the given list BsonElement, none of which may be null.
BsonDocument(String, BsonValue) - Constructor for class org.bson.BsonDocument
Construct a new instance with a single key value pair
BsonDocument() - Constructor for class org.bson.BsonDocument
Construct an empty document.
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(String) - Constructor for exception org.bson.BSONException
 
BSONException(int, String) - Constructor for exception org.bson.BSONException
 
BSONException(String, Throwable) - Constructor for exception org.bson.BSONException
 
BSONException(int, String, Throwable) - Constructor for exception org.bson.BSONException
 
BsonInput - Interface in org.bson.io
An input stream that is optimized for reading BSON values directly from the underlying stream.
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.
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
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(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.
BsonReader - Interface in org.bson
An interface for reading a logical BSON document using a pull-oriented API.
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, String) - Constructor for class org.bson.BsonRegularExpression
Creates a new instance
BsonRegularExpression(String) - Constructor for class org.bson.BsonRegularExpression
Creates a new instance with no options set.
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 - 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 com.mongodb
Knows how to encode and decode BSON timestamps.
BSONTimestampCodec() - Constructor for class com.mongodb.BSONTimestampCodec
 
BsonTimestampCodec - Class in org.bson.codecs
A Codec for BSON Timestamp instances.
BsonTimestampCodec() - Constructor for class org.bson.codecs.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(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.
BsonTypeClassMap() - Constructor for class org.bson.codecs.BsonTypeClassMap
Construct an instance with the default mappings.
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(int) - Constructor for class org.bson.BsonWriterSettings
Creates a new instance of the settings with the given maximum serialization depth.
BsonWriterSettings() - Constructor for class org.bson.BsonWriterSettings
Creates a new instance of the settings with the default maximum serialization depth of 1024.
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
Build an instance of MongoClientSettings.
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.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.MongoClientOptions.Builder
Build an instance of MongoClientOptions.
build() - Method in class com.mongodb.ParallelScanOptions.Builder
Creates a ParallelScanOptions with the settings initialised in this builder.
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.
builder() - Static method in class com.mongodb.AggregationOptions
Creates a new Builder for AggregationOptions.
builder() - Static method in class com.mongodb.async.client.MongoClientSettings
Convenience method to create a Builder.
builder(MongoClientSettings) - Static method in class com.mongodb.async.client.MongoClientSettings
Convenience method to create a from an existing MongoClientSettings.
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() - Constructor for class com.mongodb.connection.ConnectionPoolSettings.Builder
 
builder() - Static method in class com.mongodb.connection.ServerDescription
Gets a Builder for creating a new ServerDescription instance.
Builder() - Constructor for class com.mongodb.connection.ServerDescription.Builder
 
builder() - Static method in class com.mongodb.connection.ServerSettings
Creates a builder for ServerSettings.
Builder() - Constructor for class com.mongodb.connection.ServerSettings.Builder
 
builder() - Static method in class com.mongodb.connection.SocketSettings
Gets a builder for an instance of SocketSettings.
Builder() - Constructor for class com.mongodb.connection.SocketSettings.Builder
 
builder() - Static method in class com.mongodb.connection.SslSettings
Gets a Builder for creating a new SSLSettings instance.
Builder() - Constructor for class com.mongodb.connection.SslSettings.Builder
 
builder() - Static method in class com.mongodb.MongoClientOptions
Creates a builder instance.
builder(MongoClientOptions) - Static method in class com.mongodb.MongoClientOptions
Creates a builder instance.
Builder() - Constructor for class com.mongodb.MongoClientOptions.Builder
Creates a Builder for MongoClientOptions, getting the appropriate system properties for initialization.
Builder(MongoClientOptions) - Constructor for class com.mongodb.MongoClientOptions.Builder
Creates a Builder from an existing MongoClientOptions.
builder() - Static method in class com.mongodb.ParallelScanOptions
Create a builder for the options
Builder() - Constructor for class com.mongodb.ParallelScanOptions.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.
BulkUpdateRequestBuilder - Class in com.mongodb
A builder for a single update request.
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, 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>>) - Method in interface com.mongodb.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
bulkWrite(List<? extends WriteModel<? extends TDocument>>, BulkWriteOptions) - Method in interface com.mongodb.client.MongoCollection
Executes a mix of inserts, updates, replaces, and deletes.
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(int, String, BsonDocument, int) - Constructor for class com.mongodb.bulk.BulkWriteError
Constructs a new instance.
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.
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() - Constructor for class com.mongodb.bulk.BulkWriteResult
 
BulkWriteResult - Class in com.mongodb
The result of a successful bulk write operation.
BulkWriteResult() - Constructor for class com.mongodb.BulkWriteResult
 
BulkWriteUpsert - Class in com.mongodb.bulk
Represents an item in the bulk write that was upserted.
BulkWriteUpsert(int, BsonValue) - Constructor for class com.mongodb.bulk.BulkWriteUpsert
Construct an instance.
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.
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

callGetLastError() - Method in class com.mongodb.WriteConcern
Returns whether "getlasterror" should be called (w > 0)
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.
CENTER - Static variable in class com.mongodb.QueryOperators
 
CENTER_SPHERE - Static variable in class com.mongodb.QueryOperators
 
ChangeEvent<T> - Class in com.mongodb.connection
Represents some sort of change in the system
ChangeEvent(T, T) - Constructor for class com.mongodb.connection.ChangeEvent
 
ChangeListener<T> - Interface in com.mongodb.connection
Listener for ChangeEvents - classes that implement this will be informed if classes of type T are changed.
checkPreconditions(String, BsonType) - Method in class org.bson.AbstractBsonReader
Ensures any conditions are met before reading commences.
checkPreconditions(String, AbstractBsonWriter.State...) - Method in class org.bson.AbstractBsonWriter
Checks the writer is in the correct state.
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.
ClassMap<T> - Class in org.bson.util
Maps Class objects to values.
ClassMap() - Constructor for class org.bson.util.ClassMap
 
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.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
 
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 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() - 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 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 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
 
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
Creates an instance.
clusterClosed(ClusterEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
 
clusterClosed(ClusterEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is closed.
clusterClosed(ClusterEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
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.
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
 
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) - Constructor for class com.mongodb.event.ClusterDescriptionChangedEvent
Constructs a new instance of the event.
ClusterEvent - Class in com.mongodb.event
A cluster-related event.
ClusterEvent(ClusterId) - Constructor for class com.mongodb.event.ClusterEvent
Constructs a new instance of the event.
ClusterEventMulticaster - Class in com.mongodb.event
A multicaster for cluster events.
ClusterEventMulticaster() - Constructor for class com.mongodb.event.ClusterEventMulticaster
 
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
 
clusterOpened(ClusterEvent) - Method in class com.mongodb.event.ClusterEventMulticaster
 
clusterOpened(ClusterEvent) - Method in interface com.mongodb.event.ClusterListener
Invoked when a cluster is opened.
clusterOpened(ClusterEvent) - Method in class com.mongodb.event.ClusterListenerAdapter
 
clusterSettings(ClusterSettings) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Sets the cluster settings.
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 - Static variable in class org.bson.BSON
 
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_W_SCOPE - Static variable in class org.bson.BSON
 
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.
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
Sets the codec registry
codecRegistry(CodecRegistry) - Method in class com.mongodb.MongoClientOptions.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
CollectibleCodec<T> - Interface in org.bson.codecs
A Codec that generates complete BSON documents for storage in a MongoDB 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.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
This package contains classes for the new client api for MongoDatabase and MongoCollection
com.mongodb.client.model - package com.mongodb.client.model
This package contains models and options that help describe MongoCollection operations
com.mongodb.client.result - package com.mongodb.client.result
This package contains classes representing operation results
com.mongodb.connection - package com.mongodb.connection
Contains classes that manage connecting to MongoDB servers.
com.mongodb.connection.netty - package com.mongodb.connection.netty
This package contains netty specific classes
com.mongodb.diagnostics.logging - package com.mongodb.diagnostics.logging
This package contains logging classes
com.mongodb.event - package com.mongodb.event
This package contains cluster and connection event related classes
com.mongodb.gridfs - package com.mongodb.gridfs
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
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.util - package com.mongodb.util
Contains classes that can be used everywhere in the driver, and have no specific domain.
command(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>) - Method in interface com.mongodb.connection.Connection
Execute the command.
command(String) - Method in class com.mongodb.DB
Executes a database command.
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, DBEncoder) - Method in class com.mongodb.DB
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
command(DBObject, ReadPreference) - Method in class com.mongodb.DB
Executes the command against the database with the given read preference.
command(String, ReadPreference) - Method in class com.mongodb.DB
Executes a database command.
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
Execute the command asynchronously.
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.
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 class com.mongodb.DBCursor
Adds a comment to the query to identify queries in the database profiler output.
COMMENT - Static variable in class com.mongodb.QueryOperators
 
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.
connect(MongoURI) - Method in class com.mongodb.Mongo.Holder
Deprecated.
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() - Method in class com.mongodb.MongoURI
Deprecated.
Creates a Mongo instance based on the URI.
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.
Connection - Interface in com.mongodb.connection
A synchronous connection to a MongoDB server with blocking operations.
connectionAdded(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
 
connectionAdded(ConnectionEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is added to a pool.
connectionAdded(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionAdded(ConnectionEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
 
connectionCheckedIn(ConnectionEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked in to a pool.
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
 
connectionCheckedOut(ConnectionEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is checked out of a pool.
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
connectionClosed(ConnectionEvent) - Method in class com.mongodb.event.ConnectionEventMulticaster
 
connectionClosed(ConnectionEvent) - Method in interface com.mongodb.event.ConnectionListener
Publish a connection message closed event.
connectionClosed(ConnectionEvent) - Method in class com.mongodb.event.ConnectionListenerAdapter
 
ConnectionDescription - Class in com.mongodb.connection
A description of a connection to a MongoDB server.
ConnectionDescription(ServerId) - Constructor for class com.mongodb.connection.ConnectionDescription
Construct a defaulted connection description instance.
ConnectionDescription(ConnectionId, ServerVersion, ServerType, int, int, int) - Constructor for class com.mongodb.connection.ConnectionDescription
Construct an instance.
ConnectionEvent - Class in com.mongodb.event
A connection-related event.
ConnectionEvent(ConnectionId) - Constructor for class com.mongodb.event.ConnectionEvent
Constructs a new instance of the event.
ConnectionEventMulticaster - Class in com.mongodb.event
A multicaster for connection events.
ConnectionEventMulticaster() - Constructor for class com.mongodb.event.ConnectionEventMulticaster
 
ConnectionId - Class in com.mongodb.connection
An immutable connection identifier of a connection to a MongoDB server.
ConnectionListener - Interface in com.mongodb.event
A listener for connection-related events.
ConnectionListenerAdapter - Class in com.mongodb.event
An adapter for connection listener implementations, for clients that want to listen for a subset of connection events.
ConnectionListenerAdapter() - Constructor for class com.mongodb.event.ConnectionListenerAdapter
 
ConnectionMessageReceivedEvent - Class in com.mongodb.event
An event signifying that a message has been received on a connection.
ConnectionMessageReceivedEvent(ConnectionId, int, int) - Constructor for class com.mongodb.event.ConnectionMessageReceivedEvent
Constructs a new instance of the event.
ConnectionMessagesSentEvent - Class in com.mongodb.event
An event signifying that a message has been sent on a connection.
ConnectionMessagesSentEvent(ConnectionId, int, int) - Constructor for class com.mongodb.event.ConnectionMessagesSentEvent
Constructs a new instance of the event.
connectionOpened(ConnectionEvent) - Method in class com.mongodb.event.ConnectionEventMulticaster
 
connectionOpened(ConnectionEvent) - Method in interface com.mongodb.event.ConnectionListener
Publish a connection opened event.
connectionOpened(ConnectionEvent) - Method in class com.mongodb.event.ConnectionListenerAdapter
 
connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
 
connectionPoolClosed(ConnectionPoolEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection pool is closed.
connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionPoolEvent - Class in com.mongodb.event
A connection pool-related event.
ConnectionPoolEvent(ServerId) - Constructor for class com.mongodb.event.ConnectionPoolEvent
Constructs a new instance of the event.
ConnectionPoolEventMulticaster - Class in com.mongodb.event
A multicaster for connection pool events.
ConnectionPoolEventMulticaster() - Constructor for class com.mongodb.event.ConnectionPoolEventMulticaster
 
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
 
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
Sets the connection pool settings.
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.
ConnectionPoolWaitQueueEvent - Class in com.mongodb.event
An event related to the connection pool's wait queue..
ConnectionPoolWaitQueueEvent(ServerId, long) - Constructor for class com.mongodb.event.ConnectionPoolWaitQueueEvent
Constructs a new instance of the event.
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolEventMulticaster
 
connectionRemoved(ConnectionEvent) - Method in interface com.mongodb.event.ConnectionPoolListener
Invoked when a connection is removed from a pool.
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.event.ConnectionPoolListenerAdapter
 
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.management.JMXConnectionPoolListener
 
ConnectionSource - Interface in com.mongodb.binding
A source of connections to a single MongoDB server.
connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum number of connections per host.
connectionsPerHost - Variable in class com.mongodb.MongoOptions
Deprecated.
The maximum number of connections allowed per host for this Mongo instance.
ConnectionString - Class in com.mongodb
Represents a URI.
ConnectionString(String) - Constructor for class com.mongodb.ConnectionString
Creates a MongoURI from the given URI string, and MongoClientOptions.Builder.
connectTimeout(int, TimeUnit) - Method in class com.mongodb.connection.SocketSettings.Builder
Sets the socket connect timeout.
connectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the connection timeout.
connectTimeout - Variable in class com.mongodb.MongoOptions
Deprecated.
The connection timeout in milliseconds.
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.BsonArray
 
containsAll(Collection) - Method in class org.bson.LazyBSONList
 
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(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(Object) - Method in class org.bson.BsonDocument
 
containsKey(Object) - Method in class org.bson.BsonDocumentWrapper
 
containsKey(String) - Method in interface org.bson.BSONObject
Deprecated.
containsKey(Object) - Method in class org.bson.Document
 
containsKey(String) - Method in class org.bson.LazyBSONObject
Deprecated.
containsKey(Object) - Method in class org.bson.RawBsonDocument
 
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(AbstractBsonReader.Context, BsonContextType) - Constructor for class org.bson.AbstractBsonReader.Context
Creates a new instance.
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, BsonContextType, int) - Constructor for class org.bson.BsonBinaryWriter.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(BsonDocumentReader.Context, BsonContextType, BsonArray) - Constructor for class org.bson.BsonDocumentReader.Context
 
Context(BsonDocumentReader.Context, BsonContextType, BsonDocument) - Constructor for class org.bson.BsonDocumentReader.Context
 
Context(AbstractBsonReader.Context, BsonContextType) - Constructor for class org.bson.json.JsonReader.Context
 
Context(JsonWriter.Context, BsonContextType, String) - Constructor for class org.bson.json.JsonWriter.Context
Creates a new context.
continueOnError(boolean) - Method in class com.mongodb.InsertOptions
Set whether documents will continue to be inserted after a failure to insert one.
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.
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.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
 
count(SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection.
count(Bson, SingleResultCallback<Long>) - Method in interface com.mongodb.async.client.MongoCollection
Counts the number of documents in the collection according to the given options.
count(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.
count() - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection.
count(Bson) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection according to the given options.
count(Bson, CountOptions) - Method in interface com.mongodb.client.MongoCollection
Counts the number of documents in the collection according to the given options.
count() - Method in class com.mongodb.DBCollection
count(DBObject) - Method in class com.mongodb.DBCollection
count(DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
count() - Method in class com.mongodb.DBCursor
Counts the number of objects matching the query.
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.
CountOptions - Class in com.mongodb.client.model
A model describing 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(MongoClientSettings) - Static method in class com.mongodb.async.client.MongoClients
Create a new client with the given client settings.
create(String) - 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.async.client.MongoClients
Create a new client with the given connection string.
create(ServerAddress) - Method in class com.mongodb.connection.AsynchronousSocketChannelStreamFactory
 
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(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(DBCollection) - Method in interface com.mongodb.DBCallbackFactory
Creates a DBCallback for the given collection.
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(boolean, List<String>) - Method in class com.mongodb.DefaultDBCallback
 
create() - Method in class com.mongodb.util.JSONCallback
 
create() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSONObject.
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.
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.
createCollection(String, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Create a new collection with the given name.
createCollection(String, CreateCollectionOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoDatabase
Create a new collection with the selected options
createCollection(String) - Method in interface com.mongodb.client.MongoDatabase
Create a new collection with the given name.
createCollection(String, CreateCollectionOptions) - Method in interface com.mongodb.client.MongoDatabase
Create a new collection with the selected options
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.
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(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.
createFile() - Method in class com.mongodb.gridfs.GridFS
This method creates an empty GridFSInputFile instance.
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(Bson, SingleResultCallback<String>) - Method in interface com.mongodb.async.client.MongoCollection
Creates an index.
createIndex(Bson, IndexOptions, SingleResultCallback<String>) - Method in interface com.mongodb.async.client.MongoCollection
Creates an index.
createIndex(Bson) - Method in interface com.mongodb.client.MongoCollection
Create an index with the given keys.
createIndex(Bson, IndexOptions) - Method in interface com.mongodb.client.MongoCollection
Create an index with the given keys and options.
createIndex(String) - Method in class com.mongodb.DBCollection
Forces creation of an ascending index on a field with the default options.
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(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.
createIndexes(List<IndexModel>, SingleResultCallback<List<String>>) - Method in interface com.mongodb.async.client.MongoCollection
Create multiple indexes.
createIndexes(List<IndexModel>) - Method in interface com.mongodb.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
Construct a new instance.
createList() - Method in class com.mongodb.util.JSONCallback
 
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
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
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.
createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
CreateUserOperation - Class in com.mongodb.operation
An operation to create a user.
CreateUserOperation(MongoCredential, boolean) - Constructor for class com.mongodb.operation.CreateUserOperation
Construct a new instance.
credentialList(List<MongoCredential>) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Sets the credential list.
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.
Cursor - Interface in com.mongodb
Interface for providing consistent behaviour between different Cursor implementations.
cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether cursor finalizers are enabled.
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.
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.FindOptions
Sets the cursor type.
CursorType - Enum in com.mongodb
An enumeration of cursor types.
cursorType(CursorType) - Method in class com.mongodb.operation.FindOperation
Sets the cursor type.

D

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
 
DateCodec - Class in org.bson.codecs
Encodes and decodes java.util.Date objects.
DateCodec() - Constructor for class org.bson.codecs.DateCodec
 
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.
DBAddress - Class in com.mongodb
Represents a database address, which includes the properties of ServerAddress (host and port) and adds a database name.
DBAddress(String) - Constructor for class com.mongodb.DBAddress
Creates a new address.
DBAddress(DBAddress, String) - Constructor for class com.mongodb.DBAddress
Create a DBAddress using the host and port from an existing DBAddress, and connected to a given database.
DBAddress(String, String) - Constructor for class com.mongodb.DBAddress
Creates a DBAddress for the given database on the given host.
DBAddress(String, int, String) - Constructor for class com.mongodb.DBAddress
Creates a DBAddress for the given database on the given host at the given port.
DBAddress(InetAddress, int, String) - Constructor for class com.mongodb.DBAddress
 
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.
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 - Interface in com.mongodb
Creates concrete DBDecoder instances.
dbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the decoder factory.
dbDecoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the DBCallback factory.
DBEncoder - Interface in com.mongodb
An interface for encoders of BSONObject to BSON.
dbEncoder(DBEncoder) - Method in class com.mongodb.InsertOptions
Set the encoder to use for the documents.
DBEncoderFactory - Interface in com.mongodb
Creates concrete DBEncoder instances.
dbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the encoder factory.
dbEncoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the encoding factory.
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(CodecRegistry) - Constructor for class com.mongodb.DBObjectCodec
Construct an instance with the given codec registry.
DBObjectCodec(CodecRegistry, BsonTypeClassMap) - Constructor for class com.mongodb.DBObjectCodec
Construct an instance.
DBObjectCodec(CodecRegistry, BsonTypeClassMap, DBObjectFactory) - Constructor for class com.mongodb.DBObjectCodec
Construct an instance.
DBObjectCodecProvider - Class in com.mongodb
A provider for a DBObjectCodec.
DBObjectCodecProvider() - Constructor for class com.mongodb.DBObjectCodecProvider
Construct an instance using the default BsonTypeClassMap.
DBObjectCodecProvider(BsonTypeClassMap) - Constructor for class com.mongodb.DBObjectCodecProvider
Construct an instance with the given BsonTypeClassMap.
DBRef - Class in com.mongodb
A representation of a database reference.
DBRef(String, Object) - Constructor for class com.mongodb.DBRef
Construct an instance.
DBRefCodec - Class in com.mongodb
A Codec for DBRef instances.
DBRefCodec(CodecRegistry) - Constructor for class com.mongodb.DBRefCodec
Construct an instance with the given registry, which is used to encode the id of the referenced document.
DBRefCodecProvider - Class in com.mongodb
A codec provider for DBRef.
DBRefCodecProvider() - Constructor for class com.mongodb.DBRefCodecProvider
 
debug(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the DEBUG level.
debug(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the DEBUG level with an accompanying message.
decode(BsonReader, DecoderContext) - Method in class com.mongodb.BSONTimestampCodec
 
decode(InputStream, DBCollection) - Method in interface com.mongodb.DBDecoder
Decode a single DBObject belonging to the given collection from the given input stream.
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(BsonReader, DecoderContext) - Method in class com.mongodb.DBObjectCodec
 
decode(BsonReader, DecoderContext) - Method in class com.mongodb.DBRefCodec
 
decode(InputStream, DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
decode(byte[], DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
decode(InputStream, DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
decode(byte[], DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
decode(byte[], BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(byte[]) - Static method in class org.bson.BSON
Decodes a BSON byte array into a DBObject instance.
decode(byte[], BSONCallback) - Method in interface org.bson.BSONDecoder
Decode a single BSON object into the given callback from the given byte array.
decode(InputStream, BSONCallback) - Method in interface org.bson.BSONDecoder
Decode a single BSON object into the given callback from the given input stream.
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.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.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.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 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.LongCodec
 
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(byte[], BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(Codec<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.
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
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
delete(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Method in interface com.mongodb.connection.Connection
Delete the documents using the delete wire protocol and apply the write concern.
deleteAsync(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>, SingleResultCallback<WriteConcernResult>) - Method in interface com.mongodb.connection.AsyncConnection
Delete the documents using the delete wire protocol and apply the write concern asynchronously.
deleteCommand(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Method in interface com.mongodb.connection.Connection
Delete the documents using the delete command.
deleteCommandAsync(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>, SingleResultCallback<BulkWriteResult>) - Method in interface com.mongodb.connection.AsyncConnection
Delete the documents using the delete command asynchronously.
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) - Method in interface com.mongodb.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.
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) - Method in interface com.mongodb.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.
DeleteOperation - Class in com.mongodb.operation
An operation that deletes one or more documents from a collection.
DeleteOperation(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Constructor for class com.mongodb.operation.DeleteOperation
Construct an instance.
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
 
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.Sorts
Create a sort specification for an ascending sort on the given fields.
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.
description - Variable in class com.mongodb.MongoOptions
Deprecated.
The description for Mongo instances created with these options.
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) - 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, 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.
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.
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 and
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(Transformer) - Constructor for class org.bson.codecs.DocumentCodecProvider
Construct a new instance with a default BsonTypeClassMap and the given Transformer.
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.
documentHasId(DBObject) - Method in class com.mongodb.DBObjectCodec
 
documentHasId(BsonDocument) - Method in class org.bson.codecs.BsonDocumentCodec
 
documentHasId(T) - Method in interface org.bson.codecs.CollectibleCodec
Returns true if the given document has an _id.
documentHasId(Document) - Method in class org.bson.codecs.DocumentCodec
 
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.
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
 
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
 
DoubleCodec - Class in org.bson.codecs
Encodes and decodes Double objects.
DoubleCodec() - Constructor for class org.bson.codecs.DoubleCodec
 
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.
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
 
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
 
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
 
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() - 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.
DropCollectionOperation - Class in com.mongodb.operation
Operation to drop a Collection in MongoDB.
DropCollectionOperation(MongoNamespace) - 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
Construct a new instance.
dropDups(boolean) - Method in class com.mongodb.bulk.IndexRequest
Sets the legacy dropDups setting
dropIndex(String, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given its name.
dropIndex(Bson, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Drops the index given the keys used to create it.
dropIndex(String) - Method in interface com.mongodb.client.MongoCollection
Drops the index given its name.
dropIndex(Bson) - 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 class com.mongodb.DBCollection
Drops the index with the given name from this collection.
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() - 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(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
Construct a new instance.
DropIndexOperation(MongoNamespace, BsonDocument) - Constructor for class com.mongodb.operation.DropIndexOperation
Construct a new instance.
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
An operation to remove a user.
DropUserOperation(String, String) - Constructor for class com.mongodb.operation.DropUserOperation
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
 
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

ELEM_MATCH - Static variable in class com.mongodb.QueryOperators
 
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) - 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.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.
elemMatch(DBObject) - Method in class com.mongodb.QueryBuilder
Equivalent to the $elemMatch operand
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.
encode(BsonWriter, BSONTimestamp, EncoderContext) - Method in class com.mongodb.BSONTimestampCodec
 
encode(BsonWriter, DBObject, EncoderContext) - Method in class com.mongodb.DBObjectCodec
 
encode(BsonWriter, DBRef, EncoderContext) - Method in class com.mongodb.DBRefCodec
 
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, 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, Binary, EncoderContext) - Method in class org.bson.codecs.BinaryCodec
 
encode(BsonWriter, Boolean, EncoderContext) - Method in class org.bson.codecs.BooleanCodec
 
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, 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, byte[], EncoderContext) - Method in class org.bson.codecs.ByteArrayCodec
 
encode(BsonWriter, Byte, EncoderContext) - Method in class org.bson.codecs.ByteCodec
 
encode(BsonWriter, Code, EncoderContext) - Method in class org.bson.codecs.CodeCodec
 
encode(BsonWriter, CodeWithScope, EncoderContext) - Method in class org.bson.codecs.CodeWithScopeCodec
 
encode(BsonWriter, Date, EncoderContext) - Method in class org.bson.codecs.DateCodec
 
encode(BsonWriter, Document, EncoderContext) - Method in class org.bson.codecs.DocumentCodec
 
encode(BsonWriter, Double, EncoderContext) - Method in class org.bson.codecs.DoubleCodec
 
encode(BsonWriter, T, EncoderContext) - Method in interface org.bson.codecs.Encoder
Encode an instance of the type parameter T into a BSON value.
encode(BsonWriter, Float, EncoderContext) - Method in class org.bson.codecs.FloatCodec
 
encode(BsonWriter, Integer, EncoderContext) - Method in class org.bson.codecs.IntegerCodec
 
encode(BsonWriter, Long, EncoderContext) - Method in class org.bson.codecs.LongCodec
 
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, Pattern, EncoderContext) - Method in class org.bson.codecs.PatternCodec
 
encode(BsonWriter, RawBsonDocument, EncoderContext) - Method in class org.bson.codecs.RawBsonDocumentCodec
 
encode(BsonWriter, Short, EncoderContext) - Method in class org.bson.codecs.ShortCodec
 
encode(BsonWriter, String, EncoderContext) - Method in class org.bson.codecs.StringCodec
 
encode(BsonWriter, Symbol, EncoderContext) - Method in class org.bson.codecs.SymbolCodec
 
encode(BsonWriter, UUID, EncoderContext) - Method in class org.bson.codecs.UuidCodec
 
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.
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
 
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.
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.connection.ChangeEvent
 
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
 
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.event.ClusterDescriptionChangedEvent
 
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.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.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.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.BsonDocument
 
equals(Object) - Method in class org.bson.BsonDocumentWrapper
 
equals(Object) - Method in class org.bson.BsonDouble
 
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.ValueCodecProvider
 
equals(Object) - Method in class org.bson.Document
 
equals(Object) - Method in class org.bson.LazyBSONObject
 
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.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, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the ERROR level with an accompanying message.
ErrorCategory - Enum in com.mongodb
A categorization of errors returned by a MongoDB server command.
eval(String, Object...) - Method in class com.mongodb.DB
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(WriteConcern) - Method in class com.mongodb.BulkWriteOperation
Execute the bulk write operation with the given write concern.
execute(ReadBinding) - Method in class com.mongodb.operation.AggregateOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.AggregateToCollectionOperation
 
execute(AsyncReadOperation<T>, ReadPreference, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Execute the read operation with the given read preference.
execute(AsyncWriteOperation<T>, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncOperationExecutor
Execute the write operation.
execute(WriteBinding) - Method in class com.mongodb.operation.BaseWriteOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.CommandReadOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.CommandWriteOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.CountOperation
 
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
 
execute(ReadBinding) - Method in class com.mongodb.operation.DistinctOperation
 
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
 
execute(WriteBinding) - Method in class com.mongodb.operation.FindAndDeleteOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.FindAndReplaceOperation
 
execute(WriteBinding) - Method in class com.mongodb.operation.FindAndUpdateOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.FindOperation
 
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(WriteBinding) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Executing this will return a cursor with your results in.
execute(ReadBinding) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Executing this will return a cursor with your results and the statistics in.
execute(WriteBinding) - Method in class com.mongodb.operation.MixedBulkWriteOperation
Executes a bulk write operation.
execute(ReadOperation<T>, ReadPreference) - Method in interface com.mongodb.operation.OperationExecutor
Execute the read operation with the given read preference.
execute(WriteOperation<T>) - Method in interface com.mongodb.operation.OperationExecutor
Execute the write operation.
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(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.UpdateUserOperation
 
execute(ReadBinding) - Method in class com.mongodb.operation.UserExistsOperation
 
execute(WriteBinding) - Method in interface com.mongodb.operation.WriteOperation
General execute which can return anything of type T
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.AggregateOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.AggregateToCollectionOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncReadOperation
General execute which can return anything of type T
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in interface com.mongodb.operation.AsyncWriteOperation
General execute which can return anything of type T
executeAsync(AsyncWriteBinding, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.BaseWriteOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.CommandReadOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.CommandWriteOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<Long>) - Method in class com.mongodb.operation.CountOperation
 
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
 
executeAsync(AsyncReadBinding, SingleResultCallback<AsyncBatchCursor<T>>) - Method in class com.mongodb.operation.DistinctOperation
 
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
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.FindAndDeleteOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.FindAndReplaceOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<T>) - Method in class com.mongodb.operation.FindAndUpdateOperation
 
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(AsyncWriteBinding, SingleResultCallback<MapReduceStatistics>) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<MapReduceAsyncBatchCursor<T>>) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.MixedBulkWriteOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<List<AsyncBatchCursor<T>>>) - Method in class com.mongodb.operation.ParallelCollectionScanOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.RenameCollectionOperation
 
executeAsync(AsyncWriteBinding, SingleResultCallback<Void>) - Method in class com.mongodb.operation.UpdateUserOperation
 
executeAsync(AsyncReadBinding, SingleResultCallback<Boolean>) - Method in class com.mongodb.operation.UserExistsOperation
 
executeCommandProtocol(Connection) - Method in class com.mongodb.operation.BaseWriteOperation
Executes the write command protocol.
executeCommandProtocol(Connection) - Method in class com.mongodb.operation.DeleteOperation
 
executeCommandProtocol(Connection) - Method in class com.mongodb.operation.InsertOperation
 
executeCommandProtocol(Connection) - Method in class com.mongodb.operation.UpdateOperation
 
executeCommandProtocolAsync(AsyncConnection, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.BaseWriteOperation
Asynchronously executes the write command protocol.
executeCommandProtocolAsync(AsyncConnection, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.DeleteOperation
 
executeCommandProtocolAsync(AsyncConnection, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.InsertOperation
 
executeCommandProtocolAsync(AsyncConnection, SingleResultCallback<BulkWriteResult>) - Method in class com.mongodb.operation.UpdateOperation
 
executeProtocol(Connection) - Method in class com.mongodb.operation.BaseWriteOperation
Executes the write protocol
executeProtocol(Connection) - Method in class com.mongodb.operation.DeleteOperation
 
executeProtocol(Connection) - Method in class com.mongodb.operation.InsertOperation
 
executeProtocol(Connection) - Method in class com.mongodb.operation.UpdateOperation
 
executeProtocolAsync(AsyncConnection, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.BaseWriteOperation
Asynchronously executes the write protocol
executeProtocolAsync(AsyncConnection, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.DeleteOperation
 
executeProtocolAsync(AsyncConnection, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.InsertOperation
 
executeProtocolAsync(AsyncConnection, SingleResultCallback<WriteConcernResult>) - Method in class com.mongodb.operation.UpdateOperation
 
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(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $exists operand
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.
extractErrorCode(BsonDocument) - Static method in exception com.mongodb.WriteConcernException
For internal use only: extract the error code from the response to a getlasterror command.
extractErrorMessage(BsonDocument) - Static method in exception com.mongodb.WriteConcernException
For internal use only: extract the error message from the response to a getlasterror command.

F

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
 
FieldNameValidator - Interface in org.bson
A field name validator, for use by BSON writers to validate field names as documents are encoded.
fields(Bson...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that combines the list of projections into a single one.
fields(List<Bson>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that combines the list of projections into a single one.
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.ListCollectionsIterable
Sets the query filter to apply to the query.
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.ListCollectionsIterable
Sets the query filter to apply to the query.
filter(Bson) - Method in interface com.mongodb.client.MapReduceIterable
Sets the query filter to apply to the query.
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.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.
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.MongoCollection
Finds all documents in the collection.
find(Class<TResult>) - Method in interface com.mongodb.async.client.MongoCollection
Finds all documents in the collection.
find(Bson) - Method in interface com.mongodb.async.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(DBObject) - Method in class com.mongodb.BulkWriteOperation
Start building a write request to add to the bulk write operation.
find() - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(Class<TResult>) - Method in interface com.mongodb.client.MongoCollection
Finds all documents in the collection.
find(Bson) - Method in interface com.mongodb.client.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(DBObject, DBObject, int, int, int) - Method in class com.mongodb.DBCollection
find(DBObject, DBObject, int, int) - Method in class com.mongodb.DBCollection
Deprecated.
find(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.DBCollection
Select documents in collection and get a cursor to the selected documents.
find() - Method in class com.mongodb.DBCollection
Select all documents in collection and get a cursor to the selected documents.
find(ObjectId) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given objectId.
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(DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds a list of files matching the given query.
find(DBObject, DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds a list of files matching the given query.
FindAndDeleteOperation<T> - Class in com.mongodb.operation
An operation that atomically finds and deletes a single document.
FindAndDeleteOperation(MongoNamespace, Decoder<T>) - Constructor for class com.mongodb.operation.FindAndDeleteOperation
Construct a new instance.
findAndModify(DBObject, DBObject, DBObject) - 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, 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, long, TimeUnit) - 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, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndReplaceOperation
Construct a new instance.
FindAndUpdateOperation<T> - Class in com.mongodb.operation
An operation that atomically finds and updates a single document.
FindAndUpdateOperation(MongoNamespace, Decoder<T>, BsonDocument) - Constructor for class com.mongodb.operation.FindAndUpdateOperation
Construct a new instance.
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, 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, ReadPreference) - 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(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(ObjectId) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given objectId.
findOne(String) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given filename.
findOne(DBObject) - Method in class com.mongodb.gridfs.GridFS
Finds one file matching the given query.
findOneAndDelete(Bson, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.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.
findOneAndDelete(Bson) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and remove it.
findOneAndDelete(Bson, FindOneAndDeleteOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and remove it.
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(Bson, TDocument, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.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.
findOneAndReplace(Bson, TDocument) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and replace it.
findOneAndReplace(Bson, TDocument, FindOneAndReplaceOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and replace it.
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(Bson, Bson, SingleResultCallback<TDocument>) - Method in interface com.mongodb.async.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.
findOneAndUpdate(Bson, Bson) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and update it.
findOneAndUpdate(Bson, Bson, FindOneAndUpdateOptions) - Method in interface com.mongodb.client.MongoCollection
Atomically find a document and update it.
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.
first(SingleResultCallback<TResult>) - Method in interface com.mongodb.async.client.MongoIterable
Helper to return the first item in the iterator or null.
first() - Method in interface com.mongodb.client.MongoIterable
Helper to return the first item in the iterator or null.
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 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>, 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.
forEach(Block<? super TResult>) - Method in interface com.mongodb.client.MongoIterable
Iterates over all documents in the view, applying the given block to each.
fromCodecs(Codec<?>...) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of Codec instances.
fromCodecs(List<? extends 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
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(CodecProvider...) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of CodecProvider instances.
fromProviders(List<? extends CodecProvider>) - Static method in class org.bson.codecs.configuration.CodecRegistries
Creates a CodecRegistry from the provided list of CodecProvider instances.
fromRegistries(CodecRegistry...) - Static method in class org.bson.codecs.configuration.CodecRegistries
A CodecRegistry that combines the given CodecRegistry instances into a single registry.
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.
fromThrowable(Throwable) - Static method in exception com.mongodb.MongoException
Static helper to create or cast a MongoException from a throwable
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 - Variable in class com.mongodb.MongoOptions
Deprecated.
The "fsync" value of the global WriteConcern.
fsync() - Method in class com.mongodb.WriteConcern
Gets the fsync flag (fsync to disk on the server)
FSYNC_SAFE - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk.
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
Exceptions are raised for network issues, and server errors; the write operation waits for the server to flush the data to disk.
Function<T,R> - Interface in com.mongodb
Apply a function to the input object yielding an appropriate result object.

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(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.
generateIdIfAbsentFromDocument(Document) - Method in class org.bson.codecs.DocumentCodec
 
get() - Method in class com.mongodb.BasicDBObjectBuilder
Gets the top level document.
get(Class<T>, CodecRegistry) - Method in class com.mongodb.DBObjectCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class com.mongodb.DBRefCodecProvider
 
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get() - Method in class com.mongodb.QueryBuilder
Creates a DBObject query to be used for the driver's find operations
get(String) - Method in class com.mongodb.ReflectionDBObject
 
get(ReflectionDBObject, String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
Gets the value for the given field from the given document.
get() - Method in class org.bson.BasicBSONCallback
 
get(String) - Method in class org.bson.BasicBSONObject
Gets a value from this object
get(int) - Method in class org.bson.BsonArray
 
get() - Method in interface org.bson.BSONCallback
Returns the finished top-level Document.
get(Object) - Method in class org.bson.BsonDocument
 
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) - Method in class org.bson.BsonDocumentWrapper
 
get(String) - Method in interface org.bson.BSONObject
Gets a field from this object by a given name.
get() - Method in interface org.bson.ByteBuf
Relative get method.
get(byte[]) - Method in interface org.bson.ByteBuf
Relative bulk get method.
get(byte[], int, int) - Method in interface org.bson.ByteBuf
Relative bulk get method.
get() - Method in class org.bson.ByteBufNIO
 
get(byte[]) - Method in class org.bson.ByteBufNIO
 
get(byte[], int, int) - Method in class org.bson.ByteBufNIO
 
get(BsonType) - Method in class org.bson.codecs.BsonTypeClassMap
Gets the Class that is mapped to the given BSON type.
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>) - Method in interface org.bson.codecs.configuration.CodecRegistry
Gets a Codec for the given Class.
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.DocumentCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.UuidCodecProvider
 
get(Class<T>, CodecRegistry) - Method in class org.bson.codecs.ValueCodecProvider
 
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) - Method in class org.bson.Document
 
get() - Method in class org.bson.EmptyBSONCallback
 
get() - Method in class org.bson.LazyBSONCallback
 
get(int) - Method in class org.bson.LazyBSONList
 
get(String) - Method in class org.bson.LazyBSONObject
 
get(Object) - Method in class org.bson.RawBsonDocument
 
get(String) - Method in class org.bson.types.BasicBSONList
Gets a value at an index.
get() - Static method in class org.bson.types.ObjectId
Gets a new object id.
get(Object) - Method in class org.bson.util.ClassMap
Gets the value associated with either this Class or a superclass of this class.
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.gridfs.GridFSFile
Gets the aliases from the metadata.
getAll() - Method in class com.mongodb.connection.ClusterDescription
Returns the Set of all server descriptions in this cluster, sorted by the String value of the ServerAddress of each one.
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.
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.
getAny() - Method in class com.mongodb.connection.ClusterDescription
Gets a list of ServerDescriptions for all the servers in this cluster which are currently accessible.
getAnyPrimaryOrSecondary() - Method in class com.mongodb.connection.ClusterDescription
Gets a list of all the primaries and secondaries in this cluster.
getAnyPrimaryOrSecondary(TagSet) - Method in class com.mongodb.connection.ClusterDescription
Gets a list of all the primaries and secondaries in this cluster that match the given replica set tags.
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.
getAuthenticationMechanism() - Method in class com.mongodb.MongoCredential
Gets the mechanism
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 class com.mongodb.client.model.FindOptions
Gets the number of documents to return per batch.
getBatchSize() - Method in class com.mongodb.client.model.ParallelCollectionScanOptions
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.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 Binary, 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.
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(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
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, BsonBoolean) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
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.
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.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.
getBsonWriter() - Method in class org.bson.BasicBSONEncoder
Gets the writer responsible for writing the encoded BSON.
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.
getByServerAddress(ServerAddress) - Method in class com.mongodb.connection.ClusterDescription
Returns the ServerDescription for the server at the given address
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.
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.gridfs.GridFSFile
Gets the size of a chunk.
getClassForBsonType(BsonType) - Static method in class org.bson.codecs.BsonValueCodecProvider
Get the BsonValue subclass associated with the given BsonType.
getClusterDescription() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
Gets the new cluster description.
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.ClusterEvent
Gets the cluster id associated with this event.
getClusterSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the cluster settings.
getClusterType() - Method in class com.mongodb.connection.ServerDescription
Gets the type of the cluster this server is in (for example, replica set).
getClusterType() - Method in enum com.mongodb.connection.ServerType
The type of the cluster to which this server belongs
getCode() - Method in class com.mongodb.bulk.WriteConcernError
Gets the code associated with this error.
getCode() - Method in class com.mongodb.BulkWriteError
Gets the code associated with this error.
getCode() - Method in exception com.mongodb.MongoException
Gets the exception code
getCode() - Method in class com.mongodb.WriteConcernError
Gets the code associated with this error.
getCode() - Method in class com.mongodb.WriteError
Gets the code associated with this error.
getCode() - Method in class org.bson.BsonJavaScript
Get the Javascript code.
getCode() - Method in class org.bson.BsonJavaScriptWithScope
Get the code.
getCode() - Method in class org.bson.types.Code
Get the Javascript code.
getCodecRegistry() - Method in class com.mongodb.async.client.MongoClientSettings
The codec registry to use.
getCodecRegistry() - Method in interface com.mongodb.async.client.MongoCollection
Get the codec registry for the MongoCollection.
getCodecRegistry() - Method in interface com.mongodb.async.client.MongoDatabase
Get the codec registry for the MongoDatabase.
getCodecRegistry() - Method in interface com.mongodb.client.MongoCollection
Get the codec registry for the MongoCollection.
getCodecRegistry() - Method in interface com.mongodb.client.MongoDatabase
Get the codec registry for the MongoDatabase.
getCodecRegistry() - Method in class com.mongodb.MongoClientOptions
The codec registry to use.
getCodecRegistry() - Method in class org.bson.codecs.BsonDocumentCodec
Gets the CodecRegistry for this Codec.
getCollection(String) - Method in interface com.mongodb.async.client.MongoDatabase
Gets a collection.
getCollection(String, Class<TDocument>) - Method in interface com.mongodb.async.client.MongoDatabase
Gets a collection, with a specific default document class.
getCollection(String) - Method in interface com.mongodb.client.MongoDatabase
Gets a collection.
getCollection(String, Class<TDocument>) - Method in interface com.mongodb.client.MongoDatabase
Gets a collection, with a specific default document class.
getCollection() - Method in class com.mongodb.ConnectionString
Gets the collection name
getCollection(String) - Method in class com.mongodb.DB
Gets a collection with a given name.
getCollection(String) - Method in class com.mongodb.DBCollection
Find a collection that is prefixed with this collection's name.
getCollection() - Method in class com.mongodb.DBCursor
Gets the collection.
getCollection() - Method in class com.mongodb.MongoClientURI
Gets the collection name
getCollection() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the collection name.
getCollectionFromString(String) - Method in class com.mongodb.DB
Returns a collection matching a given string.
getCollectionName() - Method in class com.mongodb.DBRef
Gets the name of the collection in which the referenced document is stored.
getCollectionName() - Method in class com.mongodb.MapReduceOutput
Get the name of the collection that the results of the map reduce were saved into.
getCollectionName() - Method in class com.mongodb.MongoNamespace
Gets the collection name.
getCollectionName() - Method in class com.mongodb.operation.CreateCollectionOperation
Gets the name of the collection to create.
getCollectionName() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the name of the collection to output the results to.
getCollectionNames() - Method in class com.mongodb.DB
Returns a set containing the names of all collections in this database.
getCommand() - Method in class com.mongodb.MapReduceOutput
Get the original command that was sent to the database.
getConnection(SingleResultCallback<AsyncConnection>) - Method in interface com.mongodb.binding.AsyncConnectionSource
Gets a connection from this source.
getConnection() - Method in interface com.mongodb.binding.ConnectionSource
Gets a connection from this source.
getConnection() - Method in interface com.mongodb.connection.Server
Gets a connection to this server.
getConnectionAsync(SingleResultCallback<AsyncConnection>) - Method in interface com.mongodb.connection.Server
Gets a connection to this server asynchronously.
getConnectionId() - Method in class com.mongodb.connection.ConnectionDescription
Gets the id of the connection.
getConnectionId() - Method in class com.mongodb.event.ConnectionEvent
Gets the identifier for this connection.
getConnectionMode() - Method in class com.mongodb.connection.ClusterDescription
Gets whether this cluster is connecting to a single server or multiple servers.
getConnectionPoolSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the settings for the connection provider in a settings object.
getConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
The maximum number of connections allowed per host for this MongoClient instance.
getConnectionsPerHost() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the maximum number of connections allowed per host for this Mongo instance.
getConnectPoint() - Method in class com.mongodb.Mongo
Gets a String representation of current connection point, i.e.
getConnectTimeout(TimeUnit) - Method in class com.mongodb.connection.SocketSettings
Gets the timeout for socket connect.
getConnectTimeout() - Method in class com.mongodb.ConnectionString
Gets the socket connect timeout specified in the connection string.
getConnectTimeout() - Method in class com.mongodb.MongoClientOptions
The connection timeout in milliseconds.
getConnectTimeout() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the connection timeout in milliseconds.
getContentType() - Method in class com.mongodb.gridfs.GridFSFile
Gets the content type.
getContext() - Method in class org.bson.AbstractBsonReader
Get the context, which will indicate which state the reader is in, for example which part of a document it's currently reading.
getContext() - Method in class org.bson.AbstractBsonWriter
Get the context, which will indicate which state the writer is in, for example which part of a document it's currently writing.
getContext() - Method in class org.bson.BsonBinaryReader
 
getContext() - Method in class org.bson.BsonBinaryWriter
 
getContext() - Method in class org.bson.BsonDocumentReader
 
getContext() - Method in class org.bson.BsonDocumentWriter
 
getContext() - Method in class org.bson.json.JsonReader
 
getContext() - Method in class org.bson.json.JsonWriter
 
getContextType() - Method in class org.bson.AbstractBsonReader.Context
Return the type of this context.
getContextType() - Method in class org.bson.AbstractBsonReader.Mark
 
getContextType() - Method in class org.bson.AbstractBsonWriter.Context
Gets the current context type.
getContextType() - Method in class org.bson.json.JsonReader.Context
 
getCount() - Method in interface com.mongodb.binding.ReferenceCounted
Gets the current reference count, which starts at 0.
getCount() - Method in class com.mongodb.DBCollection
Get the count of documents in collection.
getCount(ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in collection.
getCount(DBObject) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
getCount(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
getCount(DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
getCount(DBObject, DBObject, long, long) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
getCount(DBObject, DBObject, long, long, ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
getCount(BulkWriteResult) - Method in class com.mongodb.operation.BaseWriteOperation
 
getCount(BulkWriteResult) - Method in class com.mongodb.operation.DeleteOperation
 
getCount(BulkWriteResult) - Method in class com.mongodb.operation.InsertOperation
 
getCount(BulkWriteResult) - Method in class com.mongodb.operation.UpdateOperation
 
getCount() - Method in class com.mongodb.WriteConcernResult
Returns the number of documents affected by the write operation.
getCounter() - Method in class org.bson.types.ObjectId
Gets the counter.
getCredential() - Method in exception com.mongodb.MongoSecurityException
The credential being authenticated.
getCredential() - Method in class com.mongodb.operation.CreateUserOperation
Gets the users credentials.
getCredential() - Method in class com.mongodb.operation.UpdateUserOperation
Gets the users credentials.
getCredentialList() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the credential list.
getCredentialList() - Method in class com.mongodb.ConnectionString
Gets the credentials.
getCredentials() - Method in class com.mongodb.MongoClientURI
Gets the credentials.
getCredentials() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the credentials.
getCredentialsList() - Method in class com.mongodb.MongoClient
Gets the list of credentials that this client authenticates all connections with
getCurrentBsonType() - Method in class org.bson.AbstractBsonReader
 
getCurrentBsonType() - Method in interface org.bson.BsonReader
 
getCurrentCounter() - Static method in class org.bson.types.ObjectId
Gets the current value of the auto-incrementing counter.
getCurrentName() - Method in class org.bson.AbstractBsonReader
 
getCurrentName() - Method in interface org.bson.BsonReader
Gets the most recently read name.
getCursor() - Method in class com.mongodb.connection.QueryResult
Gets the cursor.
getCursorId() - Method in interface com.mongodb.Cursor
Gets the server's identifier for this Cursor.
getCursorId() - Method in class com.mongodb.DBCursor
 
getCursorId() - Method in exception com.mongodb.MongoCursorNotFoundException
Get the cursor id that wasn't found.
getCursorType() - Method in class com.mongodb.client.model.FindOptions
Get the cursor type.
getCursorType() - Method in class com.mongodb.operation.FindOperation
Get the cursor type.
getData() - Method in class org.bson.BsonBinary
Gets the data of this Binary.
getData() - Method in class org.bson.types.Binary
Get a copy of the binary value.
getDatabase(String) - Method in interface com.mongodb.async.client.MongoClient
Gets the database with the given name.
getDatabase() - Method in class com.mongodb.ConnectionString
Gets the database name
getDatabase(String) - Method in class com.mongodb.MongoClient
 
getDatabase() - Method in class com.mongodb.MongoClientURI
Gets the database name
getDatabase() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the database name.
getDatabaseName() - Method in class com.mongodb.MapReduceOutput
Get the name of the database that the results of the map reduce were saved into.
getDatabaseName() - Method in class com.mongodb.MongoNamespace
Gets the database name.
getDatabaseName() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the name of the database to output into.
getDatabaseNames() - Method in class com.mongodb.Mongo
Deprecated.
getDate(String) - Method in class org.bson.BasicBSONObject
Returns the date or null if not set.
getDate(String, Date) - Method in class org.bson.BasicBSONObject
Returns the date or def if not set.
getDate(Object) - Method in class org.bson.Document
Gets the value of the given key as a Date.
getDate() - Method in class org.bson.types.ObjectId
Gets the timestamp as a Date instance.
getDateTime(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonDateTime, or throws if not.
getDateTime(Object, BsonDateTime) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getDB() - Method in class com.mongodb.DBCollection
Returns the database this collection is a member of.
getDB() - Method in class com.mongodb.gridfs.GridFS
Gets the database used.
getDB(String) - Method in class com.mongodb.Mongo
getDBCallback(DBCollection) - Method in interface com.mongodb.DBDecoder
Get a callback for the given collection.
getDBCallback(DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
getDBCallback(DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
getDBDecoderFactory() - Method in class com.mongodb.DBCollection
Get the decoder factory for this collection.
getDbDecoderFactory() - Method in class com.mongodb.MongoClientOptions
Override the decoder factory.
getDbDecoderFactory() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the DBCallback factory.
getDbEncoder() - Method in class com.mongodb.InsertOptions
The encoder to use for the documents.
getDBEncoderFactory() - Method in class com.mongodb.DBCollection
Get the encoder factory for this collection.
getDbEncoderFactory() - Method in class com.mongodb.MongoClientOptions
Override the encoder factory.
getDbEncoderFactory() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the encoding factory.
getDBName() - Method in class com.mongodb.DBAddress
Gets the database name
getDecoder() - Method in class com.mongodb.operation.FindAndDeleteOperation
Gets the decoder used to decode the result documents.
getDecoder() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the decoder used to decode the result documents.
getDecoder() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the decoder used to decode the result documents.
getDecoder() - Method in class com.mongodb.operation.FindOperation
Gets the decoder used to decode the result documents.
getDecoderFactory() - Method in class com.mongodb.DBCursor
Gets the decoder factory that creates the decoder this cursor will use to decode objects from MongoDB.
getDecodingHooks(Class<?>) - Static method in class org.bson.BSON
Returns the decoding hook(s) associated with the specific class
getDefaultCodecRegistry() - Static method in class com.mongodb.MongoClient
Gets the default codec registry.
getDefaultLanguage() - Method in class com.mongodb.bulk.IndexRequest
Gets the language for a text index.
getDefaultLanguage() - Method in class com.mongodb.client.model.IndexOptions
Gets the language for a text index.
getDefaultMaxDocumentSize() - Static method in class com.mongodb.connection.ServerDescription
Get the default maximum document size.
getDefaultMaxMessageSize() - Static method in class com.mongodb.connection.ConnectionDescription
Get the default maximum message size.
getDefaultMaxWireVersion() - Static method in class com.mongodb.connection.ServerDescription
Get the default maximum wire version
getDefaultMaxWriteBatchSize() - Static method in class com.mongodb.connection.ConnectionDescription
Get the default maximum write batch size.
getDefaultMinWireVersion() - Static method in class com.mongodb.connection.ServerDescription
Get the default minimum wire version
getDeletedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents deleted by the write operation.
getDeletedCount() - Method in class com.mongodb.client.result.DeleteResult
Gets the number of documents deleted.
getDeleteRequests() - Method in class com.mongodb.operation.DeleteOperation
Gets the list of remove requests.
getDescription() - Method in interface com.mongodb.connection.AsyncConnection
Gets the description of the connection.
getDescription() - Method in interface com.mongodb.connection.Cluster
Get the description of this cluster.
getDescription() - Method in class com.mongodb.connection.ClusterId
Gets the user defined description of the MongoClient.
getDescription() - Method in class com.mongodb.connection.ClusterSettings
Gets the user defined description of the MongoClient.
getDescription() - Method in interface com.mongodb.connection.Connection
Gets the description of the connection.
getDescription() - Method in interface com.mongodb.connection.Server
Gets the description of this server.
getDescription() - Method in class com.mongodb.MongoClientOptions
Gets the description for this MongoClient, which is used in various places like logging and JMX.
getDescription() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the description for Mongo instances created with these options.
getDetails() - Method in class com.mongodb.bulk.WriteConcernError
Gets the details associated with this error.
getDetails() - Method in class com.mongodb.BulkWriteError
Gets the details associated with this error.
getDetails() - Method in class com.mongodb.WriteConcernError
Gets the details associated with this error.
getDetails() - Method in class com.mongodb.WriteError
Gets the details associated with this error.
getDocument() - Method in class com.mongodb.bulk.InsertRequest
Gets the document to insert.
getDocument() - Method in class com.mongodb.client.model.InsertOneModel
Gets the document to insert.
getDocument(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonDocument, or throws if not.
getDocument(Object, BsonDocument) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getDocument() - Method in class org.bson.BsonDocumentWriter
Gets the document that the writer is writing to.
getDocumentClass() - Method in interface com.mongodb.async.client.MongoCollection
Get the class of documents stored in this collection.
getDocumentClass() - Method in interface com.mongodb.client.MongoCollection
Get the class of documents stored in this collection.
getDocumentId(DBObject) - Method in class com.mongodb.DBObjectCodec
 
getDocumentId(BsonDocument) - Method in class org.bson.codecs.BsonDocumentCodec
 
getDocumentId(T) - Method in interface org.bson.codecs.CollectibleCodec
Gets the _id of the given document if it contains one, otherwise throws IllegalArgumentException.
getDocumentId(Document) - Method in class org.bson.codecs.DocumentCodec
 
getDouble(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a double.
getDouble(String, double) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an double.
getDouble(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonDouble, or throws if not.
getDouble(Object, BsonDouble) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getDouble() - Method in interface org.bson.ByteBuf
Relative get method for reading a double value.
getDouble() - Method in class org.bson.ByteBufNIO
 
getDouble(Object) - Method in class org.bson.Document
Gets the value of the given key as a Double.
getDropDups() - Method in class com.mongodb.bulk.IndexRequest
Returns the legacy dropDups setting
getDuration() - Method in class com.mongodb.MapReduceOutput
Get the amount of time, in milliseconds, that it took to run this map reduce.
getDuration() - Method in class com.mongodb.operation.MapReduceStatistics
Get the amount of time it took to run the map-reduce.
getEmitCount() - Method in class com.mongodb.MapReduceOutput
Get the number of messages emitted from the provided map function.
getEmitCount() - Method in class com.mongodb.operation.MapReduceStatistics
Get the number of messages emitted from the provided map function.
getEncoder() - Method in class org.bson.BsonDocumentWrapper
Get the encoder to use for the wrapped document.
getEncoderClass() - Method in class com.mongodb.BSONTimestampCodec
 
getEncoderClass() - Method in class com.mongodb.DBObjectCodec
 
getEncoderClass() - Method in class com.mongodb.DBRefCodec
 
getEncoderClass() - Method in class org.bson.codecs.AtomicBooleanCodec
 
getEncoderClass() - Method in class org.bson.codecs.AtomicIntegerCodec
 
getEncoderClass() - Method in class org.bson.codecs.AtomicLongCodec
 
getEncoderClass() - Method in class org.bson.codecs.BinaryCodec
 
getEncoderClass() - Method in class org.bson.codecs.BooleanCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonArrayCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonBinaryCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonBooleanCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonDateTimeCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonDBPointerCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonDocumentCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonDocumentWrapperCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonDoubleCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonInt32Codec
 
getEncoderClass() - Method in class org.bson.codecs.BsonInt64Codec
 
getEncoderClass() - Method in class org.bson.codecs.BsonJavaScriptCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonJavaScriptWithScopeCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonMaxKeyCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonMinKeyCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonNullCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonObjectIdCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonRegularExpressionCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonStringCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonSymbolCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonTimestampCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonUndefinedCodec
 
getEncoderClass() - Method in class org.bson.codecs.BsonValueCodec
 
getEncoderClass() - Method in class org.bson.codecs.ByteArrayCodec
 
getEncoderClass() - Method in class org.bson.codecs.ByteCodec
 
getEncoderClass() - Method in class org.bson.codecs.CodeCodec
 
getEncoderClass() - Method in class org.bson.codecs.CodeWithScopeCodec
 
getEncoderClass() - Method in class org.bson.codecs.DateCodec
 
getEncoderClass() - Method in class org.bson.codecs.DocumentCodec
 
getEncoderClass() - Method in class org.bson.codecs.DoubleCodec
 
getEncoderClass() - Method in interface org.bson.codecs.Encoder
Returns the Class instance that this encodes.
getEncoderClass() - Method in class org.bson.codecs.FloatCodec
 
getEncoderClass() - Method in class org.bson.codecs.IntegerCodec
 
getEncoderClass() - Method in class org.bson.codecs.LongCodec
 
getEncoderClass() - Method in class org.bson.codecs.MaxKeyCodec
 
getEncoderClass() - Method in class org.bson.codecs.MinKeyCodec
 
getEncoderClass() - Method in class org.bson.codecs.ObjectIdCodec
 
getEncoderClass() - Method in class org.bson.codecs.PatternCodec
 
getEncoderClass() - Method in class org.bson.codecs.RawBsonDocumentCodec
 
getEncoderClass() - Method in class org.bson.codecs.ShortCodec
 
getEncoderClass() - Method in class org.bson.codecs.StringCodec
 
getEncoderClass() - Method in class org.bson.codecs.SymbolCodec
 
getEncoderClass() - Method in class org.bson.codecs.UuidCodec
 
getEncodingHooks(Class<?>) - Static method in class org.bson.BSON
Returns the encoding hook(s) associated with the specified class.
getError() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Gets the combined errors as an exception
getError() - Method in exception com.mongodb.MongoWriteException
Gets the error.
getErrorCode() - Method in exception com.mongodb.MongoCommandException
Gets the error code associated with the command failure.
getErrorCode() - Method in exception com.mongodb.MongoQueryException
Gets the error code for this query failure.
getErrorCode() - Method in exception com.mongodb.WriteConcernException
Gets the error code associated with the write concern failure.
getErrorCode() - Method in exception org.bson.BSONException
Returns the error code.
getErrorMessage() - Method in class com.mongodb.CommandResult
Gets the error message associated with a failed command.
getErrorMessage() - Method in exception com.mongodb.MongoCommandException
Gets the error message associated with the command failure.
getErrorMessage() - Method in exception com.mongodb.MongoQueryException
Gets the error message for this query failure.
getErrorMessage() - Method in exception com.mongodb.WriteConcernException
Gets the error message associated with the write concern failure.
getException() - Method in class com.mongodb.CommandResult
Utility method to create an exception from a failed command.
getException() - Method in class com.mongodb.connection.ServerDescription
Gets the exception thrown while attempting to determine the server description.
getExpireAfter(TimeUnit) - Method in class com.mongodb.bulk.IndexRequest
Gets the time to live for documents in the collection
getExpireAfter(TimeUnit) - Method in class com.mongodb.client.model.IndexOptions
Gets the time to live for documents in the collection
getFileList() - Method in class com.mongodb.gridfs.GridFS
Gets the list of files stored in this gridfs, sorted by filename.
getFileList(DBObject) - Method in class com.mongodb.gridfs.GridFS
Gets a filtered list of files stored in this gridfs, sorted by filename.
getFileList(DBObject, DBObject) - Method in class com.mongodb.gridfs.GridFS
Gets a sorted, filtered list of files stored in this gridfs.
getFilename() - Method in class com.mongodb.gridfs.GridFSFile
Gets the filename.
getFilesCollection() - Method in class com.mongodb.gridfs.GridFS
Gets the DBCollection in which the file's metadata is stored.
getFilter() - Method in class com.mongodb.bulk.DeleteRequest
Gets the query Object filter.
getFilter() - Method in class com.mongodb.bulk.UpdateRequest
Gets the query filter for the update.
getFilter() - Method in class com.mongodb.client.model.DeleteManyModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.DeleteOneModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.ReplaceOneModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the query filter.
getFilter() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.CountOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.DistinctOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindAndDeleteOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.FindOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.GroupOperation
Gets the query filter to determine which documents in the collection to process.
getFilter() - Method in class com.mongodb.operation.ListCollectionsOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the query filter.
getFilter() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the query filter.
getFinalize() - Method in class com.mongodb.MapReduceCommand
Gets the Finalize JS Function
getFinalizeFunction() - Method in class com.mongodb.operation.GroupOperation
Gets the function that runs each item in the result before returning the final value.
getFinalizeFunction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the JavaScript function that follows the reduce method and modifies the output.
getFinalizeFunction() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the JavaScript function that follows the reduce method and modifies the output.
getFsync() - Method in class com.mongodb.WriteConcern
Gets the fsync flag (fsync to disk on the server)
getFullName() - Method in class com.mongodb.DBCollection
Get the full name of a collection, with the database name as a prefix.
getFullName() - Method in class com.mongodb.MongoNamespace
Gets the full name, which is the database name and the collection name, separated by a period.
getGeneratedMachineIdentifier() - Static method in class org.bson.types.ObjectId
Gets the generated machine identifier.
getGeneratedProcessIdentifier() - Static method in class org.bson.types.ObjectId
Gets the generated process identifier.
getGridFS() - Method in class com.mongodb.gridfs.GridFSFile
Gets the GridFS associated with this file
getHeartbeatConnectTimeout() - Method in class com.mongodb.MongoClientOptions
Gets the connect timeout for connections used for the cluster heartbeat.
getHeartbeatFrequency(TimeUnit) - Method in class com.mongodb.connection.ServerSettings
Gets the frequency that the cluster monitor attempts to reach each server.
getHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
Gets the heartbeat frequency.
getHeartbeatSocketSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the connection settings for the heartbeat thread (the background task that checks the state of the cluster) wrapped in a settings object.
getHeartbeatSocketTimeout() - Method in class com.mongodb.MongoClientOptions
Gets the socket timeout for connections used for the cluster heartbeat.
getHint() - Method in class com.mongodb.client.model.CountOptions
Gets the hint to apply.
getHint() - Method in class com.mongodb.operation.CountOperation
Gets the hint to apply.
getHintFields() - Method in class com.mongodb.DBCollection
Get hint fields for this collection (used to optimize queries).
getHintString() - Method in class com.mongodb.client.model.CountOptions
Gets the hint string to apply.
getHost() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the host that this connection pool is connecting to.
getHost() - Method in class com.mongodb.ServerAddress
Gets the hostname
getHosts() - Method in class com.mongodb.connection.ClusterSettings
Gets the seed list of hosts for the cluster.
getHosts() - Method in class com.mongodb.connection.ServerDescription
Get a Set of strings in the format of "[hostname]:[port]" that contains all members of the replica set that are neither hidden, passive, nor arbiters.
getHosts() - Method in class com.mongodb.ConnectionString
Gets the list of hosts
getHosts() - Method in class com.mongodb.MongoClientURI
Gets the list of hosts
getHosts() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the list of hosts.
getId() - Method in class com.mongodb.bulk.BulkWriteUpsert
Gets the id of the upserted item.
getId() - Method in class com.mongodb.BulkWriteUpsert
Gets the id of the upserted item.
getId() - Method in class com.mongodb.DBRef
Gets the _id of the referenced document
getId() - Method in class com.mongodb.gridfs.GridFSFile
Gets the id.
getId() - Method in class com.mongodb.ServerCursor
Gets the cursor id that the server uses to uniquely identify the cursor.
getId() - Method in class org.bson.BsonDbPointer
Gets the id.
getInc() - Method in class org.bson.BsonTimestamp
Gets the increment value.
getInc() - Method in class org.bson.types.BSONTimestamp
Gets the incrementing ordinal for operations within a given second.
getIndentCharacters() - Method in class org.bson.json.JsonWriterSettings
The indent characters to use if indent mode is enabled.
getIndex() - Method in class com.mongodb.bulk.BulkWriteError
The index of the item in the bulk write operation with this error.
getIndex() - Method in class com.mongodb.bulk.BulkWriteUpsert
Gets the index of the upserted item based on the order it was added to the bulk write operation.
getIndex() - Method in class com.mongodb.BulkWriteError
The index of the item in the bulk write operation with this error.
getIndex() - Method in class com.mongodb.BulkWriteUpsert
Gets the index of the upserted item based on the order it was added to the bulk write operation.
getIndexInfo() - Method in class com.mongodb.DBCollection
Return a list of the indexes for this collection.
getIndexNames() - Method in class com.mongodb.operation.CreateIndexesOperation
Gets the index names.
getInitial() - Method in class com.mongodb.operation.GroupOperation
Gets the initial the aggregation result document.
getInput() - Method in class com.mongodb.MapReduceCommand
Get the name of the collection the MapReduce will read from
getInputCount() - Method in class com.mongodb.MapReduceOutput
Get the number of documents that were input into the map reduce operation
getInputCount() - Method in class com.mongodb.operation.MapReduceStatistics
Get the number of documents that were input into the map reduce operation
getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
Returns an InputStream from which data can be read.
getInsertedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents inserted by the write operation.
getInsertedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents inserted by the write operation.
getInsertRequests() - Method in class com.mongodb.operation.InsertOperation
Gets the list of insert requests.
getInt(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an int.
getInt(String, int) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an int.
getInt() - Method in interface org.bson.ByteBuf
Relative get method for reading an int value.
getInt() - Method in class org.bson.ByteBufNIO
 
getInt32(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonInt32, or throws if not.
getInt32(Object, BsonInt32) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getInt64(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonInt64, or throws if not.
getInt64(Object, BsonInt64) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonInt64, or throws if not.
getInteger(Object) - Method in class org.bson.Document
Gets the value of the given key as an Integer.
getInteger(Object, int) - Method in class org.bson.Document
Gets the value of the given key as a primitive int.
getInternalClass(String) - Method in class com.mongodb.DBCollection
Gets the internal class for the given path in the document hierarchy
getIntRepresentation() - Method in enum com.mongodb.operation.OrderBy
The integer representation of the order.
getJ() - Method in class com.mongodb.WriteConcern
Gets the j parameter (journal syncing)
getJsMode() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) JavaScript mode
getKey() - Method in class com.mongodb.operation.GroupOperation
Gets the document containing the field or fields to group.
getKeyFunction() - Method in class com.mongodb.operation.GroupOperation
Gets the function that creates a "key object" for use as the grouping key.
getKeys() - Method in class com.mongodb.bulk.IndexRequest
Gets the index keys
getKeys() - Method in class com.mongodb.client.model.IndexModel
Gets the index keys.
getKeysWanted() - Method in class com.mongodb.DBCursor
Gets the fields to be returned.
getLanguageOverride() - Method in class com.mongodb.bulk.IndexRequest
Gets the name of the field that contains the language string.
getLanguageOverride() - Method in class com.mongodb.client.model.IndexOptions
Gets the name of the field that contains the language string.
getLegacy() - Static method in class com.mongodb.util.JSONSerializers
Returns an ObjectSerializer that mostly conforms to the strict JSON format defined in extended JSON, but with a few differences to keep compatibility with previous versions of the driver.
getLength() - Method in class com.mongodb.gridfs.GridFSFile
Gets the file's length.
getLimit() - Method in class com.mongodb.client.model.CountOptions
Gets the limit to apply.
getLimit() - Method in class com.mongodb.client.model.FindOptions
Gets the limit to apply.
getLimit() - Method in class com.mongodb.DBCursor
Gets the query limit.
getLimit() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) limit on input
getLimit() - Method in class com.mongodb.operation.CountOperation
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.FindOperation
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the limit to apply.
getLimit() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the limit to apply.
getLocalThreshold() - Method in class com.mongodb.MongoClientOptions
Gets the local threshold.
getLocalValue() - Method in class com.mongodb.connection.ConnectionId
Gets the locally created id value for the connection
getLogger(String) - Static method in class com.mongodb.diagnostics.logging.Loggers
Gets a logger with the given suffix appended on to PREFIX, separated by a '.'.
getLogger(String) - Static method in class org.bson.diagnostics.Loggers
Gets a logger with the given suffix appended on to PREFIX, separated by a '.'.
getLong(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a long.
getLong(String, long) - Method in class org.bson.BasicBSONObject
Returns the value of a field as an long.
getLong() - Method in interface org.bson.ByteBuf
Relative get method for reading a long value.
getLong() - Method in class org.bson.ByteBufNIO
 
getLong(Object) - Method in class org.bson.Document
Gets the value of the given key as a Long.
getMachineIdentifier() - Method in class org.bson.types.ObjectId
Gets the machine identifier.
getMaintenanceFrequency(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
Returns the time period between runs of the maintenance job.
getMaintenanceInitialDelay(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
Returns the period of time to wait before running the first maintenance job on the connection pool.
getMap() - Method in class com.mongodb.MapReduceCommand
Get the map function, as a JS String
getMapFunction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
getMapFunction() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
getMaster() - Method in class com.mongodb.ReplicaSetStatus
Gets the ServerAddress of the master server in this replica set.
getMatchedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents matched by updates or replacements in the write operation.
getMatchedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents matched by updates or replacements in the write operation.
getMatchedCount() - Method in class com.mongodb.client.result.UpdateResult
Gets the number of documents matched by the query.
getMax() - Method in class com.mongodb.bulk.IndexRequest
Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
getMax() - Method in class com.mongodb.client.model.IndexOptions
Gets the upper inclusive boundary for the longitude and latitude values for 2d indexes..
getMaxBatchCount() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max batch count for bulk write operations.
getMaxBsonObjectSize() - Method in class com.mongodb.Mongo
Gets the maximum size for a BSON object supported by the current master server.
getMaxBsonObjectSize() - Method in class com.mongodb.ReplicaSetStatus
Gets the maximum size for a BSON object supported by the current master server.
getMaxConnectionIdleTime(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
Returns the maximum idle time of a pooled connection.
getMaxConnectionIdleTime() - Method in class com.mongodb.ConnectionString
Gets the maximum connection idle time specified in the connection string.
getMaxConnectionIdleTime() - Method in class com.mongodb.MongoClientOptions
The maximum idle time of a pooled connection.
getMaxConnectionLifeTime(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
The maximum time a pooled connection can live for.
getMaxConnectionLifeTime() - Method in class com.mongodb.ConnectionString
Gets the maximum connection life time specified in the connection string.
getMaxConnectionLifeTime() - Method in class com.mongodb.MongoClientOptions
The maximum life time of a pooled connection.
getMaxConnectionPoolSize() - Method in class com.mongodb.ConnectionString
Gets the maximum connection pool size specified in the connection string.
getMaxDocuments() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the maximum number of documents allowed in a capped collection.
getMaxDocuments() - Method in class com.mongodb.operation.CreateCollectionOperation
Gets the maximum number of documents allowed in the collection.
getMaxDocumentSize() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max document size in bytes for documents to be stored in collections.
getMaxDocumentSize() - Method in class com.mongodb.connection.ServerDescription
The maximum permitted size of a BSON object in bytes for this mongod process.
getMaxDocumentSize() - Method in class org.bson.BsonBinaryWriterSettings
Gets the maximum size for BSON documents.
getMaxMessageSize() - Method in class com.mongodb.connection.ConnectionDescription
Gets the max message size in bytes for wire protocol messages to be sent to the server.
getMaxSerializationDepth() - Method in class org.bson.BsonWriterSettings
Gets the maximum nuber of levels of depth defined by this settings object.
getMaxSize() - Method in class com.mongodb.connection.ConnectionPoolSettings
The maximum number of connections allowed.
getMaxSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxTime(TimeUnit) - Method in class com.mongodb.AggregationOptions
Gets the maximum execution time for the aggregation command.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.CountOptions
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Gets the maximum execution time for the find one and delete operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the maximum execution time for the find one and replace operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the maximum execution time for the find one and update operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.client.model.FindOptions
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.MapReduceCommand
Gets the max execution time for this command, in the given time unit.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.AggregateOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.AggregateToCollectionOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.CountOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.DistinctOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindAndDeleteOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.FindOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.ListCollectionsOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.ListDatabasesOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.ListIndexesOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the maximum execution time on the server for this operation.
getMaxTime(TimeUnit) - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the maximum execution time on the server for this operation.
getMaxWaitQueueSize() - Method in class com.mongodb.connection.ClusterSettings
This is the maximum number of threads that may be waiting for a connection to become available from the pool.
getMaxWaitQueueSize() - Method in class com.mongodb.connection.ConnectionPoolSettings
This is the maximum number of operations that may be waiting for a connection to become available from the pool.
getMaxWaitTime(TimeUnit) - Method in class com.mongodb.connection.ConnectionPoolSettings
The maximum time that a thread may wait for a connection to become available.
getMaxWaitTime() - Method in class com.mongodb.ConnectionString
Gets the maximum wait time of a thread waiting for a connection specified in the connection string.
getMaxWaitTime() - Method in class com.mongodb.MongoClientOptions
The maximum wait time in milliseconds that a thread may wait for a connection to become available.
getMaxWaitTime() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the maximum wait time in milliseconds that a thread may wait for a connection to become available.
getMaxWireVersion() - Method in class com.mongodb.connection.ServerDescription
The latest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
getMBeanServer() - Static method in class com.mongodb.management.MBeanServerFactory
Gets the MBeanServer for registering or unregistering MBeans.
getMD5() - Method in class com.mongodb.gridfs.GridFSFile
Gets the observed MD5 during transfer
getMechanism() - Method in class com.mongodb.MongoCredential
Gets the mechanism
getMechanismName() - Method in enum com.mongodb.AuthenticationMechanism
Get the mechanism name.
getMechanismProperty(String, T) - Method in class com.mongodb.MongoCredential
Get the value of the given key to a mechanism property, or defaultValue if there is no mapping.
getMessage() - Method in class com.mongodb.bulk.WriteConcernError
Gets the message associated with this error.
getMessage() - Method in class com.mongodb.BulkWriteError
Gets the message associated with this error.
getMessage() - Method in exception com.mongodb.util.JSONParseException
 
getMessage() - Method in class com.mongodb.WriteConcernError
Gets the message associated with this error.
getMessage() - Method in class com.mongodb.WriteError
Gets the message associated with this error.
getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
Gets the file metadata.
getMin() - Method in class com.mongodb.bulk.IndexRequest
Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
getMin() - Method in class com.mongodb.client.model.IndexOptions
Gets the lower inclusive boundary for the longitude and latitude values for 2d indexes..
getMinConnectionPoolSize() - Method in class com.mongodb.ConnectionString
Gets the minimum connection pool size specified in the connection string.
getMinConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
The minimum number of connections per host for this MongoClient instance.
getMinHeartbeatFrequency(TimeUnit) - Method in class com.mongodb.connection.ServerSettings
Gets the minimum heartbeat frequency.
getMinHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
Gets the minimum heartbeat frequency.
getMinSize() - Method in class com.mongodb.connection.ConnectionPoolSettings
The minimum number of connections.
getMinSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the minimum allowed size of the pool, including idle and in-use members.
getMinWireVersion() - Method in class com.mongodb.connection.ServerDescription
The earliest version of the wire protocol that this MongoDB server is capable of using to communicate with clients.
getMode() - Method in class com.mongodb.connection.ClusterSettings
Gets the mode.
getModifiedCount() - Method in class com.mongodb.bulk.BulkWriteResult
Returns the number of documents modified by the write operation.
getModifiedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents modified by the write operation.
getModifiedCount() - Method in class com.mongodb.client.result.UpdateResult
Gets the number of documents modified by the update.
getModifiers() - Method in class com.mongodb.client.model.FindOptions
Gets the query modifiers to apply to this operation.
getModifiers() - Method in class com.mongodb.operation.FindOperation
Gets the query modifiers to apply to this operation.
getMongo() - Method in class com.mongodb.DB
Gets the Mongo instance
getMongoClientOptions() - Method in class com.mongodb.MongoClient
Gets the options that this client uses to connect to server.
getMongoOptions() - Method in class com.mongodb.Mongo
Deprecated.
Please use MongoClient class to connect to server and corresponding MongoClient.getMongoClientOptions()
getMore(MongoNamespace, long, int, Decoder<T>) - Method in interface com.mongodb.connection.Connection
Get more result documents from a cursor.
getMoreAsync(MongoNamespace, long, int, Decoder<T>, SingleResultCallback<QueryResult<T>>) - Method in interface com.mongodb.connection.AsyncConnection
Get more result documents from a cursor asynchronously.
getN() - Method in class com.mongodb.WriteResult
Gets the "n" field, which contains the number of documents affected in the write operation.
getName() - Method in interface com.mongodb.async.client.MongoDatabase
Gets the name of the database.
getName() - Method in class com.mongodb.bulk.IndexRequest
Gets the name of the index.
getName() - Method in class com.mongodb.client.model.IndexOptions
Gets the name of the index.
getName() - Method in interface com.mongodb.client.MongoDatabase
Gets the name of the database.
getName() - Method in class com.mongodb.DB
Returns the name of this database.
getName() - Method in class com.mongodb.DBCollection
Get the name of a collection.
getName() - Method in interface com.mongodb.diagnostics.logging.Logger
Return the name of this Logger instance.
getName() - Method in class com.mongodb.ReadPreference
Gets the name of this read preference.
getName() - Method in class com.mongodb.ReplicaSetStatus
Get the name of the replica set.
getName() - Method in class com.mongodb.Tag
Gets the name of the replica set tag.
getName() - Method in class org.bson.AbstractBsonWriter
The name of the field being written.
getName() - Method in class org.bson.BsonElement
Gets the name of the key/field.
getNamespace() - Method in interface com.mongodb.async.client.MongoCollection
Gets the namespace of this collection.
getNamespace() - Method in interface com.mongodb.client.MongoCollection
Gets the namespace of this collection.
getNamespace() - Method in class com.mongodb.connection.QueryResult
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.BaseWriteOperation
Gets the namespace of the collection to write to.
getNamespace() - Method in class com.mongodb.operation.FindAndDeleteOperation
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.FindOperation
Gets the namespace.
getNamespace() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Gets the namespace of the collection to write to.
getNamespace() - Method in class org.bson.BsonDbPointer
Gets the namespace.
getNewLineCharacters() - Method in class org.bson.json.JsonWriterSettings
The new line character(s) to use if indent mode is enabled.
getNewValue() - Method in class com.mongodb.connection.ChangeEvent
Returns the value after the event was fired
getNextElement() - Method in class org.bson.BsonDocumentReader.Context
 
getNextState() - Method in class org.bson.AbstractBsonReader
Returns the next State to transition to, based on the AbstractBsonReader.Context of this reader.
getNextState() - Method in class org.bson.AbstractBsonWriter
Returns the next valid state for this writer.
getNextValue() - Method in class org.bson.BsonDocumentReader.Context
 
getNumber(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonNumber, or throws if not.
getNumber(Object, BsonNumber) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getNumCursors() - Method in class com.mongodb.operation.ParallelCollectionScanOperation
Gets the number of cursors requested.
getNumCursors() - Method in class com.mongodb.ParallelScanOptions
Gets the number of cursors requested.
getObjectClass() - Method in class com.mongodb.DBCollection
Gets the default class for objects in the collection
getObjectId(String) - Method in class org.bson.BasicBSONObject
Returns the object id or null if not set.
getObjectId(String, ObjectId) - Method in class org.bson.BasicBSONObject
Returns the object id or def if not set.
getObjectId(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonObjectId, or throws if not.
getObjectId(Object, BsonObjectId) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getObjectId(Object) - Method in class org.bson.Document
Gets the value of the given key as an ObjectId.
getOffset() - Method in class org.bson.LazyBSONObject
Gets the offset into the raw bytes representing the start of the document
getOldValue() - Method in class com.mongodb.connection.ChangeEvent
Returns the value before this change event was fired.
getOptions() - Method in class com.mongodb.client.model.IndexModel
Gets the index options.
getOptions() - Method in class com.mongodb.client.model.ReplaceOneModel
Gets the options to apply.
getOptions() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the options to apply.
getOptions() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the options to apply.
getOptions() - Method in class com.mongodb.DB
Gets the query options
getOptions() - Method in class com.mongodb.DBCollection
Gets the default query options
getOptions() - Method in class com.mongodb.DBCursor
Gets the query options.
getOptions() - Method in class com.mongodb.Mongo
Gets the default query options
getOptions() - Method in class com.mongodb.MongoClientURI
Gets the options
getOptions() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the options.
getOptions() - Method in class org.bson.BsonRegularExpression
Gets the options for the regular expression
getOutputBuffer() - Method in class org.bson.BasicBSONEncoder
Gets the buffer the BSON is being encoded into.
getOutputCollection() - Method in class com.mongodb.MapReduceOutput
Gets the collection that holds the results (Will return null if results are Inline).
getOutputCount() - Method in class com.mongodb.MapReduceOutput
Get the number of documents generated as a result of this map reduce
getOutputCount() - Method in class com.mongodb.operation.MapReduceStatistics
Get the number of documents generated as a result of this map reduce
getOutputDB() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) database name where the output collection should reside
getOutputMode() - Method in class com.mongodb.AggregationOptions
The mode of output for this configuration.
getOutputMode() - Method in class org.bson.json.JsonWriterSettings
The output mode to use.
getOutputStream() - Method in class com.mongodb.gridfs.GridFSInputFile
After retrieving this OutputStream, this object will be capable of accepting successively written data to the output stream.
getOutputTarget() - Method in class com.mongodb.MapReduceCommand
Gets the output target (name of collection to save to) This value is nullable only if OutputType is set to INLINE
getOutputType() - Method in class com.mongodb.MapReduceCommand
Gets the OutputType for this instance.
getParentContext() - Method in class org.bson.AbstractBsonReader.Context
Returns the parent context.
getParentContext() - Method in class org.bson.AbstractBsonReader.Mark
 
getParentContext() - Method in class org.bson.AbstractBsonWriter.Context
Returns the parent context.
getParentContext() - Method in class org.bson.BsonBinaryReader.Context
 
getParentContext() - Method in class org.bson.BsonBinaryWriter.Context
 
getParentContext() - Method in class org.bson.json.JsonReader.Context
 
getParentContext() - Method in class org.bson.json.JsonWriter.Context
 
getPassives() - Method in class com.mongodb.connection.ServerDescription
Gets the passive members of the replica set.
getPassword() - Method in class com.mongodb.ConnectionString
Gets the password
getPassword() - Method in class com.mongodb.MongoClientURI
Gets the password
getPassword() - Method in class com.mongodb.MongoCredential
Gets the password.
getPassword() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the password.
getPattern() - Method in class org.bson.BsonRegularExpression
Gets the regex pattern.
getPipeline() - Method in class com.mongodb.operation.AggregateOperation
Gets the aggregation pipeline.
getPipeline() - Method in class com.mongodb.operation.AggregateToCollectionOperation
Gets the aggregation pipeline.
getPort() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the port that this connection pool is connecting to.
getPort() - Method in class com.mongodb.ServerAddress
Gets the port number
getPosition() - Method in class com.mongodb.connection.ByteBufferBsonOutput
 
getPosition() - Method in class org.bson.io.BasicOutputBuffer
 
getPosition() - Method in interface org.bson.io.BsonInput
Gets the current position in the stream
getPosition() - Method in interface org.bson.io.BsonOutput
Gets the current position in the stream.
getPosition() - Method in class org.bson.io.ByteBufferBsonInput
 
getPrimaries() - Method in class com.mongodb.connection.ClusterDescription
While it may seem counter-intuitive that a MongoDB cluster can have more than one primary, it can in the case where the client's view of the cluster is a set of mongos servers, any of which can serve as the primary.
getPrimary() - Method in class com.mongodb.connection.ServerDescription
Gets the address of the current primary in the replica set
getProcessIdentifier() - Method in class org.bson.types.ObjectId
Gets the process identifier.
getProjection() - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.client.model.FindOptions
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindAndDeleteOperation
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets a document describing the fields to return for all matching documents.
getProjection() - Method in class com.mongodb.operation.FindOperation
Gets a document describing the fields to return for all matching documents.
getQuery() - Method in class com.mongodb.DBCursor
Gets the query.
getQuery() - Method in class com.mongodb.MapReduceCommand
Gets the query to run for this MapReduce job
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncClusterBinding
 
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in interface com.mongodb.binding.AsyncReadBinding
Returns a connection source to a server that satisfies the specified read preference.
getReadConnectionSource() - Method in class com.mongodb.binding.ClusterBinding
 
getReadConnectionSource() - Method in interface com.mongodb.binding.ReadBinding
Returns a connection source to a server that satisfies the specified read preference.
getReadConnectionSource() - Method in class com.mongodb.binding.SingleServerBinding
 
getReadPreference() - Method in class com.mongodb.async.client.MongoClientSettings
The read preference to use for queries, map-reduce, aggregation, and count.
getReadPreference() - Method in interface com.mongodb.async.client.MongoCollection
Get the read preference for the MongoCollection.
getReadPreference() - Method in interface com.mongodb.async.client.MongoDatabase
Get the read preference for the MongoDatabase.
getReadPreference() - Method in class com.mongodb.binding.AsyncClusterBinding
 
getReadPreference() - Method in interface com.mongodb.binding.AsyncReadBinding
The read preference that all connection sources returned by this instance will satisfy.
getReadPreference() - Method in class com.mongodb.binding.ClusterBinding
 
getReadPreference() - Method in interface com.mongodb.binding.ReadBinding
The read preference that all connection sources returned by this instance will satisfy.
getReadPreference() - Method in class com.mongodb.binding.SingleServerBinding
 
getReadPreference() - Method in interface com.mongodb.client.MongoCollection
Get the read preference for the MongoCollection.
getReadPreference() - Method in interface com.mongodb.client.MongoDatabase
Get the read preference for the MongoDatabase.
getReadPreference() - Method in class com.mongodb.ConnectionString
Gets the read preference specified in the connection string.
getReadPreference() - Method in class com.mongodb.DB
Gets the read preference for this database.
getReadPreference() - Method in class com.mongodb.DBCollection
Gets the ReadPreference.
getReadPreference() - Method in class com.mongodb.DBCursor
Gets the default read preference.
getReadPreference() - Method in class com.mongodb.MapReduceCommand
Gets the read preference
getReadPreference() - Method in class com.mongodb.Mongo
Gets the default read preference
getReadPreference() - Method in class com.mongodb.MongoClientOptions
The read preference to use for queries, map-reduce, aggregation, and count.
getReadPreference() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the read preference.
getReadPreference() - Method in class com.mongodb.ParallelScanOptions
Gets the read preference to use.
getReadPreference() - Method in class com.mongodb.selector.ReadPreferenceServerSelector
Gets the read preference.
getReadTimeout(TimeUnit) - Method in class com.mongodb.connection.SocketSettings
Gets the timeout for socket reads.
getReceiveBufferSize() - Method in class com.mongodb.connection.SocketSettings
Gets the receive buffer size.
getReduce() - Method in class com.mongodb.MapReduceCommand
Gets the reduce function, as a JS String
getReduceFunction() - Method in class com.mongodb.operation.GroupOperation
Gets the aggregation function that operates on the documents during the grouping operation.
getReduceFunction() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
getReduceFunction() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
getReferenceCount() - Method in interface org.bson.ByteBuf
Gets the current reference count, which starts at 0.
getReferenceCount() - Method in class org.bson.ByteBufNIO
 
getRegularExpression(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a RegularExpression, or throws if not.
getRegularExpression(Object, BsonRegularExpression) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getRemovedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents removed by the write operation.
getReplacement() - Method in class com.mongodb.client.model.ReplaceOneModel
Gets the document which will replace the document matching the query filter.
getReplacement() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the document which will replace the document matching the query filter.
getReplicaSetStatus() - Method in class com.mongodb.Mongo
Get the status of the replica set cluster.
getRequestId() - Method in class com.mongodb.event.ConnectionMessagesSentEvent
Gets the request id of the message that was sent.
getRequests() - Method in class com.mongodb.operation.CreateIndexesOperation
Gets the index requests.
getRequiredClusterType() - Method in class com.mongodb.connection.ClusterSettings
Get
getRequiredReplicaSetName() - Method in class com.mongodb.connection.ClusterSettings
Gets the required replica set name.
getRequiredReplicaSetName() - Method in class com.mongodb.ConnectionString
Gets the required replica set name specified in the connection string.
getRequiredReplicaSetName() - Method in class com.mongodb.MongoClientOptions
Gets the required replica set name.
getRequiredReplicaSetName() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the required replica set name that this client should be connecting to.
getResponse() - Method in exception com.mongodb.MongoCommandException
For internal use only.
getResponse() - Method in exception com.mongodb.WriteConcernException
Gets the response to the write operation.
getResponseTo() - Method in class com.mongodb.event.ConnectionMessageReceivedEvent
The responseTo identifier of the message.
getResult() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Gets the combined result.
getResults() - Method in class com.mongodb.connection.QueryResult
Gets the results.
getReturnDocument() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the ReturnDocument value indicating whether to return the document before it was replaced or after
getReturnDocument() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the ReturnDocument value indicating whether to return the document before it was updated / inserted or after
getRoundTripTimeNanos() - Method in class com.mongodb.connection.ServerDescription
Get the time it took to make the round trip for requesting this information from the server in nanoseconds.
getScope() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) JavaScript scope
getScope() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the global variables that are accessible in the map, reduce and finalize functions.
getScope() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the global variables that are accessible in the map, reduce and finalize functions.
getScope() - Method in class org.bson.BsonJavaScriptWithScope
Get the scope.
getScope() - Method in class org.bson.types.CodeWithScope
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
getScope() - Method in class org.bson.types.CodeWScope
Gets the scope for this JavaScript
getSecondaries() - Method in class com.mongodb.connection.ClusterDescription
Get a list of all the secondaries in this cluster
getSecondaries(TagSet) - Method in class com.mongodb.connection.ClusterDescription
Get a list of all the secondaries in this cluster that match a given TagSet
getSendBufferSize() - Method in class com.mongodb.connection.SocketSettings
Gets the send buffer size.
getServerAddress() - Method in interface com.mongodb.client.MongoCursor
Returns the server address
getServerAddress() - Method in class com.mongodb.connection.ConnectionDescription
Gets the server address.
getServerAddress() - Method in interface com.mongodb.Cursor
Gets the address of the server that data is pulled from.
getServerAddress() - Method in class com.mongodb.DBCursor
 
getServerAddress() - Method in exception com.mongodb.MongoBulkWriteException
The address of the server which performed the bulk write operation.
getServerAddress() - Method in exception com.mongodb.MongoCursorNotFoundException
The server address where the cursor is.
getServerAddress() - Method in exception com.mongodb.MongoServerException
Gets the address of the server.
getServerAddress() - Method in exception com.mongodb.MongoSocketException
Gets the server address for this exception.
getServerAddress() - Method in interface com.mongodb.operation.BatchCursor
Returns the server address
getServerAddress() - Method in class com.mongodb.selector.ServerAddressSelector
Gets the server address.
getServerAddressList() - Method in class com.mongodb.Mongo
Gets the list of server addresses currently seen by this client.
getServerCursor() - Method in interface com.mongodb.client.MongoCursor
Returns the server cursor
getServerCursor() - Method in interface com.mongodb.operation.BatchCursor
Returns the server cursor
getServerDescription() - Method in interface com.mongodb.binding.AsyncConnectionSource
Gets the current description of this source.
getServerDescription() - Method in interface com.mongodb.binding.ConnectionSource
Gets the current description of this source.
getServerId() - Method in class com.mongodb.connection.ConnectionId
Gets the server id.
getServerId() - Method in class com.mongodb.event.ConnectionPoolEvent
Gets the server address associated with this connection pool
getServerSelectionTimeout(TimeUnit) - Method in class com.mongodb.connection.ClusterSettings
Gets the timeout to apply when selecting a server.
getServerSelectionTimeout() - Method in class com.mongodb.MongoClientOptions
Gets the server selection timeout in milliseconds, which defines how long the driver will wait for server selection to succeed before throwing an exception.
getServerSelector() - Method in class com.mongodb.connection.ClusterSettings
Gets the ServerSelector that will be uses as the final server selector that is applied in calls to Cluster.selectServer.
getServerSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the server-specific settings wrapped in a settings object.
getServerType() - Method in class com.mongodb.connection.ConnectionDescription
Gets the server type.
getServerValue() - Method in class com.mongodb.connection.ConnectionId
Gets the server generated id value for the connection or null if not set.
getServerVersion() - Method in class com.mongodb.connection.ConnectionDescription
Gets the version of the server.
getSetName() - Method in class com.mongodb.connection.ServerDescription
Gets the name of the replica set
getSettings() - Method in interface com.mongodb.async.client.MongoClient
Gets the settings that this client uses to connect to server.
getSettings() - Method in class com.mongodb.event.ConnectionPoolOpenedEvent
Gets the settings for this connection pool.
getShortDescription() - Method in class com.mongodb.connection.ClusterDescription
Returns a short, pretty description for this ClusterDescription.
getShortDescription() - Method in class com.mongodb.connection.ClusterSettings
Returns a short, pretty description for these ClusterSettings.
getShortDescription() - Method in class com.mongodb.connection.ServerDescription
Returns a short, pretty description for this ServerDescription.
getSister(String) - Method in class com.mongodb.DBAddress
Creates a DBAddress pointing to a different database on the same server.
getSisterDB(String) - Method in class com.mongodb.DB
Gets another database on same server
getSize() - Method in class com.mongodb.connection.ByteBufferBsonOutput
 
getSize() - Method in class com.mongodb.event.ConnectionMessageReceivedEvent
Gets the size of the received message.
getSize() - Method in class com.mongodb.event.ConnectionMessagesSentEvent
Gets the size of the sent message.
getSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the current size of the pool, including idle and and in-use members.
getSize() - Method in class org.bson.io.BasicOutputBuffer
 
getSize() - Method in interface org.bson.io.BsonOutput
Gets the current size of the stream in number of bytes.
getSizeInBytes() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the maximum size in bytes of a capped collection.
getSizeInBytes() - Method in class com.mongodb.operation.CreateCollectionOperation
Gets the maximum size of the collection in bytes.
getSkip() - Method in class com.mongodb.client.model.CountOptions
Gets the number of documents to skip.
getSkip() - Method in class com.mongodb.client.model.FindOptions
Gets the number of documents to skip.
getSkip() - Method in class com.mongodb.operation.CountOperation
Gets the number of documents to skip.
getSkip() - Method in class com.mongodb.operation.FindOperation
Gets the number of documents to skip.
getSocketAddress() - Method in class com.mongodb.ServerAddress
Gets the underlying socket address
getSocketFactory() - Method in class com.mongodb.MongoClientOptions
The socket factory for creating sockets to the mongo server.
getSocketFactory() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the socket factory for creating sockets to mongod.
getSocketSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the connection-specific settings wrapped in a settings object.
getSocketTimeout() - Method in class com.mongodb.ConnectionString
Gets the socket timeout specified in the connection string.
getSocketTimeout() - Method in class com.mongodb.MongoClientOptions
The socket timeout in milliseconds.
getSocketTimeout() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the socket timeout in milliseconds.
getSort() - Method in class com.mongodb.client.model.FindOneAndDeleteOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.client.model.FindOptions
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) sort specification object
getSort() - Method in class com.mongodb.operation.FindAndDeleteOperation
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.FindAndReplaceOperation
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.FindOperation
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the sort criteria to apply to the query.
getSort() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the sort criteria to apply to the query.
getSource() - Method in class com.mongodb.MongoCredential
Gets the source of the user name, typically the name of the database where the user is defined.
getSphereVersion() - Method in class com.mongodb.bulk.IndexRequest
Gets the 2dsphere index version number.
getSphereVersion() - Method in class com.mongodb.client.model.IndexOptions
Gets the 2dsphere index version number.
getSslEnabled() - Method in class com.mongodb.ConnectionString
Gets the SSL enabled value specified in the connection string.
getSslSettings() - Method in class com.mongodb.async.client.MongoClientSettings
Gets the SSL settings.
getState() - Method in class com.mongodb.connection.ServerDescription
Gets the current state of the connection to the server.
getState() - Method in class org.bson.AbstractBsonReader
 
getState() - Method in class org.bson.AbstractBsonWriter
Gets the current state of this writer.
getStatistics() - Method in interface com.mongodb.operation.MapReduceAsyncBatchCursor
Get the statistics for this map-reduce operation
getStatistics() - Method in interface com.mongodb.operation.MapReduceBatchCursor
Get the statistics for this map-reduce operation
getStats() - Method in class com.mongodb.DB
Helper method for calling a 'dbStats' command.
getStats() - Method in class com.mongodb.DBCollection
The collStats command returns a variety of storage statistics for a given collection
getStorageEngine() - Method in class com.mongodb.bulk.IndexRequest
Gets the storage engine options document for this index.
getStorageEngine() - Method in class com.mongodb.client.model.IndexOptions
Gets the storage engine options document for this index.
getStorageEngineOptions() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets the storage engine options document for this index.
getStorageEngineOptions() - Method in class com.mongodb.operation.CreateCollectionOperation
Gets the storage engine options document for this collection.
getStrict() - Static method in class com.mongodb.util.JSONSerializers
Returns an ObjectSerializer that conforms to the strict JSON format defined in extended JSON.
getString(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a string
getString(String, String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a string
getString(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a BsonString, or throws if not.
getString(Object, BsonString) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getString(Object) - Method in class org.bson.Document
Gets the value of the given key as a String.
getSymbol() - Method in class org.bson.BsonSymbol
Gets the symbol value
getSymbol() - Method in class org.bson.types.Symbol
Gets the symbol.
getTagSet() - Method in class com.mongodb.connection.ServerDescription
A set of all tags assigned to this member.
getTagSetList() - Method in class com.mongodb.TaggableReadPreference
Gets the list of tag sets as a list of TagSet instances.
getTextVersion() - Method in class com.mongodb.bulk.IndexRequest
The text index version number.
getTextVersion() - Method in class com.mongodb.client.model.IndexOptions
The text index version number.
getThreadId() - Method in class com.mongodb.event.ConnectionPoolWaitQueueEvent
Gets the identifier of the waiting thread.
getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.ConnectionString
Gets the multiplier for the number of threads allowed to block waiting for a connection specified in the connection string.
getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.MongoClientOptions
This multiplier, multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool.
getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the multiplier which, when multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool.
getTime() - Method in class org.bson.BsonTimestamp
Gets the time in seconds since epoch.
getTime() - Method in class org.bson.types.BSONTimestamp
Gets the time in seconds since epoch
getTime() - Method in class org.bson.types.ObjectId
Deprecated.
Use #getDate instead
getTimeSecond() - Method in class org.bson.types.ObjectId
Deprecated.
Use #getTimestamp instead
getTimestamp(Object) - Method in class org.bson.BsonDocument
Gets the value of the key if it is a Timestamp, or throws if not.
getTimestamp(Object, BsonTimestamp) - Method in class org.bson.BsonDocument
If the document does not contain the given key, return the given default value.
getTimestamp() - Method in class org.bson.types.ObjectId
Gets the timestamp (number of seconds since the Unix epoch).
getType() - Method in class com.mongodb.bulk.DeleteRequest
 
getType() - Method in class com.mongodb.bulk.InsertRequest
 
getType() - Method in class com.mongodb.bulk.UpdateRequest
 
getType() - Method in class com.mongodb.bulk.WriteRequest
Gets the type of the write.
getType(Object) - Static method in class com.mongodb.Bytes
Gets the type byte for a given object.
getType() - Method in class com.mongodb.connection.ClusterDescription
Gets the specific type of this cluster
getType() - Method in class com.mongodb.connection.ServerDescription
Gets the type of the server, for example whether it's a standalone or in a replica set.
getType() - Method in class com.mongodb.operation.BaseWriteOperation
 
getType() - Method in class com.mongodb.operation.DeleteOperation
 
getType() - Method in class com.mongodb.operation.InsertOperation
 
getType() - Method in class com.mongodb.operation.UpdateOperation
 
getType() - Method in class org.bson.BsonBinary
Gets the type of this Binary.
getType() - Method in class org.bson.types.Binary
Get the binary sub type as a byte.
getUpdate() - Method in class com.mongodb.bulk.UpdateRequest
Gets the update.
getUpdate() - Method in class com.mongodb.client.model.UpdateManyModel
Gets the document specifying the updates to apply to the matching document.
getUpdate() - Method in class com.mongodb.client.model.UpdateOneModel
Gets the document specifying the updates to apply to the matching document.
getUpdate() - Method in class com.mongodb.operation.FindAndUpdateOperation
Gets the document containing update operators
getUpdatedExisting(BulkWriteResult) - Method in class com.mongodb.operation.BaseWriteOperation
 
getUpdatedExisting(BulkWriteResult) - Method in class com.mongodb.operation.UpdateOperation
 
getUpdateRequests() - Method in class com.mongodb.operation.UpdateOperation
Gets the list of update requests.
getUploadDate() - Method in class com.mongodb.gridfs.GridFSFile
Gets the upload date.
getUpsertedId() - Method in class com.mongodb.client.result.UpdateResult
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null.
getUpsertedId() - Method in class com.mongodb.WriteConcernResult
Returns the value of _id if this write resulted in an upsert.
getUpsertedId() - Method in class com.mongodb.WriteResult
Gets the _id value of an upserted document that resulted from this write.
getUpserts() - Method in class com.mongodb.bulk.BulkWriteResult
Gets an unmodifiable list of upserted items, or the empty list if there were none.
getUpserts() - Method in class com.mongodb.BulkWriteResult
Gets an unmodifiable list of upserted items, or the empty list if there were none.
getURI() - Method in class com.mongodb.ConnectionString
Get the unparsed URI.
getURI() - Method in class com.mongodb.MongoClientURI
Get the unparsed URI.
getUseCursor() - Method in class com.mongodb.operation.AggregateOperation
Gets whether the server should use a cursor to return results.
getUsedDatabases() - Method in class com.mongodb.Mongo
Returns the list of databases used by the driver since this Mongo instance was created.
getUsername() - Method in class com.mongodb.ConnectionString
Gets the username
getUsername() - Method in class com.mongodb.MongoClientURI
Gets the username
getUserName() - Method in class com.mongodb.MongoCredential
Gets the user name
getUsername() - Method in class com.mongodb.MongoURI
Deprecated.
Gets the username.
getValidatorForField(String) - Method in interface org.bson.FieldNameValidator
Gets a new validator to use for the value of the field with the given name.
getValue() - Method in enum com.mongodb.client.model.MapReduceAction
 
getValue() - Method in class com.mongodb.connection.ClusterId
Gets the value of the identifier.
getValue() - Method in class com.mongodb.Tag
Gets the value of the replica set tag.
getValue() - Method in enum org.bson.BsonBinarySubType
Gets the byte representation of this subtype.
getValue() - Method in class org.bson.BsonBoolean
Gets the boolean value.
getValue() - Method in class org.bson.BsonDateTime
Gets the DateTime value as a long
getValue() - Method in class org.bson.BsonDouble
Gets the double value.
getValue() - Method in class org.bson.BsonElement
Gets the value of this element.
getValue() - Method in class org.bson.BsonInt32
Gets the integer value.
getValue() - Method in class org.bson.BsonInt64
Gets the long value.
getValue() - Method in class org.bson.BsonObjectId
Get the ObjectId value.
getValue() - Method in class org.bson.BsonString
Gets the String value.
getValue() - Method in enum org.bson.BsonType
Get the int value of this BSON type.
getValues() - Method in class org.bson.BsonArray
Gets the values in this array as a list of BsonValue objects.
getVersion() - Method in class com.mongodb.bulk.IndexRequest
Gets the index version number.
getVersion() - Method in class com.mongodb.client.model.IndexOptions
Gets the index version number.
getVersion() - Method in class com.mongodb.connection.ServerDescription
Gets the server version
getVersionList() - Method in class com.mongodb.connection.ServerVersion
Gets the version list.
getW() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the "w" value, (number of writes), of the global WriteConcern.
getW() - Method in class com.mongodb.WriteConcern
Gets the w parameter (the write strategy)
getWaitQueueSize() - Method in interface com.mongodb.management.ConnectionPoolStatisticsMBean
Gets the size of the wait queue for a connection from this pool.
getWeights() - Method in class com.mongodb.bulk.IndexRequest
Gets the weighting object for use with a text index
getWeights() - Method in class com.mongodb.client.model.IndexOptions
Gets the weighting object for use with a text index
getWObject() - Method in class com.mongodb.WriteConcern
Gets the w value (the write strategy)
getWrappedDocument() - Method in class org.bson.BsonDocumentWrapper
Get the wrapped document.
getWrapper(Class) - Static method in class com.mongodb.ReflectionDBObject
Returns an existing Wrapper instance associated with a class, or creates a new one.
getWrapperIfReflectionObject(Class) - Static method in class com.mongodb.ReflectionDBObject
Returns the wrapper if this object can be assigned from this class.
getWriteConcern() - Method in class com.mongodb.async.client.MongoClientSettings
The write concern to use.
getWriteConcern() - Method in interface com.mongodb.async.client.MongoCollection
Get the write concern for the MongoCollection.
getWriteConcern() - Method in interface com.mongodb.async.client.MongoDatabase
Get the write concern for the MongoDatabase.
getWriteConcern() - Method in interface com.mongodb.client.MongoCollection
Get the write concern for the MongoCollection.
getWriteConcern() - Method in interface com.mongodb.client.MongoDatabase
Get the write concern for the MongoDatabase.
getWriteConcern() - Method in class com.mongodb.ConnectionString
Gets the write concern specified in the connection string.
getWriteConcern() - Method in class com.mongodb.DB
Gets the write concern for this database.
getWriteConcern() - Method in class com.mongodb.DBCollection
Get the WriteConcern for this collection.
getWriteConcern() - Method in class com.mongodb.InsertOptions
The write concern to use for the insertion.
getWriteConcern() - Method in class com.mongodb.Mongo
Gets the default write concern
getWriteConcern() - Method in class com.mongodb.MongoClientOptions
The write concern to use.
getWriteConcern() - Method in class com.mongodb.MongoOptions
Deprecated.
Helper method to return the appropriate WriteConcern instance based on the current related options settings.
getWriteConcern() - Method in class com.mongodb.operation.BaseWriteOperation
Gets the write concern to apply
getWriteConcern() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Gets the write concern to apply
getWriteConcernError() - Method in exception com.mongodb.BulkWriteException
The write concern error, which may be null (in which case the list of errors will not be empty).
getWriteConcernError() - Method in exception com.mongodb.MongoBulkWriteException
The write concern error, which may be null (in which case the list of errors will not be empty).
getWriteConcernError() - Method in exception com.mongodb.MongoWriteConcernException
 
getWriteConcernResult() - Method in exception com.mongodb.WriteConcernException
Gets the write result.
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in class com.mongodb.binding.AsyncClusterBinding
 
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource>) - Method in interface com.mongodb.binding.AsyncWriteBinding
Supply a connection source to a server that can be written to
getWriteConnectionSource() - Method in class com.mongodb.binding.ClusterBinding
 
getWriteConnectionSource() - Method in class com.mongodb.binding.SingleServerBinding
 
getWriteConnectionSource() - Method in interface com.mongodb.binding.WriteBinding
Supply a connection source to a server that can be written to
getWriteErrors() - Method in exception com.mongodb.BulkWriteException
The list of errors, which will not be null, but may be empty (if the write concern error is not null).
getWriteErrors() - Method in exception com.mongodb.MongoBulkWriteException
The list of errors, which will not be null, but may be empty (if the write concern error is not null).
getWriter() - Method in class org.bson.json.JsonWriter
Gets the Writer.
getWriteRequests() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Gets the list of write requests to execute.
getWriteResult() - Method in exception com.mongodb.BulkWriteException
The result of all successfully processed write operations.
getWriteResult() - Method in exception com.mongodb.MongoBulkWriteException
The result of all successfully processed write operations.
getWString() - Method in class com.mongodb.WriteConcern
Gets the w parameter (the write strategy) in String format
getWtimeout() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the "wtimeout" value of the global WriteConcern.
getWtimeout() - Method in class com.mongodb.WriteConcern
Gets the write timeout (in milliseconds)
gotBinary(String, byte, byte[]) - Method in class org.bson.BasicBSONCallback
 
gotBinary(String, byte, byte[]) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.BINARY value.
gotBinary(String, byte, byte[]) - Method in class org.bson.EmptyBSONCallback
 
gotBinary(String, byte, byte[]) - Method in class org.bson.LazyBSONCallback
 
gotBinaryArray(String, byte[]) - Method in class org.bson.BasicBSONCallback
Deprecated.
gotBinaryArray(String, byte[]) - Method in interface org.bson.BSONCallback
Deprecated. 
gotBinaryArray(String, byte[]) - Method in class org.bson.EmptyBSONCallback
Deprecated.
gotBoolean(String, boolean) - Method in class org.bson.BasicBSONCallback
 
gotBoolean(String, boolean) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.BOOLEAN value.
gotBoolean(String, boolean) - Method in class org.bson.EmptyBSONCallback
 
gotCode(String, String) - Method in class org.bson.BasicBSONCallback
 
gotCode(String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.JAVASCRIPT value.
gotCode(String, String) - Method in class org.bson.EmptyBSONCallback
 
gotCodeWScope(String, String, Object) - Method in class org.bson.BasicBSONCallback
 
gotCodeWScope(String, String, Object) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.JAVASCRIPT_WITH_SCOPE value.
gotCodeWScope(String, String, Object) - Method in class org.bson.EmptyBSONCallback
 
gotDate(String, long) - Method in class org.bson.BasicBSONCallback
 
gotDate(String, long) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.DATE_TIME value.
gotDate(String, long) - Method in class org.bson.EmptyBSONCallback
 
gotDBRef(String, String, ObjectId) - Method in class com.mongodb.DefaultDBCallback
 
gotDBRef(String, String, ObjectId) - Method in class org.bson.BasicBSONCallback
 
gotDBRef(String, String, ObjectId) - Method in interface org.bson.BSONCallback
Invoked when BSONDecoder encountered a BsonType.DB_POINTER type field in a byte sequence.
gotDBRef(String, String, ObjectId) - Method in class org.bson.EmptyBSONCallback
 
gotDouble(String, double) - Method in class org.bson.BasicBSONCallback
 
gotDouble(String, double) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.DOUBLE value.
gotDouble(String, double) - Method in class org.bson.EmptyBSONCallback
 
gotInt(String, int) - Method in class org.bson.BasicBSONCallback
 
gotInt(String, int) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.INT32 value.
gotInt(String, int) - Method in class org.bson.EmptyBSONCallback
 
gotLong(String, long) - Method in class org.bson.BasicBSONCallback
 
gotLong(String, long) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.INT64 value.
gotLong(String, long) - Method in class org.bson.EmptyBSONCallback
 
gotMaxKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMaxKey(String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.MAX_KEY value.
gotMaxKey(String) - Method in class org.bson.EmptyBSONCallback
 
gotMinKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMinKey(String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.MIN_KEY value.
gotMinKey(String) - Method in class org.bson.EmptyBSONCallback
 
gotNull(String) - Method in class org.bson.BasicBSONCallback
 
gotNull(String) - Method in interface org.bson.BSONCallback
Called when reading a BSON field that exists but has a null value.
gotNull(String) - Method in class org.bson.EmptyBSONCallback
 
gotObjectId(String, ObjectId) - Method in class org.bson.BasicBSONCallback
 
gotObjectId(String, ObjectId) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.OBJECT_ID value.
gotObjectId(String, ObjectId) - Method in class org.bson.EmptyBSONCallback
 
gotRegex(String, String, String) - Method in class org.bson.BasicBSONCallback
 
gotRegex(String, String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.REGULAR_EXPRESSION value.
gotRegex(String, String, String) - Method in class org.bson.EmptyBSONCallback
 
gotString(String, String) - Method in class org.bson.BasicBSONCallback
 
gotString(String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.STRING value.
gotString(String, String) - Method in class org.bson.EmptyBSONCallback
 
gotSymbol(String, String) - Method in class org.bson.BasicBSONCallback
 
gotSymbol(String, String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.SYMBOL value.
gotSymbol(String, String) - Method in class org.bson.EmptyBSONCallback
 
gotTimestamp(String, int, int) - Method in class org.bson.BasicBSONCallback
 
gotTimestamp(String, int, int) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.TIMESTAMP value.
gotTimestamp(String, int, int) - Method in class org.bson.EmptyBSONCallback
 
gotUndefined(String) - Method in class org.bson.BasicBSONCallback
 
gotUndefined(String) - Method in interface org.bson.BSONCallback
Called when reading a field with a BsonType.UNDEFINED value.
gotUndefined(String) - Method in class org.bson.EmptyBSONCallback
 
gotUUID(String, long, long) - Method in class org.bson.BasicBSONCallback
 
gotUUID(String, long, long) - Method in interface org.bson.BSONCallback
Called when reading a field with a UUID value.
gotUUID(String, long, long) - Method in class org.bson.EmptyBSONCallback
 
greaterThan(Object) - Method in class com.mongodb.QueryBuilder
Equivalent to the $gt operator
greaterThanEquals(Object) - Method in class com.mongodb.QueryBuilder
Equivalent to the $gte operator
GridFS - Class in com.mongodb.gridfs
Implementation of GridFS - a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
GridFS(DB) - Constructor for class com.mongodb.gridfs.GridFS
Creates a GridFS instance for the default bucket "fs" in the given database.
GridFS(DB, String) - Constructor for class com.mongodb.gridfs.GridFS
Creates a GridFS instance for the specified bucket in the given database.
GridFSDBFile - Class in com.mongodb.gridfs
This class enables retrieving a GridFS file metadata and content.
GridFSDBFile() - Constructor for class com.mongodb.gridfs.GridFSDBFile
 
GridFSFile - Class in com.mongodb.gridfs
The abstract class representing a GridFS file.
GridFSFile() - Constructor for class com.mongodb.gridfs.GridFSFile
 
GridFSInputFile - Class in com.mongodb.gridfs
This class represents a GridFS file to be written to the database.
GridFSInputFile(GridFS, InputStream, String, boolean) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
GridFSInputFile(GridFS, InputStream, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
GridFSInputFile(GridFS, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Constructor that only provides a file name, but does not rely on the presence of an InputStream.
GridFSInputFile(GridFS) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Minimal constructor that does not rely on the presence of an InputStream.
group(DBObject, DBObject, DBObject, String) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(DBObject, DBObject, DBObject, String, String) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(DBObject, DBObject, DBObject, String, String, ReadPreference) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(GroupCommand) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(GroupCommand, ReadPreference) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
GroupCommand - Class in com.mongodb
This class groups the argument for a group operation and can build the underlying command object
GroupCommand(DBCollection, DBObject, DBObject, DBObject, String, String) - Constructor for class com.mongodb.GroupCommand
Creates a new group command.
GroupOperation<T> - Class in com.mongodb.operation
Groups documents in a collection by the specified key and performs simple aggregation functions, such as computing counts and sums.
GroupOperation(MongoNamespace, BsonJavaScript, BsonDocument, Decoder<T>) - Constructor for class com.mongodb.operation.GroupOperation
Create an operation that will perform a Group on a given collection.
GSSAPI_MECHANISM - Static variable in class com.mongodb.MongoCredential
The GSSAPI mechanism.
gt(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the given field is greater than the specified value.
GT - Static variable in class com.mongodb.QueryOperators
 
gte(String, TItem) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.
GTE - Static variable in class com.mongodb.QueryOperators
 

H

hasDecodeHooks() - Static method in class org.bson.BSON
Gets whether any decoding transformers have been registered for any classes.
hasEncodeHooks() - Static method in class org.bson.BSON
Gets whether any encoding transformers have been registered for any classes.
hasErrorCode() - Method in exception org.bson.BSONException
Returns if the error code is set (i.e., not null).
hasErrors() - Method in class com.mongodb.connection.BulkWriteBatchCombiner
Gets whether there are errors in the combined result.
hashCode() - Method in class com.mongodb.bulk.BulkWriteError
 
hashCode() - Method in class com.mongodb.bulk.BulkWriteUpsert
 
hashCode() - Method in class com.mongodb.bulk.WriteConcernError
 
hashCode() - Method in class com.mongodb.BulkWriteError
 
hashCode() - Method in exception com.mongodb.BulkWriteException
 
hashCode() - Method in class com.mongodb.BulkWriteUpsert
 
hashCode() - Method in class com.mongodb.connection.ChangeEvent
 
hashCode() - Method in class com.mongodb.connection.ClusterDescription
 
hashCode() - Method in class com.mongodb.connection.ClusterId
 
hashCode() - Method in class com.mongodb.connection.ClusterSettings
 
hashCode() - Method in class com.mongodb.connection.ConnectionDescription
 
hashCode() - Method in class com.mongodb.connection.ConnectionId
 
hashCode() - Method in class com.mongodb.connection.ConnectionPoolSettings
 
hashCode() - Method in class com.mongodb.connection.ServerDescription
 
hashCode() - Method in class com.mongodb.connection.ServerId
 
hashCode() - Method in class com.mongodb.connection.ServerSettings
 
hashCode() - Method in class com.mongodb.connection.ServerVersion
 
hashCode() - Method in class com.mongodb.connection.SocketSettings
 
hashCode() - Method in class com.mongodb.connection.SslSettings
 
hashCode() - Method in class com.mongodb.ConnectionString
 
hashCode() - Method in class com.mongodb.DBAddress
 
hashCode() - Method in class com.mongodb.DBObjectCodecProvider
 
hashCode() - Method in class com.mongodb.DBRef
 
hashCode() - Method in class com.mongodb.DBRefCodecProvider
 
hashCode() - Method in class com.mongodb.event.ClusterDescriptionChangedEvent
 
hashCode() - Method in exception com.mongodb.MongoBulkWriteException
 
hashCode() - Method in class com.mongodb.MongoClientOptions
 
hashCode() - Method in class com.mongodb.MongoClientURI
 
hashCode() - Method in class com.mongodb.MongoCredential
 
hashCode() - Method in class com.mongodb.MongoNamespace
 
hashCode() - Method in class com.mongodb.MongoOptions
Deprecated.
 
hashCode() - Method in class com.mongodb.ServerAddress
 
hashCode() - Method in class com.mongodb.ServerCursor
 
hashCode() - Method in class com.mongodb.Tag
 
hashCode() - Method in class com.mongodb.TaggableReadPreference
 
hashCode() - Method in class com.mongodb.TagSet
 
hashCode() - Method in class com.mongodb.WriteConcern
 
hashCode() - Method in class com.mongodb.WriteConcernError
 
hashCode() - Method in class com.mongodb.WriteError
 
hashCode() - Method in class org.bson.BasicBSONObject
 
hashCode() - Method in class org.bson.BsonArray
 
hashCode() - Method in class org.bson.BsonBinary
 
hashCode() - Method in class org.bson.BsonBoolean
 
hashCode() - Method in class org.bson.BsonDateTime
 
hashCode() - Method in class org.bson.BsonDbPointer
 
hashCode() - Method in class org.bson.BsonDocument
 
hashCode() - Method in class org.bson.BsonDocumentWrapper
 
hashCode() - Method in class org.bson.BsonDouble
 
hashCode() - Method in class org.bson.BsonInt32
 
hashCode() - Method in class org.bson.BsonInt64
 
hashCode() - Method in class org.bson.BsonJavaScript
 
hashCode() - Method in class org.bson.BsonJavaScriptWithScope
 
hashCode() - Method in class org.bson.BsonMaxKey
 
hashCode() - Method in class org.bson.BsonMinKey
 
hashCode() - Method in class org.bson.BsonNull
 
hashCode() - Method in class org.bson.BsonObjectId
 
hashCode() - Method in class org.bson.BsonRegularExpression
 
hashCode() - Method in class org.bson.BsonString
 
hashCode() - Method in class org.bson.BsonSymbol
 
hashCode() - Method in class org.bson.BsonTimestamp
 
hashCode() - Method in class org.bson.BsonUndefined
 
hashCode() - Method in class org.bson.codecs.BsonTypeClassMap
 
hashCode() - Method in class org.bson.codecs.DocumentCodecProvider
 
hashCode() - Method in class org.bson.codecs.ValueCodecProvider
 
hashCode() - Method in class org.bson.Document
 
hashCode() - Method in class org.bson.LazyBSONObject
 
hashCode() - Method in class org.bson.RawBsonDocument
 
hashCode() - Method in class org.bson.types.Binary
 
hashCode() - Method in class org.bson.types.BSONTimestamp
 
hashCode() - Method in class org.bson.types.Code
 
hashCode() - Method in class org.bson.types.CodeWithScope
 
hashCode() - Method in class org.bson.types.CodeWScope
 
hashCode() - Method in class org.bson.types.MaxKey
 
hashCode() - Method in class org.bson.types.MinKey
 
hashCode() - Method in class org.bson.types.ObjectId
 
hashCode() - Method in class org.bson.types.Symbol
 
hasNext() - Method in interface com.mongodb.client.MongoCursor
 
hasNext() - Method in class com.mongodb.DBCursor
Checks if there is another object available.
hasNext() - Method in interface com.mongodb.operation.BatchCursor
Returns true if another batch of results exists.
hasNext() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
hasRemaining() - Method in interface org.bson.ByteBuf
States whether there are any elements between the current position and the limit.
hasRemaining() - Method in class org.bson.ByteBufNIO
 
hasRemaining() - Method in interface org.bson.io.BsonInput
Returns true if there are more bytes left in the stream.
hasRemaining() - Method in class org.bson.io.ByteBufferBsonInput
 
hasTags(TagSet) - Method in class com.mongodb.connection.ServerDescription
Returns true if the server has the given tags.
heartbeatConnectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the connect timeout for connections used for the cluster heartbeat.
heartbeatFrequency(long, TimeUnit) - Method in class com.mongodb.connection.ServerSettings.Builder
Sets the frequency that the cluster monitor attempts to reach each server.
heartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat frequency.
heartbeatSocketSettings(SocketSettings) - Method in class com.mongodb.async.client.MongoClientSettings.Builder
Sets the heartbeat socket settings.
heartbeatSocketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the socket timeout for connections used for the cluster heartbeat.
hexMD5(byte[]) - Static method in class com.mongodb.util.Util
Produce hex representation of the MD5 digest of a byte array.
hexMD5(ByteBuffer, int, int) - Static method in class com.mongodb.util.Util
Produce hex representation of the MD5 digest of a byte array.
hint(Bson) - Method in class com.mongodb.client.model.CountOptions
Sets the hint to apply.
hint(DBObject) - Method in class com.mongodb.DBCursor
Informs the database of indexed fields of the collection in order to improve performance.
hint(String) - Method in class com.mongodb.DBCursor
Informs the database of an indexed field of the collection in order to improve performance.
hint(BsonValue) - Method in class com.mongodb.operation.CountOperation
Sets the hint to apply.
HINT - Static variable in class com.mongodb.QueryOperators
 
hintString(String) - Method in class com.mongodb.client.model.CountOptions
Sets the hint to apply.
Holder() - Constructor for class com.mongodb.Mongo.Holder
 
hosts(List<ServerAddress>) - Method in class com.mongodb.connection.ClusterSettings.Builder
Sets the hosts for the cluster.
hosts(Set<String>) - Method in class com.mongodb.connection.ServerDescription.Builder
Sets all members of the replica set that are neither hidden, passive, nor arbiters.

I

ID_FIELD_NAME - Static variable in class com.mongodb.DBCollection
 
IdGenerator - Interface in org.bson.codecs
Classes that implement this interface define a way to create IDs for MongoDB documents.
Immutable - Annotation Type in com.mongodb.annotations
The class to which this annotation is applied is immutable.
in(String, TItem...) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
in(String, Iterable<TItem>) - Static method in class com.mongodb.client.model.Filters
Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.
in(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $in operand
IN - Static variable in class com.mongodb.QueryOperators
 
include(String...) - Static method in class com.mongodb.client.model.Projections
Creates a projection that includes all of the given fields.
include(List<String>) - Static method in class com.mongodb.client.model.Projections
Creates a projection that includes all of the given fields.
IndexModel - Class in com.mongodb.client.model
A model describing the creation of a single index.
IndexModel(Bson) - Constructor for class com.mongodb.client.model.IndexModel
Construct an instance with the given keys.
IndexModel(Bson, IndexOptions) - Constructor for class com.mongodb.client.model.IndexModel
Construct an instance with the given keys and options.
indexOf(Object) - Method in class org.bson.BsonArray
 
indexOf(Object) - Method in class org.bson.LazyBSONList
 
IndexOptions - Class in com.mongodb.client.model
The options to apply to the creation of an index.
IndexOptions() - Constructor for class com.mongodb.client.model.IndexOptions
 
IndexRequest - Class in com.mongodb.bulk
The settings to apply to the creation of an index.
IndexRequest(BsonDocument) - Constructor for class com.mongodb.bulk.IndexRequest
Construct a new instance with the given keys
info(String) - Method in interface com.mongodb.diagnostics.logging.Logger
Log a message at the INFO level.
info(String, Throwable) - Method in interface com.mongodb.diagnostics.logging.Logger
Log an exception (throwable) at the INFO level with an accompanying message.
INITIAL_BUFFER_SIZE - Static variable in class com.mongodb.connection.ByteBufferBsonOutput
 
initializeOrderedBulkOperation() - Method in class com.mongodb.DBCollection
Creates a builder for an ordered bulk write operation, consisting of an ordered collection of write requests, which can be any combination of inserts, updates, replaces, or removes.
initializeUnorderedBulkOperation() - Method in class com.mongodb.DBCollection
Creates a builder for an unordered bulk operation, consisting of an unordered collection of write requests, which can be any combination of inserts, updates, replaces, or removes.
insert(DBObject) - Method in class com.mongodb.BulkWriteOperation
Add an insert request to the bulk operation
insert(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Method in interface com.mongodb.connection.Connection
Insert the documents using the insert wire protocol and apply the write concern.
insert(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Insert a document into a collection.
insert(DBObject...) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(WriteConcern, DBObject...) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(DBObject[], WriteConcern) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<? extends DBObject>) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<? extends DBObject>, WriteConcern) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(DBObject[], WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<? extends DBObject>, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<? extends DBObject>, InsertOptions) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insertAsync(MongoNamespace, boolean, WriteConcern, List<InsertRequest>, SingleResultCallback<WriteConcernResult>) - Method in interface com.mongodb.connection.AsyncConnection
Insert the documents using the insert wire protocol and apply the write concern asynchronously.
insertCommand(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Method in interface com.mongodb.connection.Connection
Insert the documents using the insert command.
insertCommandAsync(MongoNamespace, boolean, WriteConcern, List<InsertRequest>, SingleResultCallback<BulkWriteResult>) - Method in interface com.mongodb.connection.AsyncConnection
Insert the documents using the insert command asynchronously.
insertMany(List<? extends TDocument>, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Inserts one or more documents.
insertMany(List<? extends TDocument>, InsertManyOptions, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Inserts one or more documents.
insertMany(List<? extends TDocument>) - Method in interface com.mongodb.client.MongoCollection
Inserts one or more documents.
insertMany(List<? extends TDocument>, InsertManyOptions) - Method in interface com.mongodb.client.MongoCollection
Inserts one or more documents.
InsertManyOptions - Class in com.mongodb.client.model
The options to apply to an operation that inserts multiple documents into a collection.
InsertManyOptions() - Constructor for class com.mongodb.client.model.InsertManyOptions
 
insertOne(TDocument, SingleResultCallback<Void>) - Method in interface com.mongodb.async.client.MongoCollection
Inserts the provided document.
insertOne(TDocument) - Method in interface com.mongodb.client.MongoCollection
Inserts the provided document.
InsertOneModel<T> - Class in com.mongodb.client.model
A model describing an insert of a single document.
InsertOneModel(T) - Constructor for class com.mongodb.client.model.InsertOneModel
Construct a new instance.
InsertOperation - Class in com.mongodb.operation
An operation that inserts one or more documents into a collection.
InsertOperation(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Constructor for class com.mongodb.operation.InsertOperation
Construct an instance.
InsertOptions - Class in com.mongodb
Options related to insertion of documents into MongoDB.
InsertOptions() - Constructor for class com.mongodb.InsertOptions
 
InsertRequest - Class in com.mongodb.bulk
A representation of a document to insert.
InsertRequest(BsonDocument) - Constructor for class com.mongodb.bulk.InsertRequest
Construct an instance with the given document.
IntegerCodec - Class in org.bson.codecs
Encodes and decodes Integer objects.
IntegerCodec() - Constructor for class org.bson.codecs.IntegerCodec
 
into(A, SingleResultCallback<A>) - Method in interface com.mongodb.async.client.MongoIterable
Iterates over all the documents, adding each to the given target.
into(A) - Method in interface com.mongodb.client.MongoIterable
Iterates over all the documents, adding each to the given target.
intValue() - Method in class org.bson.BsonDouble
 
intValue() - Method in class org.bson.BsonInt32
 
intValue() - Method in class org.bson.BsonInt64
 
intValue() - Method in class org.bson.BsonNumber
Returns the value of the specified number as an int, which may involve rounding or truncation.
invalidHostNameAllowed(boolean) - Method in class com.mongodb.connection.SslSettings.Builder
Define whether invalid host names should be allowed.
is(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the find({key:value})
isAcknowledged() - Method in class com.mongodb.BulkWriteResult
Returns true if the write was acknowledged.
isAcknowledged() - Method in class com.mongodb.WriteConcern
Returns whether write operations should be acknowledged
isAlwaysUseMBeans() - Method in class com.mongodb.MongoClientOptions
Gets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater.
isAlwaysUseMBeans() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is Java 6 or greater.
isArray(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonArray, returns false if the document does not contain the key.
isArray() - Method in class org.bson.BsonValue
Returns true if this is a BsonArray, false otherwise.
isAutoIndex() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets if auto-index is enabled
isAutoIndex() - Method in class com.mongodb.operation.CreateCollectionOperation
The auto index value.
isBackground() - Method in class com.mongodb.bulk.IndexRequest
Create the index in the background
isBackground() - Method in class com.mongodb.client.model.IndexOptions
Create the index in the background
isBinary(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a Binary, returns false if the document does not contain the key.
isBinary() - Method in class org.bson.BsonValue
Returns true if this is a Binary, false otherwise.
isBoolean(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonBoolean, returns false if the document does not contain the key.
isBoolean() - Method in class org.bson.BsonValue
Returns true if this is a , false otherwise.
isCapped() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets whether the collection is capped.
isCapped() - Method in class com.mongodb.DBCollection
Checks whether this collection is capped
isCapped() - Method in class com.mongodb.operation.CreateCollectionOperation
Gets whether the collection is capped.
isClosed() - Method in interface com.mongodb.async.AsyncBatchCursor
Return true if the AsyncBatchCursor has been closed
isClosed() - Method in interface com.mongodb.connection.Cluster
Whether all the servers in the cluster are closed or not.
isClosed() - Method in interface com.mongodb.connection.Stream
Returns the closed state of the connection
isClosed() - Method in class org.bson.AbstractBsonReader
Return true if the reader has been closed.
isClosed() - Method in class org.bson.AbstractBsonWriter
Returns whether this writer has been closed.
isCompatibleWithDriver() - Method in class com.mongodb.connection.ClusterDescription
Return whether the cluster is compatible with the driver.
isCompatibleWithDriver() - Method in class com.mongodb.connection.ServerDescription
Return whether the server is compatible with the driver.
isContainer() - Method in enum org.bson.BsonType
Returns whether this type is some sort of containing type, e.g.
isContinueOnError() - Method in class com.mongodb.InsertOptions
Whether documents will continue to be inserted after a failure to insert one (most commonly due to a duplicate key error).
isCursorFinalizerEnabled() - Method in class com.mongodb.MongoClientOptions
Gets whether there is a a finalize method created that cleans up instances of DBCursor that the client does not close.
isCursorFinalizerEnabled() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets whether there is a a finalize method created that cleans up instances of DBCursor that the client does not close.
isDateTime(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonDateTime, returns false if the document does not contain the key.
isDateTime() - Method in class org.bson.BsonValue
Returns true if this is a BsonDateTime, false otherwise.
isDBPointer() - Method in class org.bson.BsonValue
Returns true if this is a DBPointer, false otherwise.
isDebugEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the DEBUG level?
isDocument(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonDocument, returns false if the document does not contain the key.
isDocument() - Method in class org.bson.BsonValue
Returns true if this is a BsonDocument, false otherwise.
isDouble(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonDouble, returns false if the document does not contain the key.
isDouble() - Method in class org.bson.BsonValue
Returns true if this is a BsonDouble, false otherwise.
isDropTarget() - Method in class com.mongodb.client.model.RenameCollectionOptions
Gets if mongod should drop the target of renameCollection prior to renaming the collection.
isDropTarget() - Method in class com.mongodb.operation.RenameCollectionOperation
Gets if mongod should drop the target of renameCollection prior to renaming the collection.
isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
Returns true if no key/value was inserted into the top level document.
isEmpty() - Method in class org.bson.BsonArray
 
isEmpty() - Method in class org.bson.BsonDocument
 
isEmpty() - Method in class org.bson.BsonDocumentWrapper
 
isEmpty() - Method in class org.bson.Document
 
isEmpty() - Method in class org.bson.LazyBSONObject
Gets whether this is an empty BSONObject.
isEmpty() - Method in class org.bson.RawBsonDocument
 
isEmpty() - Method in class org.bson.util.ClassMap
As per java.util.Map, returns true if this map contains no key-value mappings.
isEnabled() - Method in class com.mongodb.connection.SslSettings
Returns whether SSL is enabled.
isEncodingCollectibleDocument(boolean) - Method in class org.bson.codecs.EncoderContext.Builder
Set to true if the the value to be encoded is a document that will be put in a MongoDB collection.
isEncodingCollectibleDocument() - Method in class org.bson.codecs.EncoderContext
Returns true if the the value to be encoded is a document that will be put in a MongoDB collection.
isErrorEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the ERROR level?
isFsync() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the "fsync" value of the global WriteConcern.
isIndent() - Method in class org.bson.json.JsonWriterSettings
The indentation mode.
isInfoEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the INFO level?
isInt32(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonInt32, returns false if the document does not contain the key.
isInt32() - Method in class org.bson.BsonValue
Returns true if this is a BsonInt32, false otherwise.
isInt64(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonInt64, returns false if the document does not contain the key.
isInt64() - Method in class org.bson.BsonValue
Returns true if this is a BsonInt64, false otherwise.
isInvalidHostNameAllowed() - Method in class com.mongodb.connection.SslSettings
Returns whether invalid host names should be allowed.
isJ() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the "j" value of the global WriteConcern.
isJavaScript() - Method in class org.bson.BsonValue
Returns true if this is a Code, false otherwise.
isJavaScriptWithScope() - Method in class org.bson.BsonValue
Returns true if this is a CodeWithScope, false otherwise.
isJsMode() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
isJsMode() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
isKeepAlive() - Method in class com.mongodb.connection.SocketSettings
Gets whether keep-alive is enabled.
isLocked() - Method in class com.mongodb.Mongo
Returns true if the database is locked (read-only), false otherwise.
isMaster(ServerAddress) - Method in class com.mongodb.ReplicaSetStatus
Checks to see if a given server is the primary server in this replica set.
isModifiedCountAvailable() - Method in class com.mongodb.bulk.BulkWriteResult
Returns true if the server was able to provide a count of modified documents.
isModifiedCountAvailable() - Method in class com.mongodb.BulkWriteResult
Returns true if the server was able to provide a count of modified documents.
isModifiedCountAvailable() - Method in class com.mongodb.client.result.UpdateResult
Gets a value indicating whether the modified count is available.
isMulti() - Method in class com.mongodb.bulk.DeleteRequest
Gets whether all documents matching the query filter will be removed.
isMulti() - Method in class com.mongodb.bulk.UpdateRequest
Gets whether this update will update all documents matching the filter.
isNoCursorTimeout() - Method in class com.mongodb.client.model.FindOptions
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
isNoCursorTimeout() - Method in class com.mongodb.operation.FindOperation
Returns true if cursor timeout has been turned off.
isNonAtomic() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
True if the post-processing step will prevent MongoDB from locking the database.
isNull(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonNull, returns false if the document does not contain the key.
isNull() - Method in class org.bson.BsonValue
Returns true if this is a BsonNull, false otherwise.
isNumber(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonNumber, returns false if the document does not contain the key.
isNumber() - Method in class org.bson.BsonValue
Returns true if this is a BsonNumber, false otherwise.
isObjectId(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a ObjectId, returns false if the document does not contain the key.
isObjectId() - Method in class org.bson.BsonValue
Returns true if this is an ObjectId, false otherwise.
isOk() - Method in class com.mongodb.connection.ServerDescription
The isOK() result from requesting this information from the server
isOplogReplay() - Method in class com.mongodb.client.model.FindOptions
Users should not set this under normal circumstances.
isOplogReplay() - Method in class com.mongodb.operation.FindOperation
Internal replication use only.
isOrdered() - Method in class com.mongodb.BulkWriteOperation
Returns true if this is building an ordered bulk write request.
isOrdered() - Method in class com.mongodb.client.model.BulkWriteOptions
If true, then when a write fails, return without performing the remaining writes.
isOrdered() - Method in class com.mongodb.client.model.InsertManyOptions
Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion.
isOrdered() - Method in class com.mongodb.operation.BaseWriteOperation
Gets whether the writes are ordered.
isOrdered() - Method in class com.mongodb.operation.MixedBulkWriteOperation
Gets whether the writes are ordered.
isPartial() - Method in class com.mongodb.client.model.FindOptions
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
isPartial() - Method in class com.mongodb.operation.FindOperation
Returns true if can get partial results from a mongos if some shards are down.
isPartialObject() - Method in class com.mongodb.BasicDBList
 
isPartialObject() - Method in class com.mongodb.BasicDBObject
Whether BasicDBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
isPartialObject() - Method in interface com.mongodb.DBObject
Whether DBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
isPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
 
isPartialObject() - Method in class com.mongodb.LazyDBList
 
isPartialObject() - Method in class com.mongodb.LazyDBObject
 
isPartialObject() - Method in class com.mongodb.ReflectionDBObject
 
isPrimary() - Method in class com.mongodb.connection.ServerDescription
Returns whether this can be treated as a primary server.
isReadOnly() - Method in class com.mongodb.operation.CreateUserOperation
Returns true if the user is a readOnly user.
isReadOnly() - Method in class com.mongodb.operation.UpdateUserOperation
Returns true if the user is a readOnly user.
isRegularExpression() - Method in class org.bson.BsonValue
Returns true if this is a RegularExpression, false otherwise.
isReplicaSetMember() - Method in class com.mongodb.connection.ServerDescription
Gets whether this server is a replica set member.
isReturnOriginal() - Method in class com.mongodb.operation.FindAndReplaceOperation
When false, returns the replaced document rather than the original.
isReturnOriginal() - Method in class com.mongodb.operation.FindAndUpdateOperation
When false, returns the updated document rather than the original.
isSafe() - Method in class com.mongodb.MongoOptions
Deprecated.
Returns whether the driver will use a WriteConcern of WriteConcern.ACKNOWLEDGED for all operations.
isSecondary() - Method in class com.mongodb.connection.ServerDescription
Returns whether this can be treated as a secondary server.
isServerDefault() - Method in class com.mongodb.WriteConcern
The server default is w == 1 and everything else the default value.
isSharded() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
True if the output database is sharded
isShardRouter() - Method in class com.mongodb.connection.ServerDescription
Gets whether this is a server that is the entry point to a sharded instance of MongoDB.
isSlaveOk() - Method in class com.mongodb.operation.FindOperation
Returns true if set to allowed to query non-primary replica set members.
isSlaveOk() - Method in class com.mongodb.ReadPreference
True if this read preference allows reading from a secondary member of a replica set.
isSlaveOk() - Method in class com.mongodb.TaggableReadPreference
 
isSocketKeepAlive() - Method in class com.mongodb.MongoClientOptions
This flag controls the socket keep alive feature that keeps a connection alive through firewalls Socket.setKeepAlive(boolean)
isSocketKeepAlive() - Method in class com.mongodb.MongoOptions
Deprecated.
Gets the flag that controls the socket keep alive feature that keeps a connection alive through firewalls.
isSparse() - Method in class com.mongodb.bulk.IndexRequest
If true, the index only references documents with the specified field
isSparse() - Method in class com.mongodb.client.model.IndexOptions
If true, the index only references documents with the specified field
isSslEnabled() - Method in class com.mongodb.MongoClientOptions
Whether to use SSL.
isSslInvalidHostNameAllowed() - Method in class com.mongodb.MongoClientOptions
Returns whether invalid host names should be allowed if SSL is enabled.
isStackEmpty() - Method in class org.bson.BasicBSONCallback
Returns whether this is the top level or not
isStandAlone() - Method in class com.mongodb.connection.ServerDescription
Gets whether this is part of a replica set/sharded system, or is a single server.
isString(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a BsonString, returns false if the document does not contain the key.
isString() - Method in class org.bson.BsonValue
Returns true if this is a BsonString, false otherwise.
isSymbol() - Method in class org.bson.BsonValue
Returns true if this is a Symbol, false otherwise.
isTailable() - Method in enum com.mongodb.CursorType
True if the cursor type is tailable.
isTimestamp(Object) - Method in class org.bson.BsonDocument
Returns true if the value of the key is a Timestamp, returns false if the document does not contain the key.
isTimestamp() - Method in class org.bson.BsonValue
Returns true if this is a Timestamp, false otherwise.
isTraceEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the TRACE level?
isTrue(String, boolean) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalStateException if the condition if false.
isTrue(String, boolean, SingleResultCallback<?>) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalStateException if the condition if false.
isTrue(String, boolean) - Static method in class org.bson.assertions.Assertions
Throw IllegalStateException if the condition if false.
isTrueArgument(String, boolean) - Static method in class com.mongodb.assertions.Assertions
Throw IllegalArgumentException if the condition if false.
isTrueArgument(String, boolean) - Static method in class org.bson.assertions.Assertions
Throw IllegalArgumentException if the condition if false.
isUnique() - Method in class com.mongodb.bulk.IndexRequest
Gets if the index should be unique.
isUnique() - Method in class com.mongodb.client.model.IndexOptions
Gets if the index should be unique.
isUnwrapped() - Method in class org.bson.BsonDocumentWrapper
Determine whether the document has been unwrapped already.
isUpdateOfExisting() - Method in class com.mongodb.WriteConcernResult
Returns true if the write was an update of an existing document.
isUpdateOfExisting() - Method in class com.mongodb.WriteResult
Returns true if this write resulted in an update of an existing document.
isUpsert() - Method in class com.mongodb.bulk.UpdateRequest
Gets whether this update will insert a new document if no documents match the filter.
isUpsert() - Method in class com.mongodb.client.model.FindOneAndReplaceOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.client.model.FindOneAndUpdateOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.client.model.UpdateOptions
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.operation.FindAndReplaceOperation
Returns true if a new document should be inserted if there are no matches to the query filter.
isUpsert() - Method in class com.mongodb.operation.FindAndUpdateOperation
Returns true if a new document should be inserted if there are no matches to the query filter.
isUsePowerOf2Sizes() - Method in class com.mongodb.client.model.CreateCollectionOptions
Gets whether the usePowerOf2Sizes allocation strategy is turned on for this collection.
isUsePowerOf2Sizes() - Method in class com.mongodb.operation.CreateCollectionOperation
Gets whether usePowerOf2Sizes should be used foe the allocation strategy.
isValid(String) - Static method in class org.bson.types.ObjectId
Checks if a string could be an ObjectId.
isVerbose() - Method in class com.mongodb.MapReduceCommand
Gets the verbosity of the MapReduce job.
isVerbose() - Method in class com.mongodb.operation.MapReduceToCollectionOperation
Gets whether to include the timing information in the result information.
isVerbose() - Method in class com.mongodb.operation.MapReduceWithInlineResultsOperation
Gets whether to include the timing information in the result information.
isWarnEnabled() - Method in interface com.mongodb.diagnostics.logging.Logger
Is the logger instance enabled for the WARN level?
itcount() - Method in class com.mongodb.DBCursor
For testing only! Iterates cursor and counts objects
iterator() - Method in interface com.mongodb.client.MongoIterable
 
iterator() - Method in class com.mongodb.DBCursor
Creates a copy of this cursor object that can be iterated.
iterator() - Method in class com.mongodb.TagSet
 
iterator() - Method in class org.bson.BsonArray
 
iterator() - Method in class org.bson.LazyBSONList
 

J

j - Variable in class com.mongodb.MongoOptions
Deprecated.
The "j" value of the global WriteConcern.
JMXConnectionPoolListener - Class in com.mongodb.management
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
JMXConnectionPoolListener() - Constructor for class com.mon