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 X Y _ 

A

AbstractCopyOnWriteMap<K,V,M extends java.util.Map<K,V>> - Class in org.bson.util
Abstract base class for COW Map implementations that delegate to an internal map.
AbstractCopyOnWriteMap(N, AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.AbstractCopyOnWriteMap
Create a new CopyOnWriteMap with the supplied Map to initialize the values.
AbstractCopyOnWriteMap.CollectionView<E> - Class in org.bson.util
 
AbstractCopyOnWriteMap.EntrySet - Class in org.bson.util
 
AbstractCopyOnWriteMap.Immutable - Class in org.bson.util
 
AbstractCopyOnWriteMap.KeySet - Class in org.bson.util
 
AbstractCopyOnWriteMap.Mutable - Class in org.bson.util
 
AbstractCopyOnWriteMap.UnmodifiableIterator<T> - Class in org.bson.util
 
AbstractCopyOnWriteMap.Values - Class in org.bson.util
 
AbstractCopyOnWriteMap.View<K,V> - Class in org.bson.util
Provides access to the views of the underlying key, value and entry collections.
AbstractCopyOnWriteMap.View.Type - Enum in org.bson.util
The different types of AbstractCopyOnWriteMap.View available
AbstractObjectSerializer - Class in com.mongodb.util
 
AbstractObjectSerializer() - Constructor for class com.mongodb.util.AbstractObjectSerializer
 
acceptableLatencyDifference(int) - Method in class com.mongodb.MongoClientOptions.Builder
acceptableLatencyDifferenceMS - Variable in class com.mongodb.MongoOptions
Deprecated.
 
acceptableLatencyDifferenceNanos - Variable in class com.mongodb.LatencyMinimizingServerSelector
 
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.
AcknowledgedBulkWriteResult - Class in com.mongodb
 
AcknowledgedBulkWriteResult(int, int, int, Integer, List<BulkWriteUpsert>) - Constructor for class com.mongodb.AcknowledgedBulkWriteResult
 
AcknowledgedBulkWriteResult(WriteRequest.Type, int, List<BulkWriteUpsert>) - Constructor for class com.mongodb.AcknowledgedBulkWriteResult
 
AcknowledgedBulkWriteResult(WriteRequest.Type, int, Integer, List<BulkWriteUpsert>) - Constructor for class com.mongodb.AcknowledgedBulkWriteResult
 
acquirePermit(long, TimeUnit) - Method in class com.mongodb.ConcurrentPool
 
ActiveState(OutMessage) - Constructor for class com.mongodb.DBPort.ActiveState
Deprecated.
 
add(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Same as append
add(int) - Method in class com.mongodb.Bytes.OptionHolder
 
add(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Inserts the specified element at the tail of this deque.
add(WriteRequest, int) - Method in class com.mongodb.DBCollectionImpl.Run
 
add(E) - Method in interface com.mongodb.Deque
Inserts the specified element into the queue represented by this deque unless it would violate capacity restrictions.
add(int, int) - Method in class com.mongodb.IndexMap
Add a new index to the map
add(int, int) - Method in class com.mongodb.IndexMap.HashBased
 
add(int, int) - Method in class com.mongodb.IndexMap.RangeBased
 
add(MongoCredential) - Method in class com.mongodb.MongoCredentialsStore
Adds a new credentials.
add(T) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
add(T) - Method in class com.mongodb.util.UniqueList
Deprecated.
 
add(T) - Method in class com.mongodb.util.WeakBag
Deprecated.
Adds an element to the bag.
add(Object) - Method in class org.bson.LazyBSONList
 
add(int, Object) - Method in class org.bson.LazyBSONList
 
add(String) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
add(E) - Method in class org.bson.LazyBSONObject.ReadOnlySet
 
add(E) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
add(String) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
addAll(Collection<? extends E>) - Method in class com.mongodb.ConcurrentLinkedDeque
Appends all of the elements in the specified collection to the end of this deque, in the order that they are returned by the specified collection's iterator.
addAll(Collection<T>) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
addAll(IdentitySet<T>) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
addAll(Collection<? extends T>) - Method in class com.mongodb.util.UniqueList
Deprecated.
 
addAll(Collection) - Method in class org.bson.LazyBSONList
 
addAll(int, Collection) - Method in class org.bson.LazyBSONList
 
addAll(Collection<? extends E>) - Method in class org.bson.LazyBSONObject.ReadOnlySet
 
addAll(Collection<? extends E>) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
addAll(Map<? extends K, ? extends V>) - Method in class org.bson.util.CopyOnWriteMap.Builder
Views are live (reflecting concurrent updates) and mutator methods are supported.
addAll(Collection<? extends String>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
addBulkWriteResultToCommandResult(BulkWriteResult, WriteRequest.Type, CommandResult) - Method in class com.mongodb.DBCollectionImpl
 
addChangeListener(ChangeListener<ServerDescription>) - Method in interface com.mongodb.ClusterableServer
Adds a change listener to this server.
addChangeListener(ChangeListener<ServerDescription>) - Method in class com.mongodb.DefaultServer
 
addCommonSerializers() - Static method in class com.mongodb.util.JSONSerializers
 
addDeadCursor(DBApiLayer.DeadCursor) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
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(BulkWriteException, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
 
addErrorResult(List<BulkWriteError>, WriteConcernError, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
 
addExplain(boolean) - Method in class com.mongodb.QueryOpBuilder
Adds the explain flag to the operation
addExtraOption(String, Object) - Method in class com.mongodb.MapReduceCommand
Deprecated.
use the specific setter methods
addFirst(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Inserts the specified element at the front of this deque.
addFirst(E) - Method in interface com.mongodb.Deque
Inserts the specified element to the front of this deque unless it would violate capacity restrictions.
addFSync(BasicDBObject) - Method in class com.mongodb.WriteConcern
 
addHint(String) - Method in class com.mongodb.QueryOpBuilder
Adds the hint clause to the operation
addHint(DBObject) - Method in class com.mongodb.QueryOpBuilder
Adds hint clause to the operation
addHostsToSet(Set<String>, Set<ServerAddress>) - Method in class com.mongodb.MultiServerCluster
 
addJ(BasicDBObject) - Method in class com.mongodb.WriteConcern
 
addLast(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Inserts the specified element at the end of this deque.
addLast(E) - Method in interface com.mongodb.Deque
Inserts the specified element to the end of this deque unless it would violate capacity restrictions.
addMaxTimeMS(long) - Method in class com.mongodb.QueryOpBuilder
 
addMissingUpserted(ModifyRequest, WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
addNewHosts(Set<String>) - Method in class com.mongodb.MultiServerCluster
 
addObjectSerializer(Class, ObjectSerializer) - Method in class com.mongodb.util.ClassMapBasedObjectSerializer
Assign a ObjectSerializer to perform a type specific serialization scheme
addOperand(String, Object) - Method in class com.mongodb.QueryBuilder
 
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 a default query option keeping any previously added options.
addOrderBy(DBObject) - Method in class com.mongodb.QueryOpBuilder
Adds the orderby clause to the operation
addQuery(DBObject) - Method in class com.mongodb.QueryOpBuilder
Adds the query clause to the operation
addReadPreference(ReadPreference) - Method in class com.mongodb.QueryOpBuilder
Adds a read preference to the query operation
addRequest(WriteRequest) - Method in class com.mongodb.BulkWriteOperation
 
address - Variable in class com.mongodb.ServerAddressSelector
 
address - Variable in class com.mongodb.ServerDescription
 
address - Variable in class com.mongodb.ServerDescription.Builder
 
address(ServerAddress) - Method in class com.mongodb.ServerDescription.Builder
 
addressToServerTupleMap - Variable in class com.mongodb.MultiServerCluster
 
addResult(BulkWriteResult, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
 
addServer(ServerAddress) - Method in class com.mongodb.MultiServerCluster
 
addSnapshot(boolean) - Method in class com.mongodb.QueryOpBuilder
Adds the snapshot flag to the operation
addSpecial(String, Object) - Method in class com.mongodb.DBCursor
Adds a special operator like $maxScan or $returnKey.
addSpecialFields(DBObject) - Method in class com.mongodb.QueryOpBuilder
Adds special fields to the operation
addToQueryObject(DBObject, String, DBObject, boolean) - Method in class com.mongodb.QueryOpBuilder
Adds DBObject to the operation
addToQueryObject(DBObject, String, Object) - Method in class com.mongodb.QueryOpBuilder
Adds an Object to the operation
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
addUser(String, char[], boolean) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
addWriteConcernErrorResult(WriteConcernError) - Method in class com.mongodb.BulkWriteBatchCombiner
 
addWriteErrorResult(BulkWriteError, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
 
addWTimeout(BasicDBObject) - Method in class com.mongodb.WriteConcern
 
ADMIN_DATABASE_NAME - Static variable in class com.mongodb.Mongo
 
aggregate(DBObject, DBObject...) - Method in class com.mongodb.DBCollection
aggregate(List<DBObject>) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
aggregate(List<DBObject>, ReadPreference) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
aggregate(List<DBObject>, AggregationOptions) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
aggregate(List<DBObject>, AggregationOptions, ReadPreference) - Method in class com.mongodb.DBCollection
Method implements aggregation framework.
aggregate(List<DBObject>, AggregationOptions, ReadPreference) - Method in class com.mongodb.DBCollectionImpl
 
AggregationOptions - Class in com.mongodb
The options to apply to an aggregate operation.
AggregationOptions(AggregationOptions.Builder) - Constructor for class com.mongodb.AggregationOptions
 
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.
AggregationOutput(DBObject, CommandResult) - Constructor for class com.mongodb.AggregationOutput
Deprecated.
there is no replacement for this constructor
all - Variable in class com.mongodb.ClusterDescription
 
all(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $all operand
ALL - Static variable in class com.mongodb.QueryOperators
 
allDatabasesWithCredentials - Variable in class com.mongodb.MongoCredentialsStore
 
allKeys - Static variable in class com.mongodb.MongoClientURI
 
allowDiskUse - Variable in class com.mongodb.AggregationOptions
 
allowDiskUse - Variable in class com.mongodb.AggregationOptions.Builder
 
allowDiskUse(Boolean) - Method in class com.mongodb.AggregationOptions.Builder
Set whether to enable external sort capabilities.
alwaysUseMBeans - Variable in class com.mongodb.MongoClientOptions
 
alwaysUseMBeans - Variable in class com.mongodb.MongoClientOptions.Builder
 
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(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
 
AnyServerSelector - Class in com.mongodb
 
AnyServerSelector() - Constructor for class com.mongodb.AnyServerSelector
 
append(String, Object) - Method in class com.mongodb.BasicDBObject
 
append(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Appends the key/value to the active object
append(E) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Tries to insert a node holding element as successor, failing if this node is deleted.
append(String, Object) - Method in class org.bson.BasicBSONObject
Add a key/value pair to this object
apply(ServerDescription) - Method in interface com.mongodb.ClusterDescription.Predicate
 
apply(DBObject) - Method in class com.mongodb.DBCollection
Deprecated.
This method will be removed in a future release. There is no replacement.
apply(DBObject, boolean) - Method in class com.mongodb.DBCollection
Deprecated.
This method will be removed in a future release. There is no replacement.
apply(Class<?>) - Method in class org.bson.util.ClassMap.ComputeFunction
 
apply(K) - Method in class org.bson.util.ComputingMap
 
apply(A) - Method in interface org.bson.util.Function
 
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.
applyRulesForInsert(List<DBObject>) - Method in class com.mongodb.DBCollectionImpl
 
arbiters - Variable in class com.mongodb.ServerDescription
 
arbiters - Variable in class com.mongodb.ServerDescription.Builder
 
arbiters(Set<String>) - Method in class com.mongodb.ServerDescription.Builder
 
Args - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
Args(String[]) - Constructor for class com.mongodb.util.Args
Deprecated.
 
ARRAY - Static variable in class org.bson.BSON
 
array() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
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() - 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
 
asAscii() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
asDBObject() - Method in class com.mongodb.WriteConcern
Gets the write concern as a document.
asList() - Method in class com.mongodb.MongoCredentialsStore
Gets the MongoCredentials in this map as a List
asNamespaceString(String, String) - Static method in class com.mongodb.MongoNamespace
 
assertConditions() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
Assertions - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
Assertions() - Constructor for class org.bson.util.Assertions
Deprecated.
 
Assertions.NullArgumentException - Exception in org.bson.util
Deprecated.
 
asString() - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString(String) - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString(String) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
asString(String) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
authenticate(String, char[]) - Method in class com.mongodb.DB
Deprecated.
Please use MongoClient(java.util.List, java.util.List) to create a client, which will authenticate all connections to server
authenticate(MongoCredential) - Method in interface com.mongodb.DBConnector
Deprecated.
Authenticate using the given credentials.
authenticate(Mongo, MongoCredential) - Method in class com.mongodb.DBPort
Deprecated.
 
authenticate() - Method in class com.mongodb.DBPort.Authenticator
Deprecated.
 
authenticate() - Method in class com.mongodb.DBPort.NativeAuthenticator
Deprecated.
 
authenticate() - Method in class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
authenticate() - Method in class com.mongodb.DBPort.X509Authenticator
Deprecated.
 
authenticate(MongoCredential) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
authenticateCommand(String, char[]) - Method in class com.mongodb.DB
Deprecated.
Please use MongoClient(java.util.List, java.util.List) to create a client, which will authenticate all connections to server
authenticateCommandHelper(String, char[]) - Method in class com.mongodb.DB
 
authenticatedDatabases - Variable in class com.mongodb.DBPort
Deprecated.
 
authenticationTestCommandResult - Variable in class com.mongodb.DB
 
Authenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.Authenticator
Deprecated.
 
authKeys - Static variable in class com.mongodb.MongoClientURI
 
autoConnectRetry - Variable in class com.mongodb.MongoClientOptions
 
autoConnectRetry - Variable in class com.mongodb.MongoClientOptions.Builder
 
autoConnectRetry(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
autoConnectRetry - Variable in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
available - Variable in class com.mongodb.ConcurrentPool
 
available() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
available() - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
available() - Method in class com.mongodb.Response.MyInputStream
 
averageLatency - Variable in class com.mongodb.ServerDescription.Builder
 
averageLatency(long, TimeUnit) - Method in class com.mongodb.ServerDescription.Builder
 
averageLatencyNanos - Variable in class com.mongodb.ServerDescription
 

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
 
babbleToMongod(String) - Static method in class org.bson.types.ObjectId
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
back() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns previous node containing a nondeleted user element, if possible.
backpatchMessageLength(int, OutputBuffer) - Method in class com.mongodb.RequestMessage
 
backpatchSize() - Method in class com.mongodb.BSONBinaryWriter
 
backpatchSize(int) - Method in class org.bson.io.OutputBuffer
Backpatches the size of a document or string by writing the size into the four bytes starting at getPosition() - size.
backpatchSize(int, int) - Method in class org.bson.io.OutputBuffer
Backpatches the size of a document or string by writing the size into the four bytes starting at getPosition() - size - additionalOffset.
base64Codec - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
Base64Codec - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
Base64Codec() - Constructor for class com.mongodb.util.Base64Codec
Deprecated.
 
BaseCluster - Class in com.mongodb
 
BaseCluster(String, ClusterSettings, ClusterableServerFactory, ClusterListener) - Constructor for class com.mongodb.BaseCluster
 
BaseCluster.WrappedServer - Class in com.mongodb
 
BaseWriteCommandMessage - Class in com.mongodb
 
BaseWriteCommandMessage(MongoNamespace, WriteConcern, Boolean, DBEncoder, MessageSettings) - Constructor for class com.mongodb.BaseWriteCommandMessage
 
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
 
BasicBSONDecoder.BSONInput - Class in org.bson
Deprecated.
This class should not be a part of API. Please see the class-level documentation for a migration instructions.
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
 
BATCH_INSERT_SIZE - Static variable in class com.mongodb.Bytes
default target size of an insert batch
batchSize - Variable in class com.mongodb.AggregationOptions
 
batchSize - Variable in class com.mongodb.AggregationOptions.Builder
 
batchSize(Integer) - Method in class com.mongodb.AggregationOptions.Builder
Sets the size of batches to use when iterating over results.
batchSize(int) - Method in class com.mongodb.DBCursor
Limits the number of elements returned in one batch.
batchSize - Variable in class com.mongodb.ParallelScanOptions
 
batchSize - Variable in class com.mongodb.ParallelScanOptions.Builder
 
batchSize(int) - Method in class com.mongodb.ParallelScanOptions.Builder
The batch size to use for each cursor.
batchSizeTrackingDisabled - Variable in class com.mongodb.QueryResultIterator
 
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(byte, byte[]) - Constructor for class org.bson.types.Binary
Creates a Binary with the specified type and data.
BinarySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.BinarySerializer
 
BinarySerializerBase(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.BinarySerializerBase
 
binaryWriterSettings - Variable in class com.mongodb.BSONBinaryWriter
 
Bits - Class in org.bson.io
Utility class for reading values from an input stream.
Bits() - Constructor for class org.bson.io.Bits
 
BOOLEAN - Static variable in class org.bson.BSON
 
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.RegexFlag - Enum in org.bson
 
BSONBinarySubType - Enum in com.mongodb
 
BSONBinarySubType(byte) - Constructor for enum com.mongodb.BSONBinarySubType
 
BSONBinaryWriter - Class in com.mongodb
 
BSONBinaryWriter(OutputBuffer) - Constructor for class com.mongodb.BSONBinaryWriter
 
BSONBinaryWriter(BSONWriterSettings, BSONBinaryWriterSettings, OutputBuffer) - Constructor for class com.mongodb.BSONBinaryWriter
 
BSONBinaryWriter.Context - Class in com.mongodb
 
BSONBinaryWriter.Mark - Class in com.mongodb
 
BSONBinaryWriterSettings - Class in com.mongodb
 
BSONBinaryWriterSettings(int) - Constructor for class com.mongodb.BSONBinaryWriterSettings
 
BSONBinaryWriterSettings() - Constructor for class com.mongodb.BSONBinaryWriterSettings
 
BSONByteBuffer - Class in org.bson.io
Deprecated.
use a simple byte array array instead, all of the classes that take a BSONByteBuffer also take a byte[]
BSONByteBuffer(ByteBuffer) - Constructor for class org.bson.io.BSONByteBuffer
Deprecated.
 
BSONCallback - Interface in org.bson
A callback interface for describing the structure of a BSON document.
BSONContextType - Enum in com.mongodb
 
BSONContextType() - Constructor for enum com.mongodb.BSONContextType
 
BSONDecoder - Interface in org.bson
An interface for decoders of BSON documents.
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(InputStream) - Constructor for class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
BSONLazyDecoder - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
BSONLazyDecoder() - Constructor for class org.bson.BSONLazyDecoder
Deprecated.
 
BSONObject - Interface in org.bson
A key-value map that can be saved to the database.
BSONTimestamp - Class in org.bson.types
This is used for internal increment values.
BSONTimestamp() - Constructor for class org.bson.types.BSONTimestamp
Construct a new instance with a null time and a 0 increment.
BSONTimestamp(int, int) - Constructor for class org.bson.types.BSONTimestamp
Construct a new instance for the given time and increment.
BSONTimestampSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.BSONTimestampSerializer
 
BSONType - Enum in com.mongodb
 
BSONType(int) - Constructor for enum com.mongodb.BSONType
 
BSONWriter - Class in com.mongodb
 
BSONWriter(BSONWriterSettings) - Constructor for class com.mongodb.BSONWriter
Initializes a new instance of the BSONWriter class.
BSONWriter.Context - Class in com.mongodb
 
BSONWriter.Mark - Class in com.mongodb
 
BSONWriter.State - Enum in com.mongodb
 
BSONWriterSettings - Class in com.mongodb
 
BSONWriterSettings(int) - Constructor for class com.mongodb.BSONWriterSettings
 
BSONWriterSettings() - Constructor for class com.mongodb.BSONWriterSettings
 
buf - Variable in class org.bson.io.BSONByteBuffer
Deprecated.
 
BUF_SIZE - Static variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
buffer - Variable in class com.mongodb.BSONBinaryWriter
 
build() - Method in class com.mongodb.AggregationOptions.Builder
Return the options based on this builder.
build() - Method in class com.mongodb.ClusterSettings.Builder
Build the settings from the builder.
build() - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
build() - Method in class com.mongodb.MessageSettings.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 com.mongodb.ServerDescription.Builder
 
build() - Method in class com.mongodb.ServerSettings.Builder
 
build() - Method in class com.mongodb.SocketSettings.Builder
 
builder() - Static method in class com.mongodb.AggregationOptions
Creates a new Builder for AggregationOptions.
Builder() - Constructor for class com.mongodb.AggregationOptions.Builder
 
builder() - Static method in class com.mongodb.ClusterSettings
 
Builder() - Constructor for class com.mongodb.ClusterSettings.Builder
 
builder() - Static method in class com.mongodb.ConnectionPoolSettings
 
Builder() - Constructor for class com.mongodb.ConnectionPoolSettings.Builder
 
builder() - Static method in class com.mongodb.MessageSettings
 
Builder() - Constructor for class com.mongodb.MessageSettings.Builder
 
builder() - Static method in class com.mongodb.MongoClientOptions
Create a new Builder instance.
Builder() - Constructor for class com.mongodb.MongoClientOptions.Builder
 
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 com.mongodb.ServerDescription
 
Builder() - Constructor for class com.mongodb.ServerDescription.Builder
 
builder() - Static method in class com.mongodb.ServerSettings
 
Builder() - Constructor for class com.mongodb.ServerSettings.Builder
 
builder() - Static method in class com.mongodb.SocketSettings
 
Builder() - Constructor for class com.mongodb.SocketSettings.Builder
 
builder() - Static method in class org.bson.util.CopyOnWriteMap
Get a CopyOnWriteMap.Builder for a CopyOnWriteMap instance.
Builder() - Constructor for class org.bson.util.CopyOnWriteMap.Builder
 
buildReadPreference(String, DBObject, List<DBObject>, Boolean) - Method in class com.mongodb.MongoClientURI
 
buildWriteConcern(Boolean, String, int, boolean, boolean) - Method in class com.mongodb.MongoClientURI
 
BulkUpdateRequestBuilder - Class in com.mongodb
A builder for a single update request.
BulkUpdateRequestBuilder(BulkWriteOperation, DBObject, boolean) - Constructor for class com.mongodb.BulkUpdateRequestBuilder
 
BulkWriteBatchCombiner - Class in com.mongodb
 
BulkWriteBatchCombiner(ServerAddress, WriteConcern) - Constructor for class com.mongodb.BulkWriteBatchCombiner
 
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.
BulkWriteException(BulkWriteResult, List<BulkWriteError>, WriteConcernError, ServerAddress) - Constructor for exception com.mongodb.BulkWriteException
Constructs a new instance.
bulkWriteOperation - Variable in class com.mongodb.BulkUpdateRequestBuilder
 
BulkWriteOperation - Class in com.mongodb
A bulk write operation.
BulkWriteOperation(boolean, DBCollection) - Constructor for class com.mongodb.BulkWriteOperation
 
bulkWriteOperation - Variable in class com.mongodb.BulkWriteRequestBuilder
 
BulkWriteRequestBuilder - Class in com.mongodb
A builder for a single write request.
BulkWriteRequestBuilder(BulkWriteOperation, DBObject) - Constructor for class com.mongodb.BulkWriteRequestBuilder
 
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
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.
byCharacter - Static variable in enum org.bson.BSON.RegexFlag
 
bypassDocumentValidation - Variable in class com.mongodb.AggregationOptions.Builder
 
bypassDocumentValidation(Boolean) - Method in class com.mongodb.AggregationOptions.Builder
Sets whether to bypass document validation.
bypassDocumentValidation - Variable in class com.mongodb.AggregationOptions
 
bypassDocumentValidation - Variable in class com.mongodb.BaseWriteCommandMessage
 
bypassDocumentValidation - Variable in class com.mongodb.BulkWriteOperation
 
bypassDocumentValidation - Variable in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
bypassDocumentValidation - Variable in class com.mongodb.DBCollectionImpl.Run
 
bypassDocumentValidation - Variable in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
bypassDocumentValidation - Variable in class com.mongodb.InsertOptions
 
bypassDocumentValidation(Boolean) - Method in class com.mongodb.InsertOptions
Sets whether to bypass document validation.
ByteArraySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.ByteArraySerializer
 
ByteBufferFactory - Interface in com.mongodb.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
ByteBufferFactory.SimpleHeapByteBufferFactory - Class in com.mongodb.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
ByteBufferHolder - Class in com.mongodb.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
ByteBufferHolder() - Constructor for class com.mongodb.io.ByteBufferHolder
Deprecated.
 
ByteBufferHolder(int) - Constructor for class com.mongodb.io.ByteBufferHolder
Deprecated.
 
ByteBufferInputStream - Class in com.mongodb.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
ByteBufferInputStream(List<ByteBuffer>) - Constructor for class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
ByteBufferInputStream(List<ByteBuffer>, boolean) - Constructor for class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
ByteBufferOutputStream - Class in com.mongodb.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
ByteBufferOutputStream() - Constructor for class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
ByteBufferOutputStream(int) - Constructor for class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
ByteBufferOutputStream(ByteBufferFactory) - Constructor for class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
Bytes - Class in com.mongodb
Class that hold definitions of the wire protocol
Bytes() - Constructor for class com.mongodb.Bytes
 
Bytes.OptionHolder - Class in com.mongodb
 
BYTES_IN_INTEGER - Static variable in class org.bson.LazyBSONDecoder
 
BYTES_PER_ENCODED_BLOCK - Static variable in class com.mongodb.util.Base64Codec
Deprecated.
 
BYTES_PER_UNENCODED_BLOCK - Static variable in class com.mongodb.util.Base64Codec
Deprecated.
 
ByteStream - Interface in com.mongodb.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.

C

cache - Variable in class org.bson.util.ClassMap
 
call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in interface com.mongodb.DBConnector
Deprecated.
does a read operation on the database
call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in interface com.mongodb.DBConnector
Deprecated.
does a read operation on the database
call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in interface com.mongodb.DBConnector
Deprecated.
does a read operation on the database
call(OutMessage, DBCollection) - Method in class com.mongodb.DBPort
Deprecated.
 
call(OutMessage, DBCollection, DBDecoder) - Method in class com.mongodb.DBPort
Deprecated.
 
call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
callGetLastError() - Method in class com.mongodb.WriteConcern
Returns whether "getlasterror" should be called (w > 0)
canonicalAddress - Variable in class com.mongodb.ServerDescription.Builder
 
canonicalAddress(String) - Method in class com.mongodb.ServerDescription.Builder
 
canonicalAddress - Variable in class com.mongodb.ServerDescription
 
canonicalize(Object) - Static method in class org.bson.BasicBSONObject
 
CANONICALIZE_HOST_NAME_KEY - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
canonicalizeBSONObject(BSONObject) - Static method in class org.bson.BasicBSONObject
 
canonicalizeList(List<Object>) - Static method in class org.bson.BasicBSONObject
 
canonicalizeMap(Map<String, Object>) - Static method in class org.bson.BasicBSONObject
 
capacity() - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
casNext(ConcurrentLinkedDeque.Node<E>, ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
compareAndSet next link
CENTER - Static variable in class com.mongodb.QueryOperators
 
CENTER_SPHERE - Static variable in class com.mongodb.QueryOperators
 
ChangeEvent<T> - Class in com.mongodb
 
ChangeEvent(T, T) - Constructor for class com.mongodb.ChangeEvent
 
ChangeListener<T> - Interface in com.mongodb
Listener for ChangeEvents - classes that implement this will be informed if classes of type T are changed.
changeListeners - Variable in class com.mongodb.DefaultServer
 
check(char) - Method in class com.mongodb.util.JSONParser
Checks the current character, making sure that it is the expected character.
checkAuth(Mongo) - Method in class com.mongodb.DBPort
Deprecated.
 
checkByte(int, int, int) - Static method in class org.bson.io.UTF8Encoding
 
checkedOutCount - Variable in class com.mongodb.ConnectionPoolStatistics
 
checkMinimal(int, int) - Static method in class org.bson.io.UTF8Encoding
 
checkNotNull(Object) - Static method in class com.mongodb.ConcurrentLinkedDeque
Throws NullPointerException if argument is null.
checkPreconditions(String, BSONWriter.State...) - Method in class com.mongodb.BSONWriter
 
checkReadOnly(boolean) - Method in class com.mongodb.DBCollection
Deprecated.
checkState(BSONWriter.State[]) - Method in class com.mongodb.BSONWriter
 
choose(ClusterDescription) - Method in class com.mongodb.AnyServerSelector
 
choose(ClusterDescription) - Method in class com.mongodb.CompositeServerSelector
 
choose(ClusterDescription) - Method in class com.mongodb.LatencyMinimizingServerSelector
 
choose(ClusterDescription) - Method in class com.mongodb.MongosHAServerSelector
 
choose(ClusterDescription) - Method in class com.mongodb.ReadPreference
 
choose(ClusterDescription) - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
 
choose(ClusterDescription) - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
choose(ClusterDescription) - Method in class com.mongodb.ReadPreferenceServerSelector
 
choose(ClusterDescription) - Method in class com.mongodb.ServerAddressSelector
 
choose(ClusterDescription) - Method in interface com.mongodb.ServerSelector
 
choose(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference
 
choose(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.PrimaryPreferredReadPreference
 
choose(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
 
chooseBatchSize(int, int, int) - Static method in class com.mongodb.QueryResultIterator
 
ClassAncestry - Class in org.bson.util
 
ClassAncestry() - Constructor for class org.bson.util.ClassAncestry
 
ClassMap<T> - Class in org.bson.util
Maps Class objects to values.
ClassMap() - Constructor for class org.bson.util.ClassMap
 
ClassMap.ComputeFunction - Class in org.bson.util
 
ClassMapBasedObjectSerializer - Class in com.mongodb.util
Objects of type ClassMapBasedObjectSerializer are constructed to perform instance specific object to JSON serialization schemes.
ClassMapBasedObjectSerializer() - Constructor for class com.mongodb.util.ClassMapBasedObjectSerializer
 
CLDIterator() - Constructor for class com.mongodb.ConcurrentLinkedDeque.CLDIterator
 
clean() - Method in class com.mongodb.util.WeakBag
Deprecated.
Removes any null objects from the bag.
cleanCursors(boolean) - Method in class com.mongodb.DB
Deprecated.
Clients should ensure that DBCursor.close() is called.
cleanCursors(boolean) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
cleanerIntervalMS - Static variable in class com.mongodb.Mongo
 
cleanup(DBPort) - Method in class com.mongodb.DBPortPool
Deprecated.
 
cleanup(T) - Method in class com.mongodb.util.SimplePool
Deprecated.
Override this if you need to do any cleanup
clear() - Method in class com.mongodb.ConcurrentLinkedDeque
Removes all of the elements from this deque.
clear() - Method in class com.mongodb.util.FastStack
Deprecated.
 
clear() - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
clear() - Method in class com.mongodb.util.WeakBag
Deprecated.
Removes all object from the bag.
clear() - Method in class org.bson.LazyBSONList
 
clear() - Method in class org.bson.LazyBSONObject.ReadOnlySet
 
clear() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
clear() - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
 
clear() - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
 
clear() - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
 
clear() - Method in class org.bson.util.ClassMap
As per java.util.Map, removes all of the mappings from this map (optional operation).
clear() - Method in class org.bson.util.ComputingMap
 
clear() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
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.
clearStatus() - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
 
clearStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
 
CLI - Class in com.mongodb.gridfs
a simple CLI for Gridfs
CLI() - Constructor for class com.mongodb.gridfs.CLI
 
clientFirstMessageBare - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
close() - Method in class com.mongodb.BaseCluster
 
close() - Method in class com.mongodb.BSONBinaryWriter
 
close() - Method in class com.mongodb.BSONWriter
Closes the writer.
close() - Method in interface com.mongodb.Cluster
Closes connections to the servers in the cluster.
close() - Method in interface com.mongodb.ClusterableServer
Closes the server.
close() - Method in class com.mongodb.ConcurrentPool
Clears the pool of all objects.
close(T) - Method in class com.mongodb.ConcurrentPool
 
close(T) - Method in interface com.mongodb.ConcurrentPool.ItemFactory
 
close() - Method in interface com.mongodb.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.DBPort
Deprecated.
closes the underlying connection and streams
close() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
close() - Method in class com.mongodb.DefaultServer
 
close() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
close() - Method in class com.mongodb.gridfs.GridFSInputFile.MyOutputStream
Processes/saves all data from InputStream and closes the potentially present OutputStream.
close() - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
close() - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
close() - Method in class com.mongodb.Mongo
Closes the underlying connector, which in turn closes all open connections.
close() - Method in class com.mongodb.MultiServerCluster
 
close() - Method in class com.mongodb.PooledConnectionProvider
 
close(Connection) - Method in class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
 
close() - Method in class com.mongodb.QueryResultIterator
 
close() - Method in class com.mongodb.Response.MyInputStream
 
close() - Method in class com.mongodb.ServerMonitor
 
close() - Method in class com.mongodb.SingleServerCluster
 
close() - Method in class com.mongodb.util.SimplePool
Deprecated.
Clears the pool of all objects.
closed - Variable in class com.mongodb.BSONWriter
 
closed - Variable in class com.mongodb.BulkWriteOperation
 
closed - Variable in class com.mongodb.ConcurrentPool
 
closed - Variable in class com.mongodb.DBPort
Deprecated.
 
closed - Variable in class com.mongodb.PooledConnectionProvider
 
closed - Variable in class com.mongodb.QueryResultIterator
 
Cluster - Interface in com.mongodb
Represents a cluster of MongoDB servers.
cluster - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
ClusterableServer - Interface in com.mongodb
A logical connection to a MongoDB server that supports clustering along with other servers.
ClusterableServerFactory - Interface in com.mongodb
 
clusterClosed(ClusterEvent) - Method in interface com.mongodb.ClusterListener
Invoked when a cluster is closed.
clusterClosed(ClusterEvent) - Method in class com.mongodb.ClusterListenerAdapter
 
ClusterConnectionMode - Enum in com.mongodb
The cluster connection mode.
ClusterConnectionMode() - Constructor for enum com.mongodb.ClusterConnectionMode
 
ClusterDescription - Class in com.mongodb
Immutable snapshot state of a cluster.
ClusterDescription(ClusterConnectionMode, ClusterType, List<ServerDescription>) - Constructor for class com.mongodb.ClusterDescription
 
clusterDescription - Variable in class com.mongodb.ClusterDescriptionChangedEvent
 
clusterDescription - Variable in class com.mongodb.JMXConnectionPoolListener
 
clusterDescription - Variable in class com.mongodb.ReplicaSetStatus
 
ClusterDescription.Predicate - Interface in com.mongodb
 
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in interface com.mongodb.ClusterListener
Invoked when a cluster description changes.
clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.ClusterListenerAdapter
 
ClusterDescriptionChangedEvent - Class in com.mongodb
An event signifying that the cluster description has changed.
ClusterDescriptionChangedEvent(String, ClusterDescription) - Constructor for class com.mongodb.ClusterDescriptionChangedEvent
Constructs a new instance of the event.
ClusterEvent - Class in com.mongodb
A cluster-related event.
ClusterEvent(String) - Constructor for class com.mongodb.ClusterEvent
Constructs a new instance of the event.
clusterId - Variable in class com.mongodb.BaseCluster
 
clusterId - Variable in class com.mongodb.ClusterEvent
 
clusterId - Variable in class com.mongodb.DefaultClusterableServerFactory
 
clusterId - Variable in class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
 
clusterId - Variable in class com.mongodb.PooledConnectionProvider
 
ClusterIdServerAddressPair(String, ServerAddress) - Constructor for class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
 
clusterListener - Variable in class com.mongodb.BaseCluster
 
ClusterListener - Interface in com.mongodb
A listener for cluster-related events.
ClusterListenerAdapter - Class in com.mongodb
 
ClusterListenerAdapter() - Constructor for class com.mongodb.ClusterListenerAdapter
 
clusterOpened(ClusterEvent) - Method in interface com.mongodb.ClusterListener
Invoked when a cluster is opened.
clusterOpened(ClusterEvent) - Method in class com.mongodb.ClusterListenerAdapter
 
Clusters - Class in com.mongodb
A factory for cluster implementations.
Clusters() - Constructor for class com.mongodb.Clusters
 
ClusterSettings - Class in com.mongodb
Settings for the cluster.
ClusterSettings(ClusterSettings.Builder) - Constructor for class com.mongodb.ClusterSettings
 
ClusterSettings.Builder - Class in com.mongodb
A builder for the cluster settings.
ClusterType - Enum in com.mongodb
An enumeration of all possible cluster types.
ClusterType() - Constructor for enum com.mongodb.ClusterType
 
clusterType - Variable in class com.mongodb.MultiServerCluster
 
code - Variable in class com.mongodb.BulkWriteError
 
code - Variable in class com.mongodb.WriteConcernError
 
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
 
CodeSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.CodeSerializer
 
CodeWScope - Class in org.bson.types
A representation of the JavaScript Code with Scope BSON type.
CodeWScope(String, BSONObject) - Constructor for class org.bson.types.CodeWScope
Construct an instance.
CodeWScopeSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.CodeWScopeSerializer
 
collection - Variable in class com.mongodb.BulkWriteOperation
 
collection - Variable in class com.mongodb.MongoClientURI
 
COLLECTION_REF_ID - Static variable in class com.mongodb.Bytes
 
collectionExists(String) - Method in class com.mongodb.DB
Checks to see if a collection with a given name exists on a server.
collectionName - Variable in class com.mongodb.GroupCommand
 
collectionName - Variable in class com.mongodb.MongoNamespace
 
collectionName - Variable in class com.mongodb.RequestMessage
 
CollectionView() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
com.mongodb - package com.mongodb
Main package with core files.
com.mongodb.gridfs - package com.mongodb.gridfs
GridFS tools.
com.mongodb.io - package com.mongodb.io
 
com.mongodb.tools - package com.mongodb.tools
 
com.mongodb.util - package com.mongodb.util
Package containing misc utils.
com.mongodb.util.management - package com.mongodb.util.management
 
com.mongodb.util.management.jmx - package com.mongodb.util.management.jmx
 
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, int, DBEncoder) - Method in class com.mongodb.DB
Deprecated.
Use DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0.
command(DBObject, int, ReadPreference) - Method in class com.mongodb.DB
Deprecated.
Use DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0.
command(DBObject, int, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
Deprecated.
Use DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0.
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, int) - Method in class com.mongodb.DB
Deprecated.
Use DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0.
command(DBObject, ReadPreference) - Method in class com.mongodb.DB
Executes the command against the database with the given read preference.
command(String) - Method in class com.mongodb.DB
Executes a database command.
command(String, int) - Method in class com.mongodb.DB
Deprecated.
Use DB.command(String, ReadPreference) instead. This method will be removed in 3.0.
command(String, ReadPreference) - Method in class com.mongodb.DB
Executes a database command.
command(DBObject, int, ReadPreference) - Method in class com.mongodb.DBCollection
 
COMMAND_COLLECTION_NAME - Static variable in class com.mongodb.MongoNamespace
 
commandEncoder - Variable in class com.mongodb.BaseWriteCommandMessage
 
CommandFailureException - Exception in com.mongodb
Deprecated.
Use instead.
CommandFailureException(CommandResult) - Constructor for exception com.mongodb.CommandFailureException
Deprecated.
for internal use only
CommandResult - Class in com.mongodb
A simple wrapper to hold the result of a command.
CommandResult(ServerAddress) - Constructor for class com.mongodb.CommandResult
 
commandResult - Variable in exception com.mongodb.MongoCommandException
 
commandResult - Variable in exception com.mongodb.WriteConcernException
 
CommandResultPair(CommandResult) - Constructor for class com.mongodb.DB.CommandResultPair
 
CommandResultPair(CommandFailureException) - Constructor for class com.mongodb.DB.CommandResultPair
 
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.ServerVersion
 
compareTo(BSONTimestamp) - Method in class org.bson.types.BSONTimestamp
 
compareTo(ObjectId) - Method in class org.bson.types.ObjectId
 
CompositeServerSelector - Class in com.mongodb
 
CompositeServerSelector(List<ServerSelector>) - Constructor for class com.mongodb.CompositeServerSelector
 
CompoundObjectSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.CompoundObjectSerializer
 
computeAncestry(Class<?>) - Static method in class org.bson.util.ClassAncestry
computeAncestry, starting with children and going back to parents
computeAncestry(Class<T>, List<Class<?>>) - Static method in class org.bson.util.ClassAncestry
 
computeClientFinalMessage(byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
computeClientFirstMessage() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
ComputeFunction() - Constructor for class org.bson.util.ClassMap.ComputeFunction
 
ComputingMap<K,V> - Class in org.bson.util
 
ComputingMap(ConcurrentMap<K, V>, Function<K, V>) - Constructor for class org.bson.util.ComputingMap
 
ConcurrentLinkedDeque<E> - Class in com.mongodb
A concurrent linked-list implementation of a Deque (double-ended queue).
ConcurrentLinkedDeque() - Constructor for class com.mongodb.ConcurrentLinkedDeque
Constructs an empty deque.
ConcurrentLinkedDeque(Collection<? extends E>) - Constructor for class com.mongodb.ConcurrentLinkedDeque
Constructs a deque initially containing the elements of the given collection, added in traversal order of the collection's iterator.
ConcurrentLinkedDeque.CLDIterator - Class in com.mongodb
 
ConcurrentLinkedDeque.Node<E> - Class in com.mongodb
Linked Nodes.
ConcurrentPool<T> - Class in com.mongodb
 
ConcurrentPool(int, ConcurrentPool.ItemFactory<T>) - Constructor for class com.mongodb.ConcurrentPool
Initializes a new pool of objects.
ConcurrentPool.ItemFactory<T> - Interface in com.mongodb
Factory for creating and closing pooled items.
condition - Variable in class com.mongodb.GroupCommand
 
condition - Variable in class com.mongodb.ServerMonitor
 
CONN_RETRY_TIME_MS - Static variable in class com.mongodb.DBPort
Deprecated.
 
connect() - Method in class com.mongodb.BaseCluster
Try to connect to all servers
connect() - Method in interface com.mongodb.ClusterableServer
Attempt to connect to the server.
connect() - Method in class com.mongodb.DefaultServer
 
connect(DBAddress) - Static method in class com.mongodb.Mongo
Deprecated.
Please use Mongo.getDB(String) instead.
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
Creates a Mongo instance based on the URI.
connect() - Method in class com.mongodb.MultiServerCluster
 
connect() - Method in class com.mongodb.ServerMonitor
 
connect() - Method in class com.mongodb.SingleServerCluster
 
connectCollection(DB) - Method in class com.mongodb.MongoURI
Returns the URI's Collection from a given DB object.
connectCollection(Mongo) - Method in class com.mongodb.MongoURI
Returns the URI's Collection from a given Mongo instance
connectDB() - Method in class com.mongodb.MongoURI
Returns the DB object from a newly created Mongo instance based on this URI.
connectDB(Mongo) - Method in class com.mongodb.MongoURI
Returns the URI's DB object from a given Mongo instance.
Connection - Interface in com.mongodb
 
connectionAdded(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection is added to a pool.
connectionAdded(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
connectionAdded(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
 
connectionAdded(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
connectionAdded(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
connectionCheckedIn(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection is checked in to a pool.
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
 
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
connectionCheckedOut(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection is checked out of a pool.
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
 
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
ConnectionEvent - Class in com.mongodb
A connection-related event.
ConnectionEvent(String, ServerAddress) - Constructor for class com.mongodb.ConnectionEvent
Constructs a new instance of the event.
ConnectionFactory - Interface in com.mongodb
 
connectionFactory - Variable in class com.mongodb.PooledConnectionProvider
 
ConnectionItemFactory() - Constructor for class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
 
connectionMode - Variable in class com.mongodb.ClusterDescription
 
connectionMode - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
connectionPoolClosed(ConnectionPoolEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection pool is closed.
connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
ConnectionPoolEvent - Class in com.mongodb
A connection pool-related event.
ConnectionPoolEvent(String, ServerAddress) - Constructor for class com.mongodb.ConnectionPoolEvent
Constructs a new instance of the event.
ConnectionPoolListener - Interface in com.mongodb
A listener for connection pool-related events.
connectionPoolListener - Variable in class com.mongodb.PooledConnectionProvider
 
ConnectionPoolListenerAdapter - Class in com.mongodb
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.ConnectionPoolListenerAdapter
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection pool is opened.
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
ConnectionPoolOpenedEvent - Class in com.mongodb
An event signifying the opening of a connection pool.
ConnectionPoolOpenedEvent(String, ServerAddress, ConnectionPoolSettings) - Constructor for class com.mongodb.ConnectionPoolOpenedEvent
Constructs a new instance of the event.
ConnectionPoolSettings - Class in com.mongodb
 
ConnectionPoolSettings(ConnectionPoolSettings.Builder) - Constructor for class com.mongodb.ConnectionPoolSettings
 
ConnectionPoolSettings.Builder - Class in com.mongodb
 
ConnectionPoolStat - Class in com.mongodb.tools
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
ConnectionPoolStat(MBeanServerConnection) - Constructor for class com.mongodb.tools.ConnectionPoolStat
Deprecated.
Use the given MBean server connection to access statistics for connection pools.
ConnectionPoolStat() - Constructor for class com.mongodb.tools.ConnectionPoolStat
Deprecated.
Use the platform MBean server.
ConnectionPoolStat.Position - Enum in com.mongodb.tools
Deprecated.
 
ConnectionPoolStat.StringType - Enum in com.mongodb.tools
Deprecated.
 
ConnectionPoolStatistics - Class in com.mongodb
An MBean implementation for connection pool statistics.
ConnectionPoolStatistics(ConnectionPoolOpenedEvent) - Constructor for class com.mongodb.ConnectionPoolStatistics
 
ConnectionPoolStatisticsBean - Class in com.mongodb.util
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
ConnectionPoolStatisticsBean(int, int, InUseConnectionBean[]) - Constructor for class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
 
ConnectionPoolStatisticsMBean - Interface in com.mongodb
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
ConnectionPoolWaitQueueEvent - Class in com.mongodb
An event related to the connection pool's wait queue..
ConnectionPoolWaitQueueEvent(String, ServerAddress, long) - Constructor for class com.mongodb.ConnectionPoolWaitQueueEvent
Constructs a new instance of the event.
connectionProvider - Variable in class com.mongodb.DefaultServer
 
connectionProvider - Variable in class com.mongodb.ServerMonitor
 
connectionRemoved(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection is removed from a pool.
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
 
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
connectionRemoved(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
CONNECTIONS_PER_HOST - Static variable in class com.mongodb.Bytes
 
connectionsPerHost - Variable in class com.mongodb.MongoClientOptions.Builder
 
connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum number of connections per host.
connectionsPerHost - Variable in class com.mongodb.MongoClientOptions
 
connectionsPerHost - Variable in class com.mongodb.MongoOptions
Deprecated.
The maximum number of connections allowed per host for this Mongo instance.
ConnectionWaitTimeOut(int) - Constructor for exception com.mongodb.DBPortPool.ConnectionWaitTimeOut
Deprecated.
 
connectTimeout - Variable in class com.mongodb.MongoClientOptions.Builder
 
connectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the connection timeout.
connectTimeout - Variable in class com.mongodb.MongoClientOptions
 
connectTimeout - Variable in class com.mongodb.MongoOptions
Deprecated.
The connection timeout in milliseconds.
connectTimeout(int, TimeUnit) - Method in class com.mongodb.SocketSettings.Builder
 
connectTimeoutMS - Variable in class com.mongodb.SocketSettings.Builder
 
connectTimeoutMS - Variable in class com.mongodb.SocketSettings
 
consideredServers - Variable in class com.mongodb.MongosHAServerSelector
 
contains(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
Returns true if this deque contains at least one element e such that o.equals(e).
contains(T) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
contains(T) - Method in class com.mongodb.util.WeakBag
Deprecated.
 
contains(Object) - Method in class org.bson.LazyBSONList
 
contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
contains(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
contains(Object) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
containsAll(TagSet) - Method in class com.mongodb.TagSet
Returns true if this tag set contains all of the elements of the specified tag set.
containsAll(Collection) - Method in class org.bson.LazyBSONList
 
containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
containsAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
containsAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
containsField(String) - Method in class com.mongodb.gridfs.GridFSFile
 
containsField(String) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
containsField(String) - Method in class com.mongodb.RawDBObject
Deprecated.
 
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.KeyCachingLazyBSONObject
Deprecated.
 
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.RawDBObject
Deprecated. 
containsKey(String) - Method in class com.mongodb.ReflectionDBObject
Deprecated.
containsKey(String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
Deprecated. 
containsKey(String) - Method in class org.bson.BasicBSONObject
Deprecated.
containsKey(String) - Method in interface org.bson.BSONObject
Deprecated.
containsKey(String) - Method in class org.bson.LazyBSONObject
Deprecated.
containsKey(String) - Method in class org.bson.types.BasicBSONList
Deprecated.
containsKey(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
containsKey(Object) - Method in class org.bson.util.ComputingMap
 
containsValue(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
containsValue(Object) - Method in class org.bson.util.ComputingMap
 
Context(BSONBinaryWriter.Context, BSONContextType, int) - Constructor for class com.mongodb.BSONBinaryWriter.Context
 
Context(BSONBinaryWriter.Context) - Constructor for class com.mongodb.BSONBinaryWriter.Context
 
context - Variable in class com.mongodb.BSONWriter
 
Context(BSONWriter.Context) - Constructor for class com.mongodb.BSONWriter.Context
 
Context(BSONWriter.Context, BSONContextType) - Constructor for class com.mongodb.BSONWriter.Context
 
contextType - Variable in class com.mongodb.BSONWriter.Context
 
continueOnError - Variable in class com.mongodb.InsertOptions
 
continueOnError(boolean) - Method in class com.mongodb.InsertOptions
Set whether documents will continue to be inserted after a failure to insert one.
continueOnError(boolean) - Method in class com.mongodb.WriteConcern
Deprecated.
the preferred way to specify this is to use write methods that explicitly specify the value of this property
continueOnErrorForInsert(boolean) - Method in class com.mongodb.WriteConcern
Deprecated.
the preferred way to specify this is to use write methods that explicitly specify the value of this property
convertToCommandResult(DBObject, Response) - Method in class com.mongodb.DBPort
Deprecated.
 
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.BSONBinaryWriter.Context
 
copy() - Method in class com.mongodb.BSONWriter.Context
 
copy() - Method in class com.mongodb.DBCursor
Creates a copy of an existing database cursor.
copy() - Method in class com.mongodb.MongoOptions
Deprecated.
 
copy(N) - Method in class org.bson.util.AbstractCopyOnWriteMap
Copy function, implemented by sub-classes.
copy() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
copy(N) - Method in class org.bson.util.CopyOnWriteMap
 
copy(N) - Method in class org.bson.util.CopyOnWriteMap.Hash
 
copy(N) - Method in class org.bson.util.CopyOnWriteMap.Linked
 
CopyOnWriteMap<K,V> - Class in org.bson.util
A thread-safe variant of Map in which all mutative operations (the "destructive" operations described by Map put, remove and so on) are implemented by making a fresh copy of the underlying map.
CopyOnWriteMap(Map<? extends K, ? extends V>) - Constructor for class org.bson.util.CopyOnWriteMap
Deprecated.
since 0.0.12 use the versions that explicitly specify View.Type
CopyOnWriteMap() - Constructor for class org.bson.util.CopyOnWriteMap
Deprecated.
since 0.0.12 use the versions that explicitly specify View.Type
CopyOnWriteMap(Map<? extends K, ? extends V>, AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.CopyOnWriteMap
Create a new CopyOnWriteMap with the supplied Map to initialize the values.
CopyOnWriteMap(AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.CopyOnWriteMap
Create a new empty CopyOnWriteMap.
CopyOnWriteMap.Builder<K,V> - Class in org.bson.util
Build a CopyOnWriteMap and specify all the options.
CopyOnWriteMap.Hash<K,V> - Class in org.bson.util
Uses HashMap instances as its internal storage.
CopyOnWriteMap.Linked<K,V> - Class in org.bson.util
Uses LinkedHashMap instances as its internal storage.
count() - Method in class com.mongodb.DBCollection
Get the number of documents in the collection.
count(DBObject) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
count(DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in collection that would match a criteria.
count() - Method in class com.mongodb.DBCursor
Counts the number of objects matching the query.
count - Variable in class com.mongodb.IndexMap.RangeBased
 
count - Variable in class com.mongodb.ServerMonitor
 
create(ServerAddress) - Method in interface com.mongodb.ClusterableServerFactory
 
create(String, ClusterSettings, ServerSettings, ClusterListener, Mongo) - Static method in class com.mongodb.Clusters
 
create() - Method in interface com.mongodb.ConcurrentPool.ItemFactory
 
create(ServerAddress, PooledConnectionProvider, int) - Method in interface com.mongodb.ConnectionFactory
 
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(ServerAddress, PooledConnectionProvider, int) - Method in class com.mongodb.DBPortFactory
 
create(ServerAddress) - Method in class com.mongodb.DefaultClusterableServerFactory
 
create() - Method in class com.mongodb.DefaultDBCallback
 
create(boolean, List<String>) - Method in class com.mongodb.DefaultDBCallback
 
create(DBCollection) - Method in class com.mongodb.DefaultDBCallback.DefaultFactory
 
create() - Method in class com.mongodb.DefaultDBDecoder.DefaultFactory
 
create() - Method in class com.mongodb.DefaultDBEncoder.DefaultFactory
 
create() - Static method in class com.mongodb.IndexMap
Create an empty index map.
create(int, int) - Static method in class com.mongodb.IndexMap
Create an index map that maps the integers 0..count to startIndex..startIndex + count.
create() - Method in class com.mongodb.LazyDBDecoder.LazyDBDecoderFactory
 
create() - Method in class com.mongodb.LazyWriteableDBDecoder.LazyDBDecoderFactory
Deprecated.
 
create() - Method in class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
 
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.
create(Function<K, V>) - Static method in class org.bson.util.ComputingMap
 
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, DBObject) - Method in class com.mongodb.DB
Creates a collection with a given name and options.
createCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance with an unspecified mechanism.
createCredentials(Map<String, List<String>>, String, char[], String) - Method in class com.mongodb.MongoClientURI
 
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).
createDescription(CommandResult, ServerVersion, long) - Static method in class com.mongodb.ServerMonitor
 
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.
createFinalizerIfNeeded(long, Mongo) - Method in class com.mongodb.QueryResultIterator
 
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.
createHash(String, char[]) - Static method in class com.mongodb.NativeAuthenticationHelper
 
createIndex(String) - Method in class com.mongodb.DBCollection
Forces creation of an ascending index on a field with the default options.
createIndex(DBObject) - Method in class com.mongodb.DBCollection
Forces creation of an index on a set of fields with the default options, if one does not already exist.
createIndex(DBObject, DBObject) - 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) - 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, DBObject, DBEncoder) - Method in class com.mongodb.DBCollection
Deprecated.
createIndex(DBObject, DBObject, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
 
createList() - Method in class com.mongodb.util.JSONCallback
 
createList() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSON List.
createMaintenanceTask() - Method in class com.mongodb.PooledConnectionProvider
 
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.
createNew() - Method in class com.mongodb.DBPortPool
Deprecated.
 
createNew() - Method in class com.mongodb.util.SimplePool
Deprecated.
Creates a new object of this pool's type.
createNew() - Method in class com.mongodb.util.StringBuilderPool
Deprecated.
Create a new string builder.
createNew() - Method in class org.bson.util.SimplePool
Deprecated.
 
createNewAndReleasePermitIfFailure() - Method in class com.mongodb.ConcurrentPool
 
createNewAndReleasePermitIfFailure() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
createObject(byte[], int) - Method in class com.mongodb.LazyDBCallback
 
createObject(byte[], int) - Method in class com.mongodb.LazyWriteableDBCallback
Deprecated.
 
createObject(byte[], int) - Method in class org.bson.LazyBSONCallback
Create a LazyBSONObject instance from the given bytes starting from the given offset.
createObjectName(String) - Method in class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
createOptions(Map<String, List<String>>, MongoClientOptions.Builder) - Method in class com.mongodb.MongoClientURI
 
createPlainCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the PLAIN SASL mechanism.
createReadPreference(Map<String, List<String>>) - Method in class com.mongodb.MongoClientURI
 
createResult() - Method in class com.mongodb.BulkWriteBatchCombiner
 
createSaslClient() - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
createSaslClient() - Method in class com.mongodb.DBPort.PlainAuthenticator
Deprecated.
 
createSaslClient() - Method in class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
createSaslClient() - Method in class com.mongodb.DBPort.ScramSha1Authenticator
Deprecated.
 
createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
createServer(ServerAddress, ChangeListener<ServerDescription>) - Method in class com.mongodb.BaseCluster
 
createServerSelector(ReadPreference) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
createTimer() - Method in class com.mongodb.PooledConnectionProvider
 
createWriteConcern(Map<String, List<String>>) - Method in class com.mongodb.MongoClientURI
 
credential - Variable in class com.mongodb.DBPort.Authenticator
Deprecated.
 
credential - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
credentials - Variable in class com.mongodb.MongoClientURI
 
credentialsMap - Variable in class com.mongodb.MongoCredentialsStore
 
credentialsStore - Variable in class com.mongodb.MongoAuthority
 
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.
currentName - Variable in class com.mongodb.BSONWriter
 
currentName - Variable in class com.mongodb.BSONWriter.Mark
 
Cursor - Interface in com.mongodb
Interface for providing consistent behaviour between different Cursor implementations.
cursor() - Method in class com.mongodb.Response
 
CursorCleanerThread() - Constructor for class com.mongodb.Mongo.CursorCleanerThread
 
cursorFinalizerEnabled - Variable in class com.mongodb.MongoClientOptions.Builder
 
cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether cursor finalizers are enabled.
cursorFinalizerEnabled - Variable in class com.mongodb.MongoClientOptions
 
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.
cursorId - Variable in exception com.mongodb.MongoCursorNotFoundException
 
cursorId - Variable in class com.mongodb.QueryResultIterator.OptionalFinalizer
 
CursorNotFound(long, ServerAddress) - Constructor for exception com.mongodb.MongoException.CursorNotFound
Deprecated.
 
CursorType() - Constructor for enum com.mongodb.DBCursor.CursorType
 

D

D - Static variable in class com.mongodb.Bytes
 
D - Static variable in class org.bson.types.BSONTimestamp
 
database - Variable in class com.mongodb.MongoClientURI
 
databaseName - Variable in class com.mongodb.MongoNamespace
 
DATE - Static variable in class org.bson.BSON
 
DateSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.DateSerializer
 
DB - Class in com.mongodb
A thread-safe client view of a logical database in a MongoDB cluster.
DB(Mongo, String) - Constructor for class com.mongodb.DB
Constructs a new instance of the DB.
db - Variable in class com.mongodb.DBCollectionImpl
 
db - Static variable in class com.mongodb.gridfs.CLI
 
db - Variable in class com.mongodb.QueryResultIterator.OptionalFinalizer
 
DB.CommandResultPair - Class in com.mongodb
 
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
 
DBApiLayer - Class in com.mongodb
Deprecated.
This class is NOT part of the public API. It will be dropped in 3.x releases.
DBApiLayer(Mongo, String, DBConnector) - Constructor for class com.mongodb.DBApiLayer
Deprecated.
 
DBApiLayer.DeadCursor - Class in com.mongodb
Deprecated.
 
DBCallback - Interface in com.mongodb
The DB callback interface.
DBCallbackFactory - Interface in com.mongodb
Factory for creating concrete implementations of DBCallback.
DBCollection - Class in com.mongodb
This class provides a skeleton implementation of a database collection.
DBCollection(DB, String) - Constructor for class com.mongodb.DBCollection
Initializes a new collection.
DBCollectionImpl - Class in com.mongodb
 
DBCollectionImpl(DBApiLayer, String) - Constructor for class com.mongodb.DBCollectionImpl
 
DBCollectionImpl.OrderedRunGenerator - Class in com.mongodb
 
DBCollectionImpl.Run - Class in com.mongodb
 
DBCollectionImpl.Run.RunExecutor - Class in com.mongodb
 
DBCollectionImpl.UnorderedRunGenerator - Class in com.mongodb
 
DBConnector - Interface in com.mongodb
Deprecated.
This class is NOT part of the public API. It will be dropped in 3.x releases.
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.
DBCursor.CursorType - Enum in com.mongodb
Types of cursors: iterator or array.
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 - Variable in class com.mongodb.MongoClientOptions.Builder
 
dbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the decoder factory.
dbDecoderFactory - Variable in class com.mongodb.MongoClientOptions
 
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 - Variable in class com.mongodb.InsertOptions
 
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 - Variable in class com.mongodb.MongoClientOptions.Builder
 
dbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the encoder factory.
dbEncoderFactory - Variable in class com.mongodb.MongoClientOptions
 
dbEncoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the encoding factory.
dbget() - Method in class com.mongodb.DefaultDBCallback
 
DBObject - Interface in com.mongodb
This interface adds some specific behaviour to BSONObject for MongoDB documents.
DBObjectSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.DBObjectSerializer
 
DBPointer - Class in com.mongodb
Deprecated.
BSON type DBPointer(0x0c) is deprecated. Please use a DBRef instead.
DBPointer(String, ObjectId) - Constructor for class com.mongodb.DBPointer
Deprecated.
CTOR used for testing BSON encoding.
DBPointer(DBObject, String, DB, String, ObjectId) - Constructor for class com.mongodb.DBPointer
Deprecated.
 
DBPort - Class in com.mongodb
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
DBPort(ServerAddress) - Constructor for class com.mongodb.DBPort
Deprecated.
creates a new DBPort
DBPort(ServerAddress, PooledConnectionProvider, Mongo, int) - Constructor for class com.mongodb.DBPort
Deprecated.
 
DBPort(ServerAddress, Mongo, MongoOptions) - Constructor for class com.mongodb.DBPort
Deprecated.
 
DBPort(ServerAddress, PooledConnectionProvider, Mongo, MongoOptions, int) - Constructor for class com.mongodb.DBPort
Deprecated.
 
DBPort.ActiveState - Class in com.mongodb
Deprecated.
 
DBPort.Authenticator - Class in com.mongodb
Deprecated.
 
DBPort.GSSAPIAuthenticator - Class in com.mongodb
Deprecated.
 
DBPort.NativeAuthenticator - Class in com.mongodb
Deprecated.
 
DBPort.Operation<T> - Interface in com.mongodb
Deprecated.
 
DBPort.PlainAuthenticator - Class in com.mongodb
Deprecated.
 
DBPort.SaslAuthenticator - Class in com.mongodb
Deprecated.
 
DBPort.ScramSha1Authenticator - Class in com.mongodb
Deprecated.
 
DBPort.ScramSha1Authenticator.ScramSha1SaslClient - Class in com.mongodb
Deprecated.
 
DBPort.X509Authenticator - Class in com.mongodb
Deprecated.
 
DBPortFactory - Class in com.mongodb
 
DBPortFactory(Mongo) - Constructor for class com.mongodb.DBPortFactory
 
DBPortPool - Class in com.mongodb
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
DBPortPool(ServerAddress, MongoOptions) - Constructor for class com.mongodb.DBPortPool
Deprecated.
 
DBPortPool.ConnectionWaitTimeOut - Exception in com.mongodb
Deprecated.
This class will be dropped in 3.x versions. Please catch MongoTimeoutException instead.
DBPortPool.NoMoreConnection - Exception in com.mongodb
Deprecated.
This class will be dropped in 3.x versions. Please catch MongoClientException instead.
DBPortPool.SemaphoresOut - Exception in com.mongodb
Deprecated.
This class will be dropped in 3.x versions. Please catch MongoWaitQueueFullException instead.
DBRef - Class in com.mongodb
Extends DBRefBase to understand a BSONObject representation of a reference.
DBRef(String, Object) - Constructor for class com.mongodb.DBRef
Creates a DBRef.
DBRef(DB, BSONObject) - Constructor for class com.mongodb.DBRef
Deprecated.
Deprecated because DBRefBase.fetch() is deprecated. Use DBRef(String, Object) instead
DBRef(DB, String, Object) - Constructor for class com.mongodb.DBRef
Deprecated.
Deprecated because DBRefBase.fetch() is deprecated. Use DBRef(String, Object) instead
DBRefBase - Class in com.mongodb
Deprecated.
Use DBRef class exclusively
DBRefBase(String, Object) - Constructor for class com.mongodb.DBRefBase
Deprecated.
Creates a DBRefBase
DBRefBase(DB, String, Object) - Constructor for class com.mongodb.DBRefBase
Deprecated.
Deprecated because DBRefBase.fetch() is deprecated. Use DBRefBase(String, Object) instead
DBRefBase() - Constructor for class com.mongodb.DBRefBase
Deprecated.
For use only with serialization framework.
DBRefBaseSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.DBRefBaseSerializer
 
DBTCPConnector - Class in com.mongodb
Deprecated.
This class is NOT part of the public API. It will be dropped in 3.x releases.
DBTCPConnector(Mongo) - Constructor for class com.mongodb.DBTCPConnector
Deprecated.
 
DBTCPConnector.MyPort - Class in com.mongodb
Deprecated.
 
DBTCPConnector.PinnedRequestStatus - Class in com.mongodb
Deprecated.
 
DeadCursor(long, ServerAddress) - Constructor for class com.mongodb.DBApiLayer.DeadCursor
Deprecated.
 
DEBUG - Static variable in class org.bson.BasicBSONEncoder
 
debugString() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
debugString() - Method in class com.mongodb.Mongo
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
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(byte[], DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
decode(InputStream, DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
decode(byte[], DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
decode(InputStream, DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
decode(String) - Method in class com.mongodb.util.Base64Codec
Deprecated.
Translates the specified Base64 string into a byte array.
decode(byte[], BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
decode(boolean) - Method in class org.bson.BasicBSONDecoder
 
decode(byte[]) - Method in class org.bson.BasicBSONObject
 
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(byte[], int, int) - Method in class org.bson.io.UTF8Encoding
Custom byte[] -> String conversion routine for UTF-8 only.
decode(byte[], BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.LazyBSONDecoder
 
decode(byte[], BSONCallback) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
decode(InputStream, BSONCallback) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
decodeBase64(String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
decodeElement() - Method in class org.bson.BasicBSONDecoder
 
decodeElement() - Method in class org.bson.NewBSONDecoder
Deprecated.
 
decoderArray - Variable in class org.bson.io.UTF8Encoding
 
DecodeTable - Static variable in class com.mongodb.util.Base64Codec
Deprecated.
 
decodeUTF8(String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
DEFAULT_BUCKET - Static variable in class com.mongodb.gridfs.GridFS
Bucket to use for the collection namespaces
DEFAULT_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
File's chunk size
DEFAULT_ENCODING - Static variable in class org.bson.BasicBSONDecoder
 
DEFAULT_ENCODING - Static variable in class org.bson.NewBSONDecoder
Deprecated.
 
DEFAULT_ENCODING_1 - Static variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
DEFAULT_ENCODING_2 - Static variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
DEFAULT_MAX_DOCUMENT_SIZE - Static variable in class com.mongodb.MessageSettings
 
DEFAULT_MAX_DOCUMENT_SIZE - Static variable in class com.mongodb.ServerDescription
 
DEFAULT_MAX_MESSAGE_SIZE - Static variable in class com.mongodb.MessageSettings
 
DEFAULT_MAX_MESSAGE_SIZE - Static variable in class com.mongodb.ServerDescription
 
DEFAULT_MAX_WRITE_BATCH_SIZE - Static variable in class com.mongodb.MessageSettings
 
DEFAULT_MAX_WRITE_BATCH_SIZE - Static variable in class com.mongodb.ServerDescription
 
DEFAULT_PROTOCOL - Static variable in class com.mongodb.DBPort.PlainAuthenticator
Deprecated.
 
DefaultClusterableServerFactory - Class in com.mongodb
 
DefaultClusterableServerFactory(String, ServerSettings, Mongo) - Constructor for class com.mongodb.DefaultClusterableServerFactory
 
DefaultDBCallback - Class in com.mongodb
This class overrides BasicBSONCallback to implement some extra features specific to the Database.
DefaultDBCallback(DBCollection) - Constructor for class com.mongodb.DefaultDBCallback
Creates a new DefaultDBCallback.
DefaultDBCallback.DefaultFactory - Class in com.mongodb
 
DefaultDBDecoder - Class in com.mongodb
An implementation of DBDecoder
DefaultDBDecoder() - Constructor for class com.mongodb.DefaultDBDecoder
 
DefaultDBDecoder.DefaultFactory - Class in com.mongodb
 
DefaultDBEncoder - Class in com.mongodb
The default BSON encoder for BSONObject instances.
DefaultDBEncoder() - Constructor for class com.mongodb.DefaultDBEncoder
 
DefaultDBEncoder.DefaultFactory - Class in com.mongodb
 
DefaultFactory() - Constructor for class com.mongodb.DefaultDBCallback.DefaultFactory
 
DefaultFactory() - Constructor for class com.mongodb.DefaultDBDecoder.DefaultFactory
 
DefaultFactory() - Constructor for class com.mongodb.DefaultDBEncoder.DefaultFactory
 
defaultHost() - Static method in class com.mongodb.ServerAddress
Returns the default database host: "127.0.0.1"
defaultOptions(DBObject) - Method in class com.mongodb.DBCollection
 
defaultPort() - Static method in class com.mongodb.ServerAddress
Returns the default database port: 27017
DefaultServer - Class in com.mongodb
 
DefaultServer(ServerAddress, ServerSettings, String, PooledConnectionProvider, Mongo) - Constructor for class com.mongodb.DefaultServer
 
DefaultServer.DefaultServerStateListener - Class in com.mongodb
 
DefaultServerStateListener() - Constructor for class com.mongodb.DefaultServer.DefaultServerStateListener
 
DefaultServerStateListener() - Constructor for class com.mongodb.MultiServerCluster.DefaultServerStateListener
 
delegate - Variable in class org.bson.util.AbstractCopyOnWriteMap
 
delegate - Variable in class org.bson.util.AbstractCopyOnWriteMap.UnmodifiableIterator
 
delete() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Tries to mark this node as deleted, failing if already deleted or if this node is header or trailer.
DeleteCommandMessage - Class in com.mongodb
 
DeleteCommandMessage(MongoNamespace, WriteConcern, List<RemoveRequest>, DBEncoder, DBEncoder, MessageSettings) - Constructor for class com.mongodb.DeleteCommandMessage
 
deletes - Variable in class com.mongodb.DeleteCommandMessage
 
Deque<E> - Interface in com.mongodb
A linear collection that supports element insertion and removal at both ends.
descendingIterator() - Method in class com.mongodb.ConcurrentLinkedDeque
Not yet implemented.
description - Variable in class com.mongodb.BaseCluster
 
description - Variable in class com.mongodb.DefaultServer
 
description - Variable in class com.mongodb.MongoClientOptions.Builder
 
description(String) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the description.
description - Variable in class com.mongodb.MongoClientOptions
 
description - Variable in class com.mongodb.MongoOptions
Deprecated.
The description for Mongo instances created with these options.
description - Variable in class com.mongodb.MultiServerCluster.ServerTuple
 
descriptionHasChanged(ServerDescription, ServerDescription) - Static method in class com.mongodb.ServerMonitor
 
details - Variable in class com.mongodb.BulkWriteError
 
details - Variable in class com.mongodb.WriteConcernError
 
direct(ServerAddress) - Static method in class com.mongodb.MongoAuthority
 
direct(ServerAddress, MongoCredential) - Static method in class com.mongodb.MongoAuthority
 
direct(ServerAddress, MongoCredentialsStore) - Static method in class com.mongodb.MongoAuthority
 
disableBatchSizeTracking() - Method in class com.mongodb.DBCursor
Deprecated.
This method is being added temporarily, and will be removed along with DBCursor.getSizes() in the next major release
disableBatchSizeTracking() - Method in class com.mongodb.QueryResultIterator
 
dispose() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
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.
doapply(DBObject) - Method in class com.mongodb.DBCollection
Deprecated.
This method will be removed in a future release. There is no replacement.
doapply(DBObject) - Method in class com.mongodb.DBCollectionImpl
 
doAuthenticate(MongoCredential) - Method in class com.mongodb.DB
 
doAuthenticate(MongoCredential) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
doCallback(String, Object) - Method in class com.mongodb.util.JSONParser
 
document - Variable in class com.mongodb.InsertRequest
 
documents - Variable in class com.mongodb.InsertCommandMessage
 
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.
doGetCollection(String) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
doMaintenance() - Method in class com.mongodb.PooledConnectionProvider
Synchronously prune idle connections and ensure the minimum pool size.
done(DBPort) - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
done(T) - Method in class com.mongodb.util.SimplePool
Deprecated.
Call done when you are done with an object form the pool.
done() - Method in class org.bson.BasicBSONEncoder
 
done() - Method in interface org.bson.BSONEncoder
Free the resources.
done(T) - Method in class org.bson.util.SimplePool
Deprecated.
 
doneWithMessage() - Method in class com.mongodb.OutMessage
 
doOperation(DBPort.Operation<T>) - Method in class com.mongodb.DBPort
Deprecated.
 
doOperation(DB, DBPort, DBPort.Operation<T>) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
drop() - Method in class com.mongodb.DBCollection
Drops (deletes) this collection from the database.
drop() - Method in class com.mongodb.DBCollectionImpl
 
drop() - Method in class com.mongodb.MapReduceOutput
Drops the collection that holds the results.
dropDatabase() - Method in class com.mongodb.DB
Drops this database.
dropDatabase(String) - Method in class com.mongodb.Mongo
Drops the database if it exists.
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() - 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.
DuplicateKey(CommandResult) - Constructor for exception com.mongodb.MongoException.DuplicateKey
Deprecated.
 
DuplicateKeyException - Exception in com.mongodb
Subclass of WriteConcernException representing a duplicate key exception.
DuplicateKeyException(CommandResult) - Constructor for exception com.mongodb.DuplicateKeyException
Construct a new instance with the CommandResult from getlasterror command
durationMS - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
dynamicSet(List<ServerAddress>) - Static method in class com.mongodb.MongoAuthority
 
dynamicSet(List<ServerAddress>, MongoCredential) - Static method in class com.mongodb.MongoAuthority
 
dynamicSet(List<ServerAddress>, MongoCredentialsStore) - Static method in class com.mongodb.MongoAuthority
 

E

elapsedNanosSum - Variable in class com.mongodb.ServerMonitor
 
electionId - Variable in class com.mongodb.ServerDescription.Builder
 
electionId(ObjectId) - Method in class com.mongodb.ServerDescription.Builder
Sets the electionId reported by this server.
electionId - Variable in class com.mongodb.ServerDescription
 
ELEM_MATCH - Static variable in class com.mongodb.QueryOperators
 
element() - Method in class com.mongodb.ConcurrentLinkedDeque
 
element - Variable in class com.mongodb.ConcurrentLinkedDeque.Node
 
element() - Method in interface com.mongodb.Deque
Retrieves, but does not remove, the head of the queue represented by this deque.
Element(int) - Constructor for class com.mongodb.RawDBObject.Element
Deprecated.
 
ElementIter() - Constructor for class com.mongodb.RawDBObject.ElementIter
Deprecated.
 
ElementRecord(String, int) - Constructor for class org.bson.LazyBSONObject.ElementRecord
 
elements - Variable in class org.bson.LazyBSONList.LazyBSONListIterator
 
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
 
encode(OutputBuffer) - Method in class com.mongodb.BaseWriteCommandMessage
 
encode(OutputBuffer) - Method in class com.mongodb.RequestMessage
 
encode(byte[]) - Method in class com.mongodb.util.Base64Codec
Deprecated.
Translates the specified byte array into Base64 string.
encode(BSONObject) - Method in class org.bson.BasicBSONEncoder
 
encode() - Method in class org.bson.BasicBSONObject
 
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.
encodeBase64(byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
encodeDocument(DBEncoder, DBObject) - Method in class com.mongodb.BSONBinaryWriter
 
encodeMessageBody(OutputBuffer, int) - Method in class com.mongodb.BaseWriteCommandMessage
 
encodeMessageBody(OutputBuffer, int) - Method in class com.mongodb.RequestMessage
 
encoder - Variable in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
encoder - Variable in class com.mongodb.DBCollectionImpl.Run
 
encoder - Variable in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
encoder - Variable in class com.mongodb.InsertCommandMessage
 
encoder - Variable in class com.mongodb.UpdateCommandMessage
 
EncodeTable - Static variable in class com.mongodb.util.Base64Codec
Deprecated.
This array is a lookup table that translates 6-bit positive integer index values into their "Base64 Alphabet" equivalents as specified in Table 1 of RFC 2045.
encodeUTF8(byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
ensureFieldList() - Method in class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
ensureIndex(String) - Method in class com.mongodb.DBCollection
Deprecated.
ensureIndex(DBObject) - Method in class com.mongodb.DBCollection
Deprecated.
ensureIndex(DBObject, String) - Method in class com.mongodb.DBCollection
ensureIndex(DBObject, String, boolean) - Method in class com.mongodb.DBCollection
ensureIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
ensureMinSize(int) - Method in class com.mongodb.ConcurrentPool
 
ensureOpen() - Method in class com.mongodb.DBPort
Deprecated.
makes sure that a connection to the server has been opened
ensureOpen(Mongo) - Method in class com.mongodb.DBPort
Deprecated.
makes sure that a connection to the server has been opened
ensureServers(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
entrySet() - Method in class org.bson.LazyBSONObject
This method will be more efficient than using a combination of keySet() and get(String key)
entrySet() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
EntrySet() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.EntrySet
 
entrySet() - Method in class org.bson.util.AbstractCopyOnWriteMap.Immutable
 
entrySet - Variable in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
entrySet() - Method in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
entrySet() - Method in class org.bson.util.AbstractCopyOnWriteMap.View
 
entrySet() - Method in class org.bson.util.ComputingMap
 
eoo() - Method in class com.mongodb.RawDBObject.Element
Deprecated.
 
EOO - Static variable in class org.bson.BSON
 
equals(Object) - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
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.ChangeEvent
 
equals(Object) - Method in class com.mongodb.ClusterDescription
 
equals(Object) - Method in class com.mongodb.ClusterDescriptionChangedEvent
 
equals(Object) - Method in class com.mongodb.ClusterEvent
 
equals(Object) - Method in class com.mongodb.ClusterSettings
 
equals(Object) - Method in class com.mongodb.ConnectionEvent
 
equals(Object) - Method in class com.mongodb.ConnectionPoolEvent
 
equals(Object) - Method in class com.mongodb.ConnectionPoolOpenedEvent
 
equals(Object) - Method in class com.mongodb.ConnectionPoolSettings
 
equals(Object) - Method in class com.mongodb.ConnectionPoolWaitQueueEvent
 
equals(Object) - Method in class com.mongodb.DBAddress
 
equals(Object) - Method in class com.mongodb.DBCollection
 
equals(Object) - Method in class com.mongodb.DBRefBase
Deprecated.
 
equals(Object) - Method in class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
 
equals(Object) - Method in class com.mongodb.MongoAuthority
 
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.MongoCredentialsStore
 
equals(Object) - Method in class com.mongodb.MongoNamespace
 
equals(Object) - Method in class com.mongodb.MongoOptions
Deprecated.
 
equals(Object) - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
 
equals(Object) - Method in class com.mongodb.ServerAddress
 
equals(Object) - Method in class com.mongodb.ServerDescription
Returns true if this instance is equals to @code{o}.
equals(Object) - Method in class com.mongodb.ServerVersion
 
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.UnacknowledgedBulkWriteResult
 
equals(Object) - Method in class com.mongodb.WriteConcern
 
equals(Object) - Method in class com.mongodb.WriteConcernError
 
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.io.BSONByteBuffer
Deprecated.
 
equals(Object) - Method in class org.bson.LazyBSONObject
 
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.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
 
equals(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
equals(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
equals(Object, Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
equals(Object) - Method in class org.bson.util.ComputingMap
 
error(DBPort, Throwable) - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
call this method when there is an IOException or other low level error on port.
ERRORS_IGNORED - Static variable in class com.mongodb.WriteConcern
Deprecated.
There is no replacement for this write concern. The closest would be to use WriteConcern#UNACKNOWLEDGED, then catch and ignore any exceptions of type MongoSocketException.
eval(String, Object...) - Method in class com.mongodb.DB
evaluateChallenge(byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
exceedsBatchItemCountLimit(int) - Method in class com.mongodb.BaseWriteCommandMessage
 
exceedsBatchLengthLimit(int, int) - Method in class com.mongodb.BaseWriteCommandMessage
 
exceedsLimits(int, int) - Method in class com.mongodb.BaseWriteCommandMessage
 
exception - Variable in class com.mongodb.ServerDescription.Builder
 
exception(Throwable) - Method in class com.mongodb.ServerDescription.Builder
 
exception - Variable in class com.mongodb.ServerDescription
 
exceptionHasChanged(Throwable, Throwable) - Static method in class com.mongodb.ServerMonitor
 
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(DBPort) - Method in class com.mongodb.DBCollectionImpl.Run
 
execute() - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
execute() - Method in interface com.mongodb.DBPort.Operation
Deprecated.
 
executeBulkWriteOperation(boolean, Boolean, List<WriteRequest>) - Method in class com.mongodb.DBCollection
 
executeBulkWriteOperation(boolean, Boolean, List<WriteRequest>, WriteConcern) - Method in class com.mongodb.DBCollection
 
executeBulkWriteOperation(boolean, Boolean, List<WriteRequest>, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
 
executeBulkWriteOperation(boolean, Boolean, List<WriteRequest>, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
 
executeInserts(List<InsertRequest>, DBPort) - Method in class com.mongodb.DBCollectionImpl.Run
 
executeRemoves(List<RemoveRequest>, DBPort) - Method in class com.mongodb.DBCollectionImpl.Run
 
executeReplaces(List<ModifyRequest>, DBPort) - Method in class com.mongodb.DBCollectionImpl.Run
 
executeUpdates(List<ModifyRequest>, DBPort) - Method in class com.mongodb.DBCollectionImpl.Run
 
executeWriteCommandProtocol() - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
executeWriteProtocol(int) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
executeWriteProtocol() - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
exists(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $exists operand
EXISTS - Static variable in class com.mongodb.QueryOperators
 
expired(long, long, long) - Method in class com.mongodb.PooledConnectionProvider
 
explain() - Method in class com.mongodb.DBCursor
Returns an object containing basic information about the execution of the query that created this cursor.
explain - Variable in class com.mongodb.QueryOpBuilder
 
EXPLAIN - Static variable in class com.mongodb.QueryOperators
 
explainAggregate(List<DBObject>, AggregationOptions) - Method in class com.mongodb.DBCollection
Return the explain plan for the aggregation pipeline.

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
A factory for instances of this class
FACTORY - Static variable in class com.mongodb.LazyWriteableDBDecoder
Deprecated.
A factory for instances of this class
failure - Variable in class com.mongodb.DB.CommandResultPair
 
FastStack<T> - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
FastStack() - Constructor for class com.mongodb.util.FastStack
Deprecated.
 
fetch(DB, DBObject) - Static method in class com.mongodb.DBRef
Deprecated.
fetch() - Method in class com.mongodb.DBRefBase
Deprecated.
fieldIndex - Variable in class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
FieldInfo(String, Class) - Constructor for class com.mongodb.ReflectionDBObject.FieldInfo
 
fieldName() - Method in class com.mongodb.RawDBObject.Element
Deprecated.
 
fieldNameSize - Variable in class org.bson.LazyBSONObject.ElementRecord
 
fill(byte[]) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
fill(byte[], int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
filter - Variable in class com.mongodb.Remove
 
filter - Variable in class com.mongodb.Update
 
finalize - Variable in class com.mongodb.GroupCommand
 
finalize() - Method in class com.mongodb.QueryResultIterator.OptionalFinalizer
 
find(DBObject) - Method in class com.mongodb.BulkWriteOperation
Start building a write request to add to the bulk write operation.
find(DBObject, DBObject, int, int, int, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBCollection
Finds objects
find(DBObject, DBObject, int, int, int, int, ReadPreference, DBDecoder, DBEncoder) - Method in class com.mongodb.DBCollection
 
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
Queries for an object in this collection.
find(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Queries for an object in this collection.
find() - Method in class com.mongodb.DBCollection
Queries for all objects in this collection.
find(DBObject, DBObject, int, int, int, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBCollectionImpl
 
find(DBObject, DBObject, int, int, int, int, ReadPreference, DBDecoder, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
 
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.
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, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, long, TimeUnit) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, long, TimeUnit, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, boolean, long, TimeUnit) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, boolean, long, TimeUnit, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModify(DBObject, DBObject, DBObject) - 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.
findAndModifyImpl(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, Boolean, long, TimeUnit, WriteConcern) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findAndModifyImpl(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, Boolean, long, TimeUnit, WriteConcern) - Method in class com.mongodb.DBCollectionImpl
 
findAndRemove(DBObject) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
findByValue(int) - Static method in enum com.mongodb.BSONType
 
findElement(String) - Method in class com.mongodb.RawDBObject
Deprecated.
 
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() - Method in class com.mongodb.DBCollection
Returns a single object from this collection.
findOne(DBObject) - Method in class com.mongodb.DBCollection
Returns a single object from this collection matching the query.
findOne(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Returns a single object from this collection matching the query.
findOne(DBObject, DBObject, DBObject) - Method in class com.mongodb.DBCollection
Returns a single object from this collection matching the query.
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(DBObject, DBObject, DBObject, ReadPreference, long, TimeUnit) - Method in class com.mongodb.DBCollection
Get a single document from collection.
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.
findPredecessorOf(ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns the apparent predecessor of target by searching forward for it, starting at this node, patching up pointers while traversing.
fireChangeEvent() - Method in class com.mongodb.BaseCluster
 
FIRST_ELMT_OFFSET - Static variable in class org.bson.LazyBSONObject
In a "normal" (aka not embedded) doc, this will be the offset of the first element.
flagChar - Variable in enum org.bson.BSON.RegexFlag
 
flush() - Method in class com.mongodb.BSONBinaryWriter
 
flush() - Method in class com.mongodb.BSONWriter
Flushes any pending data to the output destination.
flush() - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
forceError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
forward() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns the next node containing a nondeleted user element.
fromPreviousGeneration(Connection) - Method in class com.mongodb.PooledConnectionProvider
 
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.
FULL_VERSION - Static variable in class com.mongodb.Mongo
 
function - Variable in class org.bson.util.ComputingMap
 
Function<A,B> - Interface in org.bson.util
 

G

generalOptionsKeys - Static variable in class com.mongodb.MongoClientURI
 
generateRandomString() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
generation - Variable in class com.mongodb.DBPort
Deprecated.
 
generation - Variable in class com.mongodb.PooledConnectionProvider
 
genIndexName(DBObject) - Static method in class com.mongodb.DBCollection
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
get() - Method in class com.mongodb.BasicDBObjectBuilder
Gets the top level document.
get() - Method in class com.mongodb.Bytes.OptionHolder
 
get() - Method in class com.mongodb.ConcurrentPool
Gets an object from the pool.
get(long, TimeUnit) - Method in class com.mongodb.ConcurrentPool
Gets an object from the pool - will block if none are available
get() - Method in class com.mongodb.DBPortPool
Deprecated.
 
get(boolean, ReadPreference, ServerAddress) - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get() - Method in interface com.mongodb.io.ByteBufferFactory
Deprecated.
 
get() - Method in class com.mongodb.io.ByteBufferFactory.SimpleHeapByteBufferFactory
Deprecated.
 
get(int) - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
get(int, byte[]) - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
get(String) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
get(String) - Method in class com.mongodb.MongoCredentialsStore
Gets the stored credentials for the given database.
get() - Method in class com.mongodb.PooledConnectionProvider
 
get(long, TimeUnit) - Method in class com.mongodb.PooledConnectionProvider
 
get() - Method in class com.mongodb.QueryBuilder
Creates a DBObject query to be used for the driver's find operations
get() - Method in class com.mongodb.QueryOpBuilder
Constructs the query operation DBObject
get(String) - Method in class com.mongodb.RawDBObject
Deprecated.
 
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(int) - Method in class com.mongodb.Response
 
get(int) - Method in class com.mongodb.util.FastStack
Deprecated.
 
get() - Method in class com.mongodb.util.JSONParser
Returns the current character.
get() - Method in class com.mongodb.util.SimplePool
Deprecated.
Gets an object from the pool - will block if none are available
get(long) - Method in class com.mongodb.util.SimplePool
Deprecated.
Gets an object from the pool - will block if none are available
get() - Method in class org.bson.BasicBSONCallback
 
get(String) - Method in class org.bson.BasicBSONObject
Gets a value from this object
get() - Method in interface org.bson.BSONCallback
Returns the finished top-level Document.
get(String) - Method in interface org.bson.BSONObject
Gets a field from this object by a given name.
get() - Method in class org.bson.EmptyBSONCallback
 
get(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
get(byte[], int, int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
get(byte[]) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
get(String) - Method in class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
get() - Method in class org.bson.LazyBSONCallback
 
get(int) - Method in class org.bson.LazyBSONList
 
get(String) - Method in class org.bson.LazyBSONObject
 
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.AbstractCopyOnWriteMap
 
get(AbstractCopyOnWriteMap<K, V, M>) - Method in enum org.bson.util.AbstractCopyOnWriteMap.View.Type
 
get(Object) - Method in class org.bson.util.ClassMap
Gets the value associated with either this Class or a superclass of this class.
get(Object) - Method in class org.bson.util.ComputingMap
 
get() - Method in class org.bson.util.SimplePool
Deprecated.
 
get_id() - Method in class com.mongodb.ReflectionDBObject
Gets the _id
getAcceptableLatencyDifference() - Method in class com.mongodb.MongoClientOptions
getActiveState() - Method in class com.mongodb.DBPort
Deprecated.
 
getAddress() - Method in class com.mongodb.DBPort
Deprecated.
 
getAddress() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getAddress() - Method in class com.mongodb.Mongo
Gets the address of the current master
getAddress() - Method in class com.mongodb.ServerDescription
 
getAliases() - Method in class com.mongodb.gridfs.GridFSFile
Gets the aliases from the metadata.
getAll() - Method in class com.mongodb.ClusterDescription
Returns the Set of all server descriptions in this cluster, sorted by the String value of the ServerAddress of each one.
getAll() - Method in class com.mongodb.util.WeakBag
Deprecated.
 
getAllAddress() - Method in class com.mongodb.DBTCPConnector
Deprecated.
Gets the list of seed server addresses
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.
getAllServerAddresses(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
getAncestry(Class<T>) - Static method in class org.bson.util.ClassAncestry
getAncestry Walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
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.
getAndInc() - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
getAny() - Method in class com.mongodb.ClusterDescription
 
getAnyPrimaryOrSecondary() - Method in class com.mongodb.ClusterDescription
 
getAnyPrimaryOrSecondary(TagSet) - Method in class com.mongodb.ClusterDescription
 
getArbiters() - Method in class com.mongodb.ServerDescription
 
getAuthCommand() - Method in class com.mongodb.DBPort.X509Authenticator
Deprecated.
 
getAuthCommand(String, char[], String) - Static method in class com.mongodb.NativeAuthenticationHelper
 
getAuthCommand(String, byte[], String) - Static method in class com.mongodb.NativeAuthenticationHelper
 
getAuthenticatedDatabases() - Method in class com.mongodb.DBPort
Deprecated.
 
getAuthenticationCredentials() - Method in class com.mongodb.DB
 
getAuthority() - Method in class com.mongodb.Mongo
Gets the authority, which includes the connection type, the server address(es), and the credentials.
getAvailable() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
getAvailableCount() - Method in class com.mongodb.ConcurrentPool
 
getAverageLatencyFormattedInMilliseconds() - Method in class com.mongodb.ServerDescription
 
getAverageLatencyNanos() - Method in class com.mongodb.ServerDescription
 
getBatchSize() - Method in class com.mongodb.AggregationOptions
The size of batches to use when iterating over results.
getBatchSize() - Method in class com.mongodb.DBCursor
Gets the batch size.
getBatchSize() - Method in class com.mongodb.ParallelScanOptions
Gets the batch size to use for each cursor.
getBestLatencyNanos(Set<ServerDescription>) - Method in class com.mongodb.LatencyMinimizingServerSelector
 
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
getBSONSize(int) - Method in class org.bson.LazyBSONObject
 
getBSONSize() - Method in class org.bson.LazyBSONObject
Gets the size in bytes of the BSON document.
getBucketName() - Method in class com.mongodb.gridfs.GridFS
Gets the bucket name used in the collection's namespace.
getBuffer() - Method in class com.mongodb.BSONBinaryWriter
Gets the output buffer that is backing this instance.
getBuffers() - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
getBuffers(boolean) - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
getBulkWriteError(WriteConcernException) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getBulkWriteException(WriteRequest.Type, CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getBulkWriteResult(WriteRequest.Type, CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getByCharacter(char) - Static method in enum org.bson.BSON.RegexFlag
 
getBypassDocumentValidation() - Method in class com.mongodb.AggregationOptions
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidation() - Method in class com.mongodb.BaseWriteCommandMessage
 
getBypassDocumentValidation() - Method in class com.mongodb.BulkWriteOperation
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidation() - Method in class com.mongodb.InsertOptions
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidation() - Method in class com.mongodb.MapReduceCommand
Gets whether to bypass document validation, or null if unspecified.
getBypassDocumentValidationForServerVersion(Boolean, ServerVersion) - Method in class com.mongodb.DBCollection
 
getByServerAddress(ServerAddress) - Method in class com.mongodb.ClusterDescription
 
getBytes() - Method in class org.bson.LazyBSONObject
 
getCachedLastError() - Method in class com.mongodb.WriteResult
Deprecated.
Use the appropriate WriteConcern and rely on the write operation to throw an exception on failure. For successful writes, use the helper methods to retrieve specific values from the write response.
getCanonicalAddress() - Method in class com.mongodb.ServerDescription
Gets the string representing the host name and port that this member of a replica set was configured with, e.g.
getCheckedOutCount() - Method in class com.mongodb.ConnectionPoolStatistics
 
getCheckedOutCount() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the count of connections that are currently in use.
getChunk(int) - Method in class com.mongodb.gridfs.GridFSDBFile
 
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.
getClassAncestryCache() - Static method in class org.bson.util.ClassAncestry
classAncestryCache
getClusterDescription() - Method in class com.mongodb.ClusterDescriptionChangedEvent
Gets the new cluster description.
getClusterDescription() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getClusterId() - Method in class com.mongodb.ClusterEvent
Gets the cluster id associated with this event.
getClusterType() - Method in class com.mongodb.ServerDescription
 
getClusterType() - Method in enum com.mongodb.ServerType
The type of the cluster to which this server belongs
getClusterWaitTimeMS() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getCode() - Method in class com.mongodb.BulkWriteError
Gets the code associated with this error.
getCode() - Method in class com.mongodb.CommandResult
Returns the "code" field, as an int
getCode() - Method in exception com.mongodb.MongoException
Gets the exception code
getCode(BSONObject) - Static method in class com.mongodb.ServerError
Deprecated.
 
getCode() - Method in class com.mongodb.ServerError
Deprecated.
Gets the error code
getCode() - Method in class com.mongodb.WriteConcernError
Gets the code associated with this error.
getCode() - Method in class org.bson.types.Code
Get the Javascript code.
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
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.DBRefBase
Deprecated.
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
 
getCollectionName() - Method in class com.mongodb.RequestMessage
 
getCollectionNameFromNamespace(String) - Method in class com.mongodb.QueryResultIterator
 
getCollectionNames() - Method in class com.mongodb.DB
Returns a set containing the names of all collections in this database.
getCollectionNames() - Method in class com.mongodb.DBApiLayer
Deprecated.
 
getCommand() - Method in class com.mongodb.AggregationOutput
Deprecated.
there is no replacement for this method
getCommand() - Method in class com.mongodb.MapReduceOutput
Get the original command that was sent to the database.
getCommand() - Method in class com.mongodb.WriteConcern
Deprecated.
This will be removed in 3.0
getCommandEncoder() - Method in class com.mongodb.BaseWriteCommandMessage
 
getCommandName() - Method in class com.mongodb.BaseWriteCommandMessage
 
getCommandName() - Method in class com.mongodb.DeleteCommandMessage
 
getCommandName() - Method in class com.mongodb.InsertCommandMessage
 
getCommandName() - Method in class com.mongodb.UpdateCommandMessage
 
getCommandReadPreference(DBObject, ReadPreference) - Method in class com.mongodb.DB
Determines the read preference that should be used for the given command.
getCommandResult() - Method in class com.mongodb.AggregationOutput
Deprecated.
there is no replacement for this method
getCommandResult() - Method in exception com.mongodb.CommandFailureException
getCommandResult() - Method in class com.mongodb.MapReduceOutput
Deprecated.
It is not recommended to access the command result returned by the server as the format can change between releases. This has been replaced with a series of specific getters for the values on the CommandResult (getCollectionName, getDatabaseName, getDuration, getEmitCount, getOutputCount, getInputCount). The method results() will continue to return an Iterable<DBObjects>, that should be used to obtain the results of the map-reduce. This method will be removed in 3.0.
getCommandResult() - Method in exception com.mongodb.MongoCommandException
 
getCommandResult() - Method in exception com.mongodb.WriteConcernException
getConnectingServerDescription(ServerAddress) - Method in class com.mongodb.MultiServerCluster
 
getConnectingServerDescription(Throwable) - Method in class com.mongodb.ServerMonitor
 
getConnection(long, TimeUnit) - Method in class com.mongodb.BaseCluster.WrappedServer
 
getConnection(ServerSelector) - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
getConnection(long, TimeUnit) - Method in class com.mongodb.DefaultServer
 
getConnection(long, TimeUnit) - Method in interface com.mongodb.Server
 
getConnectionMode() - Method in class com.mongodb.ClusterDescription
 
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.
getConnectionWaitTimeMS() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getConnector() - Method in class com.mongodb.DBApiLayer
Deprecated.
 
getConnector() - Method in class com.mongodb.Mongo
Deprecated.
DBTCPConnector is NOT part of the public API. It will be dropped in 3.x releases.
getConnectPoint() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getConnectPoint() - Method in class com.mongodb.Mongo
Gets a String representation of current connection point, i.e.
getConnectTimeout() - Method in class com.mongodb.MongoClientOptions
The connection timeout in milliseconds.
getConnectTimeout() - Method in class com.mongodb.MongoOptions
Deprecated.
 
getConnectTimeout(TimeUnit) - Method in class com.mongodb.SocketSettings
 
getContentType() - Method in class com.mongodb.gridfs.GridFSFile
Gets the content type.
getContext() - Method in class com.mongodb.BSONBinaryWriter
 
getContext() - Method in class com.mongodb.BSONWriter
 
getContextType() - Method in class com.mongodb.BSONWriter.Context
 
getContinueOnError() - Method in class com.mongodb.WriteConcern
Deprecated.
the preferred way to specify this is to use write methods that explicitly specify the value of this property
getContinueOnErrorForInsert() - Method in class com.mongodb.WriteConcern
Deprecated.
the preferred way to specify this is to use write methods that explicitly specify the value of this property
getCount() - Method in class com.mongodb.ConcurrentPool
 
getCount() - Method in class com.mongodb.DBCollection
Get the count of documents in a collection.
getCount(ReadPreference) - Method in class com.mongodb.DBCollection
Get the count of documents in a 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(DBObject, DBObject, long, long, ReadPreference, long, TimeUnit) - Method in class com.mongodb.DBCollection
 
getCount(DBObject, DBObject, long, long, ReadPreference, long, TimeUnit, Object) - Method in class com.mongodb.DBCollection
 
getCount(WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getCount(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getCredentials() - Method in class com.mongodb.MongoClientURI
Gets the credentials.
getCredentials() - Method in class com.mongodb.MongoURI
Gets the credentials.
getCredentialsList() - Method in class com.mongodb.MongoClient
Gets the list of credentials that this client authenticates all connections with
getCredentialsStore() - Method in class com.mongodb.MongoAuthority
Gets the credentials store.
getCString(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getCurrentCounter() - Static method in class org.bson.types.ObjectId
Gets the current value of the auto-incrementing counter.
getCurrentDescription() - Method in class com.mongodb.BaseCluster
 
getCurrentInc() - Static method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.getCurrentCounter() instead.
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.
getCursorId() - Method in class com.mongodb.QueryResultIterator
 
getData() - Method in class org.bson.types.Binary
Get a copy of the binary value.
getDatabase() - Method in class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
getDatabase() - Method in class com.mongodb.MongoClientURI
Gets the database name
getDatabase() - Method in class com.mongodb.MongoURI
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
 
getDatabaseNames() - Method in class com.mongodb.Mongo
Gets a list of the names of all databases on the connected server.
getDatabases() - Method in class com.mongodb.MongoCredentialsStore
Gets the set of databases for which there are credentials stored.
getDatatabaseNameFromNamespace(String) - Method in class com.mongodb.QueryResultIterator
 
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() - Method in class org.bson.types.ObjectId
Gets the timestamp as a Date instance.
getDB() - Method in class com.mongodb.DBCollection
Returns the database this collection is a member of.
getDB() - Method in class com.mongodb.DBRefBase
Deprecated.
deprecated because DBRefBase.fetch() is deprecated
getDB() - Method in class com.mongodb.gridfs.GridFS
Gets the database used.
getDB(String) - Method in class com.mongodb.Mongo
Gets a database object from this MongoDB instance.
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
 
getDBCallback(DBCollection) - Method in class com.mongodb.LazyWriteableDBDecoder
Deprecated.
 
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.
 
getDBEncoder() - Method in class com.mongodb.DBCollection
 
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.
 
getDBName() - Method in class com.mongodb.DBAddress
Gets the database name
getDBPortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
Deprecated.
Gets the DBPortPool associated with a ServerAddress.
getDecoder() - Method in class com.mongodb.DBCollection
 
getDecoder() - Method in class com.mongodb.DBCursor
 
getDecoder() - Method in class com.mongodb.DBPort
Deprecated.
 
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
getDefaultMaxDocumentSize() - Static method in class com.mongodb.ServerDescription
 
getDefaultMaxMessageSize() - Static method in class com.mongodb.ServerDescription
 
getDefaultMaxWireVersion() - Static method in class com.mongodb.ServerDescription
 
getDefaultMaxWriteBatchSize() - Static method in class com.mongodb.ServerDescription
 
getDefaultMinWireVersion() - Static method in class com.mongodb.ServerDescription
 
getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
 
getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
 
getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
 
getDescription(long, TimeUnit) - Method in class com.mongodb.BaseCluster
 
getDescription() - Method in class com.mongodb.BaseCluster.WrappedServer
 
getDescription(long, TimeUnit) - Method in interface com.mongodb.Cluster
Get the description of this cluster.
getDescription() - Method in class com.mongodb.DefaultServer
 
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.
 
getDescription() - Method in interface com.mongodb.Server
Gets the description of this server.
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.
getDocument() - Method in class com.mongodb.InsertRequest
 
getDocument() - Method in class com.mongodb.ReplaceRequest
 
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.
getDuration() - Method in class com.mongodb.MapReduceOutput
Get the amount of time, in milliseconds, that it took to run this map reduce.
getDurationMS() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getElectionId() - Method in class com.mongodb.ServerDescription
The replica set electionid reported by this MongoDB server.
getElement(String) - Method in class org.bson.LazyBSONObject
returns the ElementRecord for the given key, or null if not found
getElementBSONSize(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
getElementFieldName(int) - Method in class org.bson.LazyBSONObject
 
getElements() - Method in class org.bson.LazyBSONObject
returns all the ElementRecords in this document
getElementType(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
getElementValue(LazyBSONObject.ElementRecord) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
getEmitCount() - Method in class com.mongodb.MapReduceOutput
Get the number of messages emitted from the provided map function.
getEncodingHooks(Class<?>) - Static method in class org.bson.BSON
Returns the encoding hook(s) associated with the specified class.
getErrInfo(DBObject) - Static method in class com.mongodb.WriteCommandResultHelper
 
getError() - Method in class com.mongodb.Response
 
getError() - Method in class com.mongodb.ServerError
Deprecated.
Gets the error String
getError() - Method in class com.mongodb.WriteResult
Deprecated.
There should be no reason to use this method. The error message will be in the exception thrown for an unsuccessful write operation.
getErrorCode() - Method in exception com.mongodb.MongoCommandException
Gets the error code associated with the command 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.WriteConcernException
Gets the error message associated with the write failure.
getErrorResponseDetails(DBObject) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getException() - Method in class com.mongodb.CommandResult
Utility method to create an exception from a failed command.
getException() - Method in class com.mongodb.ServerDescription
 
getExtraOptions() - Method in class com.mongodb.MapReduceCommand
Deprecated.
use the specific field getter methods
getField(String) - Method in class com.mongodb.WriteResult
Deprecated.
There should be no reason to use this method. To get specific fields from a successful write, use the helper methods provided. Any error-related fields will be in the exception thrown for an unsuccessful write operation.
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.Remove
 
getFilter() - Method in class com.mongodb.Update
 
getFinalize() - Method in class com.mongodb.MapReduceCommand
Gets the Finalize JS Function
getFirst() - Method in class com.mongodb.ConcurrentLinkedDeque
 
getFirst() - Method in interface com.mongodb.Deque
Retrieves, but does not remove, the first element of this deque.
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
 
getGeneration() - Method in interface com.mongodb.Connection
 
getGeneration() - Method in class com.mongodb.DBPort
Deprecated.
Gets the generation of this connection.
getGenMachineId() - Static method in class org.bson.types.ObjectId
Deprecated. 
getGetMoreBatchSize() - Method in class com.mongodb.QueryResultIterator
 
getGridFS() - Static method in class com.mongodb.gridfs.CLI
 
getGridFS() - Method in class com.mongodb.gridfs.GridFSFile
Gets the GridFS associated with this file
getGSSCredential(String) - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
getHeartbeatConnectRetryFrequency() - Method in class com.mongodb.MongoClientOptions
getHeartbeatConnectRetryFrequency(TimeUnit) - Method in class com.mongodb.ServerSettings
 
getHeartbeatConnectTimeout() - Method in class com.mongodb.MongoClientOptions
Gets the connect timeout for connections used for the cluster heartbeat.
getHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
Gets the heartbeat frequency.
getHeartbeatFrequency(TimeUnit) - Method in class com.mongodb.ServerSettings
 
getHeartbeatSocketSettings() - Method in class com.mongodb.ServerSettings
 
getHeartbeatSocketTimeout() - Method in class com.mongodb.MongoClientOptions
Gets the socket timeout for connections used for the cluster heartbeat.
getHeartbeatThreadCount() - Method in class com.mongodb.MongoClientOptions
Deprecated.
this is no longer a configurable property
getHintFields() - Method in class com.mongodb.DBCollection
Get hint fields for this collection (used to optimize queries).
getHost() - Method in class com.mongodb.ConnectionPoolStatistics
 
getHost() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the host that this connection pool is connecting to.
getHost() - Method in class com.mongodb.DBPortPool
Deprecated.
 
getHost() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Deprecated.
Gets the host that this connection pool is connecting to.
getHost() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Deprecated.
Gets the host that this connection pool is connecting to.
getHost() - Method in class com.mongodb.ServerAddress
Gets the hostname
getHostName() - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
getHosts() - Method in class com.mongodb.ClusterSettings
Gets the seed list of hosts for the cluster.
getHosts() - Method in class com.mongodb.MongoClientURI
Gets the list of hosts
getHosts() - Method in class com.mongodb.MongoURI
Gets the list of hosts.
getHosts() - Method in class com.mongodb.ServerDescription
 
getId() - Method in class com.mongodb.BulkWriteUpsert
Gets the id of the upserted item.
getId() - Method in class com.mongodb.DBPointer
Deprecated.
 
getId() - Method in class com.mongodb.DBRefBase
Deprecated.
Gets the _id of the referenced document
getId() - Method in class com.mongodb.gridfs.GridFSFile
Gets the id.
getId() - Method in class com.mongodb.OutMessage
 
getId() - Method in class com.mongodb.RequestMessage
 
getInc() - Method in class org.bson.types.BSONTimestamp
Gets the increment value.
getInc() - Method in class org.bson.types.ObjectId
Deprecated.
Please use the ObjectId.toByteArray() instead.
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.
getIndexInfo() - Method in class com.mongodb.DBCollectionImpl
 
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
getInputStream() - Method in class com.mongodb.DBPort
Deprecated.
 
getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
Returns an InputStream from which data can be read.
getInsertedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
getInsertedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents inserted by the write operation.
getInsertedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
getInt(String, int) - Method in class com.mongodb.util.OptionMap
Deprecated.
 
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(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
Gets a Little Endian Integer
getIntBE(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getIntegerArg(String, String) - Static method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
getInternalClass(String) - Method in class com.mongodb.DBCollection
Gets the internal class for the given path in the document hierarchy
getInternalClass(String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
 
getIntLE(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getInUse() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Deprecated.
Gets the number of pool members that are currently in use.
getInUse() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
Gets the number of pool members that are currently in use.
getInUse() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
getInUseConnections() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
Gets an array of beans describing all the connections that are currently in use.
getInUseCount() - Method in class com.mongodb.ConcurrentPool
 
getItemCount() - Method in class com.mongodb.BaseWriteCommandMessage
 
getItemCount() - Method in class com.mongodb.DeleteCommandMessage
 
getItemCount() - Method in class com.mongodb.InsertCommandMessage
 
getItemCount() - Method in class com.mongodb.UpdateCommandMessage
 
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
getKeyString(String) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
getKeysWanted() - Method in class com.mongodb.DBCursor
Gets the fields to be returned.
getLast() - Method in class com.mongodb.ConcurrentLinkedDeque
 
getLast() - Method in interface com.mongodb.Deque
Retrieves, but does not remove, the last element of this deque.
getLastConcern() - Method in class com.mongodb.WriteResult
Deprecated.
there is no replacement for this method
getLastError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
getLastError(WriteConcern) - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
getLastError(int, int, boolean) - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
getLastError(DB, WriteConcern) - Method in class com.mongodb.DBPort
Deprecated.
 
getLastError() - Method in class com.mongodb.WriteResult
Deprecated.
Use the appropriate WriteConcern and allow the write operation to throw an exception on failure. For successful writes, use the helper methods to retrieve specific values from the write response.
getLastError(WriteConcern) - Method in class com.mongodb.WriteResult
Deprecated.
Use the appropriate WriteConcern and rely on the write operation to throw an exception on failure. For successful writes, use the helper methods to retrieve specific values from the write response.
getLastUsedAt() - Method in interface com.mongodb.Connection
 
getLastUsedAt() - Method in class com.mongodb.DBPort
Deprecated.
Returns the time at which this connection was last used, or Long.MAX_VALUE if it has not yet been used.
getLastValue(Map<String, List<String>>, String) - Method in class com.mongodb.MongoClientURI
 
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.DBCursor
Gets the query limit.
getLimit() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) limit on input
getLocalPort() - Method in class com.mongodb.DBPort
Deprecated.
 
getLocalPort() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getLocalThreshold() - Method in class com.mongodb.MongoClientOptions
Gets the local threshold.
getLogger() - Method in class com.mongodb.DBCollectionImpl
 
getLogger(String) - Static method in class com.mongodb.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(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getMachine() - Method in class org.bson.types.ObjectId
Deprecated.
Please use #toByteArray() instead.
getMaintenanceFrequency(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
 
getMaintenanceInitialDelay(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
 
getMajorVersion() - Static method in class com.mongodb.Mongo
Deprecated.
Please use Mongo.getVersion() instead.
getMap() - Method in class com.mongodb.MapReduceCommand
Get the map function, as a JS String
getMaster() - Method in class com.mongodb.ReplicaSetStatus
Gets the ServerAddress of the master server in this replica set.
getMatchedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
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.UnacknowledgedBulkWriteResult
 
getMax() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoClientOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
getMaxBsonObjectSize() - Method in class com.mongodb.DBTCPConnector
Deprecated.
Gets the maximum size for a BSON object supported by the current master server.
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.ConnectionPoolSettings
 
getMaxConnectionIdleTime() - Method in class com.mongodb.MongoClientOptions
The maximum idle time of a pooled connection.
getMaxConnectionLifeTime(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
 
getMaxConnectionLifeTime() - Method in class com.mongodb.MongoClientOptions
The maximum life time of a pooled connection.
getMaxDocumentSize() - Method in class com.mongodb.BSONBinaryWriterSettings
 
getMaxDocumentSize() - Method in class com.mongodb.MessageSettings
 
getMaxDocumentSize() - Method in class com.mongodb.ServerDescription
 
getMaxMessageSize() - Method in class com.mongodb.MessageSettings
 
getMaxMessageSize() - Method in class com.mongodb.ServerDescription
 
getMaxSerializationDepth() - Method in class com.mongodb.BSONWriterSettings
 
getMaxSize() - Method in class com.mongodb.ConcurrentPool
 
getMaxSize() - Method in class com.mongodb.ConnectionPoolSettings
 
getMaxSize() - Method in class com.mongodb.ConnectionPoolStatistics
 
getMaxSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxSize() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Deprecated.
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxSize() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Deprecated.
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxSize() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
getMaxTime(TimeUnit) - Method in class com.mongodb.AggregationOptions
Gets the maximum execution time for the aggregation command.
getMaxTime(TimeUnit) - Method in class com.mongodb.MapReduceCommand
Gets the max execution time for this command, in the given time unit.
getMaxWaitQueueSize() - Method in class com.mongodb.ConnectionPoolSettings
 
getMaxWaitTime(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
 
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.
 
getMaxWireVersion() - Method in class com.mongodb.ServerDescription
 
getMaxWriteBatchSize(DBPort) - Method in class com.mongodb.DBCollectionImpl
 
getMaxWriteBatchSize() - Method in class com.mongodb.MessageSettings
 
getMaxWriteBatchSize() - Method in class com.mongodb.ServerDescription
 
getMBean(String, ServerAddress) - Method in class com.mongodb.JMXConnectionPoolListener
 
getMBeanObjectName(String, ServerAddress) - Method in class com.mongodb.JMXConnectionPoolListener
 
getMBeanServer() - Static method in class com.mongodb.util.management.MBeanServerFactory
Deprecated.
 
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 class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
getMechanismName() - Method in class com.mongodb.DBPort.PlainAuthenticator
Deprecated.
 
getMechanismName() - Method in class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
getMechanismName() - Method in class com.mongodb.DBPort.ScramSha1Authenticator
Deprecated.
 
getMechanismName() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
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.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.
getMessageSettings(DBPort) - Method in class com.mongodb.DBCollectionImpl
 
getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
Gets the file metadata.
getMinConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
The minimum number of connections per host for this MongoClient instance.
getMinHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
Gets the minimum heartbeat frequency.
getMinorVersion() - Static method in class com.mongodb.Mongo
Deprecated.
Please use Mongo.getVersion() instead.
getMinSize() - Method in class com.mongodb.ConnectionPoolSettings
 
getMinSize() - Method in class com.mongodb.ConnectionPoolStatistics
 
getMinSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the minimum allowed size of the pool, including idle and in-use members.
getMinWireVersion() - Method in class com.mongodb.ServerDescription
 
getMode() - Method in class com.mongodb.ClusterSettings
Gets the mode.
getModifiedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
getModifiedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents modified by the write operation.
getModifiedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
getModifiedCount(WriteRequest.Type, CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getMongo() - Method in class com.mongodb.DB
Gets the Mongo instance
getMongo() - Static method in class com.mongodb.gridfs.CLI
 
getMongoAuthorityFromURI(MongoURI) - Static method in class com.mongodb.Mongo
 
getMongoClientOptions() - Method in class com.mongodb.MongoClient
 
getMongoOptions() - Method in class com.mongodb.Mongo
Deprecated.
getMongosHAServerSelector() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getMore(DBCollection, long, int) - Static method in class com.mongodb.OutMessage
 
getMore() - Method in class com.mongodb.QueryResultIterator
 
getMsg(BSONObject, String) - Static method in class com.mongodb.ServerError
Deprecated.
 
getMyPort() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
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 class com.mongodb.BSONWriter
 
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.Java5MongoConnectionPoolMBean
Deprecated.
Gets the name of the pool.
getName() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Deprecated.
Gets the name of the pool.
getName() - Method in class com.mongodb.ReadPreference
The name of this read preference.
getName() - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
 
getName() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
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 com.mongodb.TaggableReadPreference.NearestReadPreference
 
getName() - Method in class com.mongodb.TaggableReadPreference.PrimaryPreferredReadPreference
 
getName() - Method in class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
 
getName() - Method in class com.mongodb.TaggableReadPreference.SecondaryReadPreference
 
getName() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
getNamespace() - Method in class com.mongodb.DBCollectionImpl
 
getNamespace() - Method in class com.mongodb.DBPort.ActiveState
Deprecated.
 
getNamespace() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getNamespace() - Method in class com.mongodb.OutMessage
 
getNamespace() - Method in class com.mongodb.RequestMessage
 
getNegotiatedProperty(String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
getNewServerDescriptionList() - Method in class com.mongodb.MultiServerCluster
 
getNewValue() - Method in class com.mongodb.ChangeEvent
 
getNext() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Gets next link (which is actually the value held as atomic reference).
getNextState() - Method in class com.mongodb.BSONWriter
 
getNonceCommand() - Static method in class com.mongodb.NativeAuthenticationHelper
 
getNumCursors() - Method in class com.mongodb.ParallelScanOptions
Gets the number of cursors requested.
getNumDocuments() - Method in class com.mongodb.DBPort.ActiveState
Deprecated.
 
getNumDocuments() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getNumDocuments() - Method in class com.mongodb.OutMessage
 
getObject() - Method in class com.mongodb.RawDBObject.Element
Deprecated.
 
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.
getOffset() - Method in class org.bson.LazyBSONObject
 
getOkServers(ClusterDescription) - Method in class com.mongodb.MongosHAServerSelector
 
getOldValue() - Method in class com.mongodb.ChangeEvent
 
getOpCode() - Method in class com.mongodb.DBPort.ActiveState
Deprecated.
 
getOpCode() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getOpCode() - Method in class com.mongodb.OutMessage
 
getOpCode() - Method in class com.mongodb.RequestMessage
 
getOpenedAt() - Method in interface com.mongodb.Connection
 
getOpenedAt() - Method in class com.mongodb.DBPort
Deprecated.
Returns the time at which this connection was opened, or Long.MAX_VALUE if it has not yet been opened.
getOption(String) - Method in class com.mongodb.util.Args
Deprecated.
 
getOptions() - Method in class com.mongodb.DB
Gets the default 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
Gets the options.
getOptions() - Method in class com.mongodb.ServerMonitor
 
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
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.
getOutputStream() - Method in class com.mongodb.DBPort
Deprecated.
 
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 com.mongodb.BSONBinaryWriter.Context
 
getParentContext() - Method in class com.mongodb.BSONWriter.Context
 
getPassives() - Method in class com.mongodb.ServerDescription
 
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
Gets the password.
getPinnedRequestPortForThread() - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
getPinnedRequestStatusForThread() - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
getPool() - Method in class com.mongodb.DBPort
Deprecated.
Gets the pool that this port belongs to.
getPort() - Method in class com.mongodb.ConnectionPoolStatistics
 
getPort() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the port that this connection pool is connecting to.
getPort() - Method in class com.mongodb.DBPortPool
Deprecated.
 
getPort(ReadPreference) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getPort() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Deprecated.
Gets the port that this connection pool is connecting to.
getPort() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Deprecated.
Gets the port that this connection pool is connecting to.
getPort() - Method in class com.mongodb.ServerAddress
Gets the port number
getPos() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
getPosition() - Method in class org.bson.io.BasicOutputBuffer
 
getPosition() - Method in class org.bson.io.OutputBuffer
Gets the current position in the stream.
getPosition() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
getPrev() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Gets prev link.
getPreviousError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
getPrimaries() - Method in class com.mongodb.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.ServerDescription
 
getPrimaryPort() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getProvider() - Method in class com.mongodb.DBPort
Deprecated.
 
getQuery() - Method in class com.mongodb.DBCursor
Gets the query.
getQuery() - Method in class com.mongodb.DBPort.ActiveState
Deprecated.
 
getQuery() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getQuery() - Method in class com.mongodb.MapReduceCommand
Gets the query to run for this MapReduce job
getQuery() - Method in class com.mongodb.ModifyRequest
 
getQuery() - Method in class com.mongodb.OutMessage
 
getQuery() - Method in class com.mongodb.RemoveRequest
 
getRandom() - Method in class com.mongodb.BaseCluster
 
getRandomServer(List<ServerDescription>) - Method in class com.mongodb.BaseCluster
 
getRaw() - Method in class com.mongodb.MapReduceOutput
Deprecated.
It is not recommended to access the raw document returned by the server as the format can change between releases. This has been replaced with a series of specific getters for the values on the result (getCollectionName, getDatabaseName, getDuration, getEmitCount, getOutputCount, getInputCount). The method results() will continue to return an Iterable<DBObjects>, that should be used to obtain the results of the map-reduce. This method will be removed in 3.0.
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.
 
getReadPreference() - Method in class com.mongodb.ParallelScanOptions
Gets the read preference to use.
getReadPreference() - Method in class com.mongodb.ReadPreferenceServerSelector
 
getReadTimeout(TimeUnit) - Method in class com.mongodb.SocketSettings
 
getReduce() - Method in class com.mongodb.MapReduceCommand
Gets the reduce function, as a JS String
getRef() - Method in class com.mongodb.DBRefBase
Deprecated.
getRemainingMaps(List<DBObject>) - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
getRemovedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
getRemovedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents removed by the write operation.
getRemovedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
getReplicaSetStatus() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getReplicaSetStatus() - Method in class com.mongodb.Mongo
Get the status of the replica set cluster.
getRequiredClusterType() - Method in class com.mongodb.ClusterSettings
Get
getRequiredReplicaSetName() - Method in class com.mongodb.ClusterSettings
Gets the required replica set name.
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.
getResult() - Method in class com.mongodb.BulkWriteBatchCombiner
 
getResult(WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getRunGenerator(boolean, Boolean, List<WriteRequest>, WriteConcern, DBEncoder, DBPort) - Method in class com.mongodb.DBCollectionImpl
 
getScope() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) JavaScript scope
getScope() - Method in class org.bson.types.CodeWScope
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
getSecondaries() - Method in class com.mongodb.ClusterDescription
 
getSecondaries(TagSet) - Method in class com.mongodb.ClusterDescription
 
getServer(ServerSelector, long, TimeUnit) - Method in class com.mongodb.BaseCluster
 
getServer(ServerAddress) - Method in class com.mongodb.BaseCluster
Return the server at the given address.
getServer(ServerSelector, long, TimeUnit) - Method in interface com.mongodb.Cluster
Get a MongoDB server that matches the criteria defined by the serverSelector
getServer(ServerSelector) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getServer(ServerAddress) - Method in class com.mongodb.MultiServerCluster
 
getServer(ServerAddress) - Method in class com.mongodb.SingleServerCluster
 
getServerAddress() - Method in exception com.mongodb.BulkWriteException
The address of the server which performed the bulk write operation.
getServerAddress() - Method in class com.mongodb.ConnectionEvent
Gets the server address associated with this connection.
getServerAddress() - Method in class com.mongodb.ConnectionPoolEvent
Gets the server address associated with this connection pool
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
Gets the Server Address of the server that data is pulled from.
getServerAddress() - Method in class com.mongodb.DBPortPool
Deprecated.
 
getServerAddress() - Method in exception com.mongodb.MongoCommandException
Gets the address of the server that this command failed on.
getServerAddress() - Method in exception com.mongodb.MongoCursorNotFoundException
The server address where the cursor is.
getServerAddress() - Method in class com.mongodb.QueryResultIterator
 
getServerAddress() - Method in exception com.mongodb.WriteConcernException
Gets the address of the server that the write executed on.
getServerAddresses() - Method in class com.mongodb.MongoAuthority
Returns the list of server addresses.
getServerAddressList() - Method in class com.mongodb.DBTCPConnector
Deprecated.
Gets the list of server addresses currently seen by the connector.
getServerAddressList() - Method in class com.mongodb.Mongo
Gets the list of server addresses currently seen by this client.
getServerDescription(ServerAddress) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getServers(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference
 
getServers(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.NearestReadPreference
 
getServers(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.SecondaryReadPreference
 
getServersByPredicate(ClusterDescription.Predicate) - Method in class com.mongodb.ClusterDescription
 
getServersForTags(ClusterDescription, TagSet) - Method in class com.mongodb.TaggableReadPreference
 
getServersForTags(ClusterDescription, TagSet) - Method in class com.mongodb.TaggableReadPreference.NearestReadPreference
 
getServersForTags(ClusterDescription, TagSet) - Method in class com.mongodb.TaggableReadPreference.SecondaryReadPreference
 
getServersWithAcceptableLatencyDifference(Set<ServerDescription>, long) - Method in class com.mongodb.LatencyMinimizingServerSelector
 
getServerType(CommandResult) - Static method in class com.mongodb.ServerMonitor
 
getServerUsed() - Method in class com.mongodb.AggregationOutput
Deprecated.
there is no replacement for this method
getServerUsed() - Method in class com.mongodb.CommandResult
Deprecated.
there is no replacement for this method
getServerUsed() - Method in class com.mongodb.MapReduceOutput
Deprecated.
this method will be removed in the next major release
getServerVersion() - Method in class com.mongodb.DBPort
Deprecated.
 
getSetName() - Method in class com.mongodb.ServerDescription
 
getSettings() - Method in class com.mongodb.BaseCluster
 
getSettings() - Method in interface com.mongodb.ClusterableServerFactory
 
getSettings() - Method in class com.mongodb.ConnectionPoolOpenedEvent
Gets the settings for this connection pool.
getSettings() - Method in class com.mongodb.DefaultClusterableServerFactory
 
getSettings() - Method in class com.mongodb.RequestMessage
 
getSetVersion() - Method in class com.mongodb.ServerDescription
The replica set setVersion reported by this MongoDB server.
getShortDescription() - Method in class com.mongodb.ClusterDescription
 
getShortDescription() - Method in class com.mongodb.ClusterSettings
 
getShortDescription() - Method in class com.mongodb.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.ConnectionPoolStatistics
 
getSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the current size of the pool, including idle and and in-use members.
getSizes() - Method in class com.mongodb.DBCursor
Deprecated.
there is no replacement for this method
getSizes() - Method in class com.mongodb.QueryResultIterator
 
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.
 
getSocketFactory() - Method in class com.mongodb.SocketSettings
 
getSocketTimeout() - Method in class com.mongodb.MongoClientOptions
The socket timeout in milliseconds.
getSocketTimeout() - Method in class com.mongodb.MongoOptions
Deprecated.
 
getSort() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) sort specification object
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.
getStartTime() - Method in class com.mongodb.DBPort.ActiveState
Deprecated.
 
getState() - Method in class com.mongodb.BSONWriter
 
getState() - Method in class com.mongodb.ServerDescription
 
getStatistics(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
getStatistics(ConnectionPoolEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
getStatistics(String, ServerAddress) - Method in class com.mongodb.JMXConnectionPoolListener
 
getStatistics() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Deprecated.
Gets the statistics for this connection pool.
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
getStats() - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
Gets the statistics for all Mongo connection pools registered with the MBean server used by this instance.
getStatus() - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
 
getStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
 
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
getSymbol() - Method in class org.bson.types.Symbol
Gets the symbol.
getTags() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
getTagSet(String) - Method in class com.mongodb.MongoClientURI
 
getTagSet() - Method in class com.mongodb.ServerDescription
 
getTagSetFromDocument(DBObject) - Static method in class com.mongodb.ServerMonitor
 
getTagSetList() - Method in class com.mongodb.TaggableReadPreference
Gets the list of tag sets as a list of TagSet instances.
getTagSets() - Method in class com.mongodb.TaggableReadPreference
Deprecated.
use the getTagSetList method instead
getThreadId() - Method in class com.mongodb.ConnectionPoolWaitQueueEvent
Gets the identifier of the waiting thread.
getThreadName() - Method in class com.mongodb.DBPort.ActiveState
Deprecated.
 
getThreadName() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
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.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() - Method in class org.bson.types.ObjectId
Gets the timestamp (number of seconds since the Unix epoch).
getTotal() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Deprecated.
Gets the total number of pool members, including idle and and in-use members.
getTotal() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
Gets the total number of pool members, including idle and and in-use members.
getTotal() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
getType(Object) - Static method in class com.mongodb.Bytes
Gets the type byte for a given object.
getType() - Method in class com.mongodb.ClusterDescription
 
getType() - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getType() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getType() - Method in class com.mongodb.InsertRequest
 
getType() - Method in class com.mongodb.MongoAuthority
Gets the authority type
getType() - Method in class com.mongodb.RemoveRequest
 
getType() - Method in class com.mongodb.ReplaceRequest
 
getType() - Method in class com.mongodb.ServerDescription
 
getType() - Method in class com.mongodb.UpdateRequest
 
getType() - Method in class com.mongodb.WriteRequest
 
getType() - Method in class org.bson.types.Binary
Get the binary sub type as a byte.
getUnacknowledgedWriteException() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
getUpdate() - Method in class com.mongodb.UpdateRequest
 
getUpdateDocument() - Method in class com.mongodb.ModifyRequest
 
getUpdateOperations() - Method in class com.mongodb.Update
 
getUploadDate() - Method in class com.mongodb.gridfs.GridFSFile
Gets the upload date.
getUpsertedId() - Method in class com.mongodb.WriteResult
Gets the _id value of an upserted document that resulted from this write.
getUpsertedItems(WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getUpsertedItems(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getUpserts() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
getUpserts() - Method in class com.mongodb.BulkWriteResult
Gets an unmodifiable list of upserted items, or the empty list if there were none.
getUpserts() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
getURI() - Method in class com.mongodb.MongoClientURI
Get the unparsed URI.
getUsageCount() - Method in class com.mongodb.DBPort
Deprecated.
 
getUsedDatabases() - Method in class com.mongodb.Mongo
Returns the list of databases used by the driver since this Mongo instance was created.
getUserCommandDocument(String, char[], boolean, String) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
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
Gets the username.
getUserRoleName(boolean) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
getUTF8String(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getValue() - Method in enum com.mongodb.BSONBinarySubType
 
getValue() - Method in enum com.mongodb.BSONType
 
getValue() - Method in enum com.mongodb.OutMessage.OpCode
 
getValue() - Method in enum com.mongodb.RequestMessage.OpCode
 
getValue() - Method in class com.mongodb.Tag
Gets the value of the replica set tag.
getValueString(Object, ConnectionPoolStat.StringType) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
getVersion(CommandResult) - Static method in class com.mongodb.DBPort
Deprecated.
 
getVersion() - Method in class com.mongodb.Mongo
Deprecated.
There is no replacement for this method.
getVersion() - Method in class com.mongodb.ServerDescription
 
getVersionList() - Method in class com.mongodb.ServerVersion
Gets the version list.
getW() - Method in class com.mongodb.MongoOptions
Deprecated.
 
getW() - Method in class com.mongodb.WriteConcern
Gets the w parameter (the write strategy)
getWaitQueueSize() - Method in class com.mongodb.ConnectionPoolStatistics
 
getWaitQueueSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the size of the wait queue for a connection from this pool.
getWObject() - Method in class com.mongodb.WriteConcern
Gets the w value (the write strategy)
getWrapper() - Method in class com.mongodb.ReflectionDBObject
 
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.BaseWriteCommandMessage
 
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.
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(CommandResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
getWriteConcernError(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getWriteConcernErrorMessage(CommandResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
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(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
getWriteException() - Method in class com.mongodb.CommandResult
 
getWriteNamespace() - Method in class com.mongodb.BaseWriteCommandMessage
 
getWriteRequestsAsInsertRequests() - Method in class com.mongodb.DBCollectionImpl.Run
 
getWriteRequestsAsModifyRequests() - Method in class com.mongodb.DBCollectionImpl.Run
 
getWriteRequestsAsRaw() - Method in class com.mongodb.DBCollectionImpl.Run
 
getWriteRequestsAsRemoveRequests() - Method in class com.mongodb.DBCollectionImpl.Run
 
getWriteResult() - Method in exception com.mongodb.BulkWriteException
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.
 
getWtimeout() - Method in class com.mongodb.WriteConcern
Gets the write timeout (in milliseconds)
GLOBAL_FLAG - Static variable in class org.bson.BSON
 
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 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 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 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 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 DateTime 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 DBPointer(0x0c) 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 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 an 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 an 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 MaxKey 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 MinKey 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 an ObjectID 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 Regex 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 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 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 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 an 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
 
GridFSDBFile.MyInputStream - Class in com.mongodb.gridfs
 
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.
GridFSInputFile.MyOutputStream - Class in com.mongodb.gridfs
An output stream implementation that can be used to successively write to a GridFS file.
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.
group(DBObject) - Method in class com.mongodb.DBCollection
Deprecated.
use DBCollection.group(com.mongodb.GroupCommand) instead. This method will be removed in 3.0
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.
GroupCommand(DBCollection, String, DBObject, DBObject, String, String) - Constructor for class com.mongodb.GroupCommand
Creates a new group command.
gs2Header - Static variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
GSSAPI_MECHANISM - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
GSSAPI_MECHANISM - Static variable in class com.mongodb.MongoCredential
The GSSAPI mechanism.
GSSAPI_OID - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
GSSAPIAuthenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
GT - Static variable in class com.mongodb.QueryOperators
 
GTE - Static variable in class com.mongodb.QueryOperators
 
GuardedBy - Annotation Type in org.bson.util.annotations
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.

H

H(byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
handle(T) - Method in class com.mongodb.util.ThreadPool
Deprecated.
Handles a given object.
handleError(T, Exception) - Method in class com.mongodb.util.ThreadPool
Deprecated.
Handles a given object and exception.
handleReplicaSetMemberChanged(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
handleShardRouterChanged(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
handleSpecialObjects(String, BSONObject) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Override BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types.
handleStandAloneChanged(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
hasDecodeHooks() - Static method in class org.bson.BSON
Gets whether any decoding transformers have been registered for any classes.
hasErr() - Method in class com.mongodb.CommandResult
Check the "err" field
hasError(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
 
hasErrorCode() - Method in exception org.bson.BSONException
Returns true if the error code is set (i.e., not null).
hasFinalizer() - Method in class com.mongodb.DBCursor
 
hasFinalizer() - Method in class com.mongodb.QueryResultIterator
 
Hash - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
Hash() - Constructor for class com.mongodb.util.Hash
Deprecated.
 
Hash(Map<? extends K, ? extends V>, AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.CopyOnWriteMap.Hash
 
hashBackward(String) - Static method in class com.mongodb.util.Hash
Deprecated.
Creates a hash for a string.
hashBackwardLong(String) - Static method in class com.mongodb.util.Hash
Deprecated.
Creates a long hash for a string.
HashBased(int, int) - Constructor for class com.mongodb.IndexMap.HashBased
 
hashCode() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
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.ChangeEvent
 
hashCode() - Method in class com.mongodb.ClusterDescription
 
hashCode() - Method in class com.mongodb.ClusterDescriptionChangedEvent
 
hashCode() - Method in class com.mongodb.ClusterEvent
 
hashCode() - Method in class com.mongodb.ClusterSettings
 
hashCode() - Method in class com.mongodb.ConnectionEvent
 
hashCode() - Method in class com.mongodb.ConnectionPoolEvent
 
hashCode() - Method in class com.mongodb.ConnectionPoolOpenedEvent
 
hashCode() - Method in class com.mongodb.ConnectionPoolSettings
 
hashCode() - Method in class com.mongodb.ConnectionPoolWaitQueueEvent
 
hashCode() - Method in class com.mongodb.DBAddress
 
hashCode() - Method in class com.mongodb.DBCollection
 
hashCode() - Method in class com.mongodb.DBPort
Deprecated.
 
hashCode() - Method in class com.mongodb.DBRefBase
Deprecated.
 
hashCode() - Method in class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
 
hashCode() - Method in class com.mongodb.MongoAuthority
 
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.MongoCredentialsStore
 
hashCode() - Method in class com.mongodb.MongoNamespace
 
hashCode() - Method in class com.mongodb.MongoOptions
Deprecated.
 
hashCode() - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
 
hashCode() - Method in class com.mongodb.ServerAddress
 
hashCode() - Method in class com.mongodb.ServerDescription
 
hashCode() - Method in class com.mongodb.ServerVersion
 
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.UnacknowledgedBulkWriteResult
 
hashCode(CharSequence, int, int) - Static method in class com.mongodb.util.Hash
Deprecated.
Creates a hash code of a string from [start-end)
hashCode(String...) - Static method in class com.mongodb.util.Hash
Deprecated.
Calculate the hashcode for a series of strings combined as one.
hashCode() - Method in class com.mongodb.WriteConcern
 
hashCode() - Method in class com.mongodb.WriteConcernError
 
hashCode() - Method in class org.bson.BasicBSONObject
 
hashCode() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
hashCode() - Method in class org.bson.LazyBSONObject
 
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.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
 
hashCode() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
hashCode() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
hashCode() - Method in class org.bson.util.ComputingMap
 
hasInitialResponse() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
hasMore() - Method in interface com.mongodb.io.ByteStream
Deprecated.
 
hasNext() - Method in class com.mongodb.ConcurrentLinkedDeque.CLDIterator
 
hasNext() - Method in class com.mongodb.DBCursor
Checks if there is another object available.
hasNext() - Method in class com.mongodb.QueryResultIterator
 
hasNext() - Method in class com.mongodb.RawDBObject.ElementIter
Deprecated.
 
hasNext() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
hasNext() - Method in class org.bson.LazyBSONObject.LazyBSONEntryIterator
 
hasNext() - Method in class org.bson.LazyBSONObject.LazyBSONKeyIterator
 
hasNext() - Method in class org.bson.util.AbstractCopyOnWriteMap.UnmodifiableIterator
 
hasOption(int) - Method in class com.mongodb.OutMessage
 
hasPrimary() - Method in class com.mongodb.MultiServerCluster
 
hasSpecialQueryFields() - Method in class com.mongodb.QueryOpBuilder
 
hasTags(TagSet) - Method in class com.mongodb.ServerDescription
Returns true if the server has the given tags.
hasWorked - Variable in class com.mongodb.PooledConnectionProvider
 
hasWorked() - Method in class com.mongodb.PooledConnectionProvider
 
hasWriteErrors() - Method in class com.mongodb.BulkWriteBatchCombiner
 
header - Variable in class com.mongodb.ConcurrentLinkedDeque
List header.
HEADROOM - Static variable in class com.mongodb.BaseWriteCommandMessage
 
heartbeatConnectRetryFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
heartbeatConnectRetryFrequency(long, TimeUnit) - Method in class com.mongodb.ServerSettings.Builder
 
heartbeatConnectRetryFrequencyMS - Variable in class com.mongodb.MongoOptions
Deprecated.
 
heartbeatConnectRetryFrequencyMS - Variable in class com.mongodb.ServerSettings.Builder
 
heartbeatConnectRetryFrequencyMS - Variable in class com.mongodb.ServerSettings
 
heartbeatConnectTimeout - Variable in class com.mongodb.MongoClientOptions.Builder
 
heartbeatConnectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat connect timeout.
heartbeatConnectTimeout - Variable in class com.mongodb.MongoClientOptions
 
heartbeatConnectTimeoutMS - Variable in class com.mongodb.MongoOptions
Deprecated.
 
heartbeatFrequency - Variable in class com.mongodb.MongoClientOptions.Builder
 
heartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat frequency.
heartbeatFrequency - Variable in class com.mongodb.MongoClientOptions
 
heartbeatFrequency(long, TimeUnit) - Method in class com.mongodb.ServerSettings.Builder
 
heartbeatFrequencyMS - Variable in class com.mongodb.MongoOptions
Deprecated.
 
heartbeatFrequencyMS - Variable in class com.mongodb.ServerSettings.Builder
 
heartbeatFrequencyMS - Variable in class com.mongodb.ServerSettings
 
heartbeatReadTimeoutMS - Variable in class com.mongodb.MongoOptions
Deprecated.
 
heartbeatSocketSettings - Variable in class com.mongodb.ServerSettings.Builder
 
heartbeatSocketSettings(SocketSettings) - Method in class com.mongodb.ServerSettings.Builder
 
heartbeatSocketSettings - Variable in class com.mongodb.ServerSettings
 
heartbeatSocketTimeout - Variable in class com.mongodb.MongoClientOptions.Builder
 
heartbeatSocketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat connect socket timeout.
heartbeatSocketTimeout - Variable in class com.mongodb.MongoClientOptions
 
heartbeatThreadCount - Variable in class com.mongodb.MongoClientOptions.Builder
 
heartbeatThreadCount(int) - Method in class com.mongodb.MongoClientOptions.Builder
Deprecated.
this is no longer a configurable property
heartbeatThreadCount - Variable in class com.mongodb.MongoClientOptions
 
heartbeatThreadCount - Variable in class com.mongodb.MongoOptions
Deprecated.
 
hex() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
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.
Hi(byte[], byte[], int) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
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 - Static variable in class com.mongodb.QueryOperators
 
hintObj - Variable in class com.mongodb.QueryOpBuilder
 
hintStr - Variable in class com.mongodb.QueryOpBuilder
 
HMAC(byte[], String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
Holder() - Constructor for class com.mongodb.Mongo.Holder
 
host - Variable in class com.mongodb.DBApiLayer.DeadCursor
Deprecated.
 
host() - Method in class com.mongodb.DBPort
Deprecated.
returns a String representation of the target host
host - Variable in class com.mongodb.QueryResultIterator.OptionalFinalizer
 
hosts - Variable in class com.mongodb.ClusterSettings.Builder
 
hosts(List<ServerAddress>) - Method in class com.mongodb.ClusterSettings.Builder
Sets the hosts for the cluster.
hosts - Variable in class com.mongodb.ClusterSettings
 
hosts - Variable in class com.mongodb.MongoClientURI
 
hosts - Variable in class com.mongodb.ServerDescription.Builder
 
hosts(Set<String>) - Method in class com.mongodb.ServerDescription.Builder
 
hosts - Variable in class com.mongodb.ServerDescription
 

I

id - Variable in class com.mongodb.BulkWriteUpsert
 
id - Variable in class com.mongodb.DBApiLayer.DeadCursor
Deprecated.
 
id - Variable in class com.mongodb.RequestMessage
 
IdentitySet<T> - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
IdentitySet() - Constructor for class com.mongodb.util.IdentitySet
Deprecated.
 
IdentitySet(Iterable<T>) - Constructor for class com.mongodb.util.IdentitySet
Deprecated.
 
IGNORE_FIELDS - Static variable in class com.mongodb.ReflectionDBObject
 
Immutable() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.Immutable
 
Immutable - Annotation Type in org.bson.util.annotations
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
in(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $in operand
IN - Static variable in class com.mongodb.QueryOperators
 
inc(int) - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
index - Variable in class com.mongodb.BSONBinaryWriter.Context
 
index - Variable in class com.mongodb.BulkWriteError
 
index - Variable in class com.mongodb.BulkWriteUpsert
 
indexMap - Variable in class com.mongodb.DBCollectionImpl.Run
 
IndexMap - Class in com.mongodb
Efficiently maps each integer in a set to another integer in a set, useful for merging bulk write errors when a bulk write must be split into multiple batches.
IndexMap() - Constructor for class com.mongodb.IndexMap
 
indexMap - Variable in class com.mongodb.IndexMap.HashBased
 
IndexMap.HashBased - Class in com.mongodb
 
IndexMap.RangeBased - Class in com.mongodb
 
indexOf(Object) - Method in class org.bson.LazyBSONList
 
init(int, long, int, Iterator<DBObject>, Mongo) - Method in class com.mongodb.QueryResultIterator
 
initFromCursorDocument(DBObject, Mongo) - Method in class com.mongodb.QueryResultIterator
 
initFromQueryResponse(Response, Mongo) - Method in class com.mongodb.QueryResultIterator
 
initial - Variable in class com.mongodb.GroupCommand
 
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.
initialValues - Variable in class org.bson.util.CopyOnWriteMap.Builder
 
innerCall(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
inProgress() - Method in class com.mongodb.util.ThreadPool
Deprecated.
 
insert(DBObject) - Method in class com.mongodb.BulkWriteOperation
Add an insert request to the bulk operation
insert(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(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(List<DBObject>) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<DBObject>, WriteConcern) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<DBObject>, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(List<DBObject>, InsertOptions) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insert(DBCollection, DBEncoder, WriteConcern) - Static method in class com.mongodb.OutMessage
 
InsertCommandMessage - Class in com.mongodb
 
InsertCommandMessage(MongoNamespace, WriteConcern, Boolean, List<DBObject>, DBEncoder, DBEncoder, MessageSettings) - Constructor for class com.mongodb.InsertCommandMessage
 
insertedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
 
insertedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
 
insertImpl(List<DBObject>, WriteConcern, DBEncoder, Boolean) - Method in class com.mongodb.DBCollection
Insert documents into a collection.
insertImpl(List<DBObject>, WriteConcern, DBEncoder, Boolean) - Method in class com.mongodb.DBCollectionImpl
 
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
 
InsertRequest(DBObject) - Constructor for class com.mongodb.InsertRequest
 
insertWithCommandProtocol(List<DBObject>, WriteConcern, DBEncoder, DBPort, Boolean) - Method in class com.mongodb.DBCollectionImpl
 
insertWithWriteProtocol(List<DBObject>, WriteConcern, DBEncoder, DBPort, boolean) - Method in class com.mongodb.DBCollectionImpl
 
instantiateObjectClassInstance() - Method in class com.mongodb.DBCollection
 
inUse - Variable in class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
 
InUseConnectionBean - Class in com.mongodb
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
InUseConnectionBean(DBPort, long) - Constructor for class com.mongodb.InUseConnectionBean
Deprecated.
 
inUseConnections - Variable in class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
 
invalidate() - Method in class com.mongodb.BaseCluster.WrappedServer
 
invalidate() - Method in interface com.mongodb.ClusterableServer
Invalidate the description of this server.
invalidate() - Method in class com.mongodb.DefaultServer
 
invalidate() - Method in class com.mongodb.PooledConnectionProvider
 
invalidate() - Method in interface com.mongodb.Server
 
invalidateOldPrimaries(ServerAddress) - Method in class com.mongodb.MultiServerCluster
 
is(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the find({key:value})
isAcknowledged() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
isAcknowledged() - Method in class com.mongodb.BulkWriteResult
Returns true if the write was acknowledged.
isAcknowledged() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
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.
 
isAuthenticated() - Method in class com.mongodb.DB
Deprecated.
Please use MongoClient(java.util.List, java.util.List) to create a client, which will authenticate all connections to server
isAutoConnectRetry() - Method in class com.mongodb.MongoClientOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
isAutoConnectRetry() - Method in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
isBatchSizeTrackingDisabled() - Method in class com.mongodb.DBCursor
Deprecated.
This method is being added temporarily, and will be removed along with DBCursor.getSizes() in the next major release
isCapped() - Method in class com.mongodb.DBCollection
Checks whether this collection is capped
isClosed - Variable in class com.mongodb.BaseCluster
 
isClosed() - Method in class com.mongodb.BaseCluster
 
isClosed() - Method in class com.mongodb.BSONWriter
 
isClosed() - Method in interface com.mongodb.Cluster
Whether all the servers in the cluster are closed or not.
isClosed() - Method in interface com.mongodb.ClusterableServer
Returns true if the server is closed, false otherwise.
isClosed() - Method in interface com.mongodb.Connection
 
isClosed() - Method in class com.mongodb.DBPort
Deprecated.
 
isClosed - Variable in class com.mongodb.DefaultServer
 
isClosed() - Method in class com.mongodb.DefaultServer
 
isClosed - Variable in class com.mongodb.ServerMonitor
 
isCompatibleWithDriver() - Method in class com.mongodb.ClusterDescription
Return whether the cluster is compatible with the driver.
isCompatibleWithDriver() - Method in class com.mongodb.ServerDescription
Return whether the server is compatible with the driver.
isComplete() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
isContainer() - Method in enum com.mongodb.BSONType
 
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.
 
isDeleted() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns true if this node is followed by a marker node, meaning that this node is deleted.
isElementEmpty(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
Returns true if no key/value was inserted into the top level document.
isEmpty() - Method in class com.mongodb.ConcurrentLinkedDeque
Returns true if this collection contains no elements.
isEmpty() - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
isEmpty() - Method in class org.bson.LazyBSONObject
Gets whether this is an empty BSONObject.
isEmpty() - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
isEmpty() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
isEmpty() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
isEmpty() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
isEmpty() - Method in class org.bson.util.ClassMap
As per java.util.Map, returns true if this map contains no key-value mappings.
isEmpty() - Method in class org.bson.util.ComputingMap
 
isEmpty() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
isFsync() - Method in class com.mongodb.MongoOptions
Deprecated.
 
isHeader() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns true if this is a header node.
isJ() - Method in class com.mongodb.MongoOptions
Deprecated.
 
isLazy() - Method in class com.mongodb.WriteResult
Deprecated.
there is no replacement for this method
isLocked() - Method in class com.mongodb.Mongo
Returns true if the database is locked (read-only), false otherwise.
isMarker() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns true if this is a marker node.
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.AcknowledgedBulkWriteResult
 
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.UnacknowledgedBulkWriteResult
 
isMongosConnection() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
isMongosConnection() - Method in class com.mongodb.Mongo
 
isMulti() - Method in class com.mongodb.ModifyRequest
 
isMulti - Variable in class com.mongodb.Remove
 
isMulti() - Method in class com.mongodb.Remove
 
isMulti() - Method in class com.mongodb.RemoveRequest
 
isMulti - Variable in class com.mongodb.Update
 
isMulti() - Method in class com.mongodb.Update
 
isMulti() - Method in class com.mongodb.UpdateRequest
 
isNew() - Method in class org.bson.types.ObjectId
Deprecated.
'new' flag breaks the immutability of the ObjectId class and will be dropped in 3.x versions of the driver
isNotAlreadyPrimary(ServerAddress) - Method in class com.mongodb.MultiServerCluster
 
isNotMasterError() - Method in class com.mongodb.ServerError
Deprecated.
returns true if the error is "not master", which usually happens when doing operation on slave
isOk() - Method in class com.mongodb.ServerDescription
 
isOpen() - Method in interface com.mongodb.DBConnector
Deprecated.
returns true if the connector is in a usable state
isOpen() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
isOrdered() - Method in class com.mongodb.BulkWriteOperation
Returns true if this is building an ordered bulk write request.
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.LazyDBObject
 
isPartialObject() - Method in class com.mongodb.RawDBObject
Deprecated.
 
isPartialObject() - Method in class com.mongodb.ReflectionDBObject
 
isPartialObject() - Method in class org.bson.LazyDBList
Deprecated.
 
isPrimary() - Method in class com.mongodb.ServerDescription
 
isRegistered(String) - Method in class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
isRegistered(String) - Method in interface com.mongodb.util.management.MBeanServer
Deprecated.
 
isRegistered(String) - Method in class com.mongodb.util.management.NullMBeanServer
Deprecated.
 
isReplicaSetMember() - Method in class com.mongodb.ServerDescription
 
isReplicaSetMember(BasicDBObject) - Static method in class com.mongodb.ServerMonitor
 
isSafe() - Method in class com.mongodb.MongoOptions
Deprecated.
 
isSecondary() - Method in class com.mongodb.ServerDescription
 
isServerVersionAtLeast(List<Integer>) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
isShardRouter() - Method in class com.mongodb.ServerDescription
 
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.ReadPreference.PrimaryReadPreference
 
isSlaveOk() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
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.
 
isSpecial() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns true if this is a header, trailer, or marker node.
isStackEmpty() - Method in class org.bson.BasicBSONCallback
Returns whether this is the top level or not
isStalePrimary(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
isStandAlone() - Method in class com.mongodb.ServerDescription
 
isTrailer() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns true if this is a trailer node.
isTrue(String, boolean) - Static method in class org.bson.util.Assertions
Deprecated.
 
isTrueArgument(String, boolean) - Static method in class org.bson.util.Assertions
Deprecated.
 
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.ModifyRequest
 
isUpsert - Variable in class com.mongodb.Update
 
isUpsert() - Method in class com.mongodb.Update
 
isValid(String) - Static method in class org.bson.types.ObjectId
Checks if a string could be an ObjectId.
isValidName(String) - Method in class com.mongodb.DB
 
isVerbose() - Method in class com.mongodb.MapReduceCommand
Gets the verbosity of the MapReduce job.
isWriteConcernError(CommandResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
itcount() - Method in class com.mongodb.DBCursor
For testing only! Iterates cursor and counts objects
itemFactory - Variable in class com.mongodb.ConcurrentPool
 
IterableSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.IterableSerializer
 
iterator() - Method in class com.mongodb.ConcurrentLinkedDeque
Returns an iterator over the elements in this deque in proper sequence.
iterator() - Method in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
iterator() - Method in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
iterator() - Method in class com.mongodb.DBCursor
Creates a copy of this cursor object that can be iterated.
iterator() - Method in interface com.mongodb.Deque
Returns an iterator over the elements in this deque.
iterator() - Method in class com.mongodb.Response
 
iterator() - Method in class com.mongodb.TagSet
 
iterator() - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
iterator() - Method in class com.mongodb.util.WeakBag
Deprecated.
 
iterator() - Method in class org.bson.LazyBSONList
 
iterator() - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
iterator() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
iterator() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
iterator() - Method in class org.bson.util.StringRangeSet
Deprecated.
 

J

j - Variable in class com.mongodb.MongoOptions
Deprecated.
The "j" value of the global WriteConcern.
Java5MongoConnectionPoolMBean - Interface in com.mongodb
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
javaFlag - Variable in enum org.bson.BSON.RegexFlag
 
JavaWrapper(Class) - Constructor for class com.mongodb.ReflectionDBObject.JavaWrapper
 
JMException - Exception in com.mongodb.util.management
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
JMException(Throwable) - Constructor for exception com.mongodb.util.management.JMException
Deprecated.
 
JMXConnectionPoolListener - Class in com.mongodb
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
JMXConnectionPoolListener(String) - Constructor for class com.mongodb.JMXConnectionPoolListener
 
JMXConnectionPoolListener.ClusterIdServerAddressPair - Class in com.mongodb
 
JMXMBeanServer - Class in com.mongodb.util.management.jmx
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
JMXMBeanServer() - Constructor for class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
join(String, Collection<?>) - Static method in class com.mongodb.StringUtils
 
JOURNAL_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 group commit to the journal file on disk.
JOURNALED - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; the write operation waits for the server to group commit to the journal file on disk.
JSON - Class in com.mongodb.util
Helper methods for JSON serialization and de-serialization
JSON() - Constructor for class com.mongodb.util.JSON
 
JSONCallback - Class in com.mongodb.util
Converts JSON to DBObjects and vice versa.
JSONCallback() - Constructor for class com.mongodb.util.JSONCallback
 
JSONParseException - Exception in com.mongodb.util
Exception that is thrown when invalid JSON is encountered by the parser.
JSONParseException(String, int) - Constructor for exception com.mongodb.util.JSONParseException
Creates a new instance.
JSONParseException(String, int, Throwable) - Constructor for exception com.mongodb.util.JSONParseException
Creates a new instance.
JSONParser - Class in com.mongodb.util
Parser for JSON objects.
JSONParser(String) - Constructor for class com.mongodb.util.JSONParser
Create a new parser.
JSONParser(String, BSONCallback) - Constructor for class com.mongodb.util.JSONParser
Create a new parser.
JSONSerializers - Class in com.mongodb.util
Defines static methods for getting ObjectSerializer instances that produce various flavors of JSON.
JSONSerializers() - Constructor for class com.mongodb.util.JSONSerializers
 
JSONSerializers.BinarySerializer - Class in com.mongodb.util
 
JSONSerializers.BinarySerializerBase - Class in com.mongodb.util
 
JSONSerializers.BSONTimestampSerializer - Class in com.mongodb.util
 
JSONSerializers.ByteArraySerializer - Class in com.mongodb.util
 
JSONSerializers.CodeSerializer - Class in com.mongodb.util
 
JSONSerializers.CodeWScopeSerializer - Class in com.mongodb.util
 
JSONSerializers.CompoundObjectSerializer - Class in com.mongodb.util
 
JSONSerializers.DateSerializer - Class in com.mongodb.util
 
JSONSerializers.DBObjectSerializer - Class in com.mongodb.util
 
JSONSerializers.DBRefBaseSerializer - Class in com.mongodb.util
 
JSONSerializers.IterableSerializer - Class in com.mongodb.util
 
JSONSerializers.LegacyBinarySerializer - Class in com.mongodb.util
 
JSONSerializers.LegacyBSONTimestampSerializer - Class in com.mongodb.util
 
JSONSerializers.LegacyDateSerializer - Class in com.mongodb.util
 
JSONSerializers.MapSerializer - Class in com.mongodb.util
 
JSONSerializers.MaxKeySerializer - Class in com.mongodb.util
 
JSONSerializers.MinKeySerializer - Class in com.mongodb.util
 
JSONSerializers.ObjectArraySerializer - Class in com.mongodb.util
 
JSONSerializers.ObjectIdSerializer - Class in com.mongodb.util
 
JSONSerializers.PatternSerializer - Class in com.mongodb.util
 
JSONSerializers.StringSerializer - Class in com.mongodb.util
 
JSONSerializers.SymbolSerializer - Class in com.mongodb.util
 
JSONSerializers.ToStringSerializer - Class in com.mongodb.util
 
JSONSerializers.UUIDSerializer - Class in com.mongodb.util
 

K

KeyCachingLazyBSONObject - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
KeyCachingLazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
KeyCachingLazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
Deprecated.
 
KeyCachingLazyBSONObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
KeyCachingLazyBSONObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
keyf - Variable in class com.mongodb.GroupCommand
 
keys - Variable in class com.mongodb.GroupCommand
 
keySet() - Method in class com.mongodb.gridfs.GridFSFile
 
keySet() - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
keySet() - Method in class com.mongodb.RawDBObject
Deprecated.
 
keySet() - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
Gets all the fields on this object.
keySet() - Method in class com.mongodb.ReflectionDBObject
 
keySet() - Method in interface org.bson.BSONObject
Returns this object's fields' names
keySet() - Method in class org.bson.LazyBSONObject
 
keySet() - Method in class org.bson.types.BasicBSONList
 
keySet() - Method in class org.bson.util.AbstractCopyOnWriteMap.Immutable
 
keySet() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
KeySet() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.KeySet
 
keySet - Variable in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
keySet() - Method in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
keySet() - Method in class org.bson.util.AbstractCopyOnWriteMap.View
 
keySet() - Method in class org.bson.util.ComputingMap
 
killCursor() - Method in class com.mongodb.QueryResultIterator
 
killCursors(ServerAddress, List<Long>) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
killCursors(Mongo, int) - Static method in class com.mongodb.OutMessage
 

L

LANGUAGE - Static variable in class com.mongodb.QueryOperators
 
last - Variable in class com.mongodb.ConcurrentLinkedDeque.CLDIterator
 
lastIndexOf(Object) - Method in class org.bson.LazyBSONList
 
lastUsedAt - Variable in class com.mongodb.DBPort
Deprecated.
 
LatencyMinimizingServerSelector - Class in com.mongodb
 
LatencyMinimizingServerSelector(long, TimeUnit) - Constructor for class com.mongodb.LatencyMinimizingServerSelector
 
LazyBSONCallback - Class in org.bson
A BSONCallback for creation of LazyBSONObject and LazyBSONList instances.
LazyBSONCallback() - Constructor for class org.bson.LazyBSONCallback
 
LazyBSONDecoder - Class in org.bson
implementation of BSONDecoder that creates LazyBSONObject instances
LazyBSONDecoder() - Constructor for class org.bson.LazyBSONDecoder
 
LazyBSONEntryIterator() - Constructor for class org.bson.LazyBSONObject.LazyBSONEntryIterator
 
LazyBSONEntrySet() - Constructor for class org.bson.LazyBSONObject.LazyBSONEntrySet
 
LazyBSONKeyIterator() - Constructor for class org.bson.LazyBSONObject.LazyBSONKeyIterator
 
LazyBSONKeySet() - Constructor for class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
LazyBSONList - Class in org.bson
A LazyBSONObject representing a BSON array.
LazyBSONList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
Construct an instance with the given raw bytes and offset.
LazyBSONList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
Construct an instance with the given raw bytes and offset.
LazyBSONList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
LazyBSONList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
LazyBSONList.LazyBSONListIterator - Class in org.bson
An iterator over the values in a LazyBsonList.
LazyBSONListIterator() - Constructor for class org.bson.LazyBSONList.LazyBSONListIterator
 
LazyBSONObject - Class in org.bson
An immutable BSONObject backed by a byte buffer that lazily provides keys and values on request.
LazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
Construct an instance.
LazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
Construct an instance.
LazyBSONObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
LazyBSONObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
LazyBSONObject.ElementRecord - Class in org.bson
 
LazyBSONObject.LazyBSONEntryIterator - Class in org.bson
 
LazyBSONObject.LazyBSONEntrySet - Class in org.bson
 
LazyBSONObject.LazyBSONKeyIterator - Class in org.bson
 
LazyBSONObject.LazyBSONKeySet - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
LazyBSONObject.ReadOnlySet<E> - Class in org.bson
 
LazyDBCallback - Class in com.mongodb
A BSONCallback for the creation of LazyDBObject and LazyDBList instances.
LazyDBCallback(DBCollection) - Constructor for class com.mongodb.LazyDBCallback
Construct an instance.
LazyDBDecoder - Class in com.mongodb
A decoder for LazyDBObject instances.
LazyDBDecoder() - Constructor for class com.mongodb.LazyDBDecoder
 
LazyDBDecoder.LazyDBDecoderFactory - Class in com.mongodb
 
LazyDBDecoderFactory() - Constructor for class com.mongodb.LazyDBDecoder.LazyDBDecoderFactory
 
LazyDBDecoderFactory() - Constructor for class com.mongodb.LazyWriteableDBDecoder.LazyDBDecoderFactory
Deprecated.
 
LazyDBEncoder - Class in com.mongodb
Encoder that only knows how to encode BSONObject instances of type LazyDBObject.
LazyDBEncoder() - Constructor for class com.mongodb.LazyDBEncoder
 
LazyDBList - Class in com.mongodb
A LazyDBObject representing a BSON array.
LazyDBList(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
Construct an instance with the given raw bytes and offset.
LazyDBList(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
Construct an instance with the given raw bytes and offset.
LazyDBList(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
LazyDBList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
LazyDBList - Class in org.bson
Deprecated.
Please use LazyDBList instead.
LazyDBList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyDBList
Deprecated.
 
LazyDBList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
Deprecated.
 
LazyDBList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
Deprecated.
LazyDBList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
LazyDBObject - Class in com.mongodb
An immutable DBObject backed by a byte buffer that lazily provides keys and values on request.
LazyDBObject(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
Construct an instance.
LazyDBObject(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
Construct an instance.
LazyDBObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
LazyDBObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
LazyWriteableDBCallback - Class in com.mongodb
Deprecated.
This class will be removed in a future release. There is no replacement.
LazyWriteableDBCallback(DBCollection) - Constructor for class com.mongodb.LazyWriteableDBCallback
Deprecated.
Construct an instance.
LazyWriteableDBDecoder - Class in com.mongodb
Deprecated.
This class will be removed in a future release. There is no replacement.
LazyWriteableDBDecoder() - Constructor for class com.mongodb.LazyWriteableDBDecoder
Deprecated.
 
LazyWriteableDBDecoder.LazyDBDecoderFactory - Class in com.mongodb
Deprecated.
 
LazyWriteableDBObject - Class in com.mongodb
Deprecated.
This class will be removed in a future release. There is no replacement.
LazyWriteableDBObject(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
Deprecated.
Construct an instance.
LazyWriteableDBObject(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
Deprecated.
Construct an instance.
LazyWriteableDBObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
LazyWriteableDBObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
LegacyBinarySerializer() - Constructor for class com.mongodb.util.JSONSerializers.LegacyBinarySerializer
 
LegacyBSONTimestampSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.LegacyBSONTimestampSerializer
 
LegacyDateSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.LegacyDateSerializer
 
legacyDefaults() - Method in class com.mongodb.MongoClientOptions.Builder
Sets defaults to be what they are in MongoOptions.
len(int) - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
length() - Method in class com.mongodb.DBCursor
Pulls back all items into an array and returns the number of objects.
length() - Method in class org.bson.types.Binary
Get the length of the data.
lessThan(Object) - Method in class com.mongodb.QueryBuilder
Equivalent to the $lt operand
lessThanEquals(Object) - Method in class com.mongodb.QueryBuilder
Equivalent to the $lte operand
limit(int) - Method in class com.mongodb.DBCursor
Limits the number of elements returned.
Linked(Map<? extends K, ? extends V>, AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.CopyOnWriteMap.Linked
 
listIterator(int) - Method in class org.bson.LazyBSONList
 
listIterator() - Method in class org.bson.LazyBSONList
 
listToSet(List<String>) - Static method in class com.mongodb.ServerMonitor
 
liveViews() - Method in class org.bson.util.CopyOnWriteMap.Builder
Views are live (reflecting concurrent updates) and mutator methods are supported.
localPort - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
localThreshold - Variable in class com.mongodb.MongoClientOptions.Builder
 
localThreshold(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the local threshold.
localThreshold - Variable in class com.mongodb.MongoClientOptions
 
lock - Variable in class com.mongodb.ServerMonitor
 
lock - Variable in class org.bson.util.AbstractCopyOnWriteMap
 
log - Static variable in class com.mongodb.LazyDBCallback
 
log - Static variable in class org.bson.LazyBSONObject
 
LOGGER - Static variable in class com.mongodb.BaseCluster
 
LOGGER - Static variable in class com.mongodb.Bytes
 
LOGGER - Static variable in class com.mongodb.DefaultDBCallback
 
LOGGER - Static variable in class com.mongodb.gridfs.GridFS
 
logger - Static variable in class com.mongodb.Mongo
 
LOGGER - Static variable in class com.mongodb.MongoClientURI
 
LOGGER - Static variable in class com.mongodb.MultiServerCluster
 
LOGGER - Static variable in class com.mongodb.PooledConnectionProvider
 
LOGGER - Static variable in class com.mongodb.ServerMonitor
 
LOGGER - Static variable in class com.mongodb.SingleServerCluster
 
LOGGER - Static variable in class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
LOGGER - Static variable in class org.bson.BSON
 
LOGGER - Static variable in class org.bson.types.ObjectId
 
Loggers - Class in com.mongodb
 
Loggers() - Constructor for class com.mongodb.Loggers
 
logStateChange(ServerDescription, Throwable, ServerDescription, Throwable) - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
 
longHash(String) - Static method in class com.mongodb.util.Hash
Deprecated.
64-bit hash, using longs, in stead of ints, for less collisions, for when it matters.
longHash(String, int, int) - Static method in class com.mongodb.util.Hash
Deprecated.
64-bit hash using longs, starting on index 'start' and including everything before 'end'.
longHashAppend(long, char) - Static method in class com.mongodb.util.Hash
Deprecated.
Adds a character to an existing hash code.
longLowerHash(String) - Static method in class com.mongodb.util.Hash
Deprecated.
Same as longHash(String), using only lower-case values of letters.
longLowerHash(String, int, int) - Static method in class com.mongodb.util.Hash
Deprecated.
Long (64-bit) hash, lower-cased, from [start-end)
longLowerHash(String, int, int, long) - Static method in class com.mongodb.util.Hash
Deprecated.
Long (64-bit) hash, lower-cased, from [start-end)
longLowerHashAppend(long, char) - Static method in class com.mongodb.util.Hash
Deprecated.
Adds the lower-case equivalent of a character to an existing hash code.
LOOKUP_TABLE - Static variable in enum com.mongodb.BSONType
 
lookupServerDescription(DBPort) - Method in class com.mongodb.ServerMonitor
 
lowerCaseHash(String) - Static method in class com.mongodb.util.Hash
Deprecated.
This is an exact copy of the String hashCode() function, aside from the lowercasing.
lowerCaseHash(String, int, int) - Static method in class com.mongodb.util.Hash
Deprecated.
Creates a hash code of a lowercase string from [start-end)
lowerCaseSpaceTrimHash(String) - Static method in class com.mongodb.util.Hash
Deprecated.
This is an exact copy of the String hashCode() function, aside from the lowercasing.
lowerCaseSpaceTrimHash(String, int, int) - Static method in class com.mongodb.util.Hash
Deprecated.
Creates a hash code of a lowercase string from [start-end) ignoring whitespace
LT - Static variable in class com.mongodb.QueryOperators
 
LTE - Static variable in class com.mongodb.QueryOperators
 

M

main(String[]) - Static method in class com.mongodb.gridfs.CLI
 
main(String[]) - Static method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
Command line interface for displaying connection pool stats.
maintenanceFrequency(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maintenanceFrequencyMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maintenanceFrequencyMS - Variable in class com.mongodb.ConnectionPoolSettings
 
maintenanceInitialDelay(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maintenanceInitialDelayMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maintenanceInitialDelayMS - Variable in class com.mongodb.ConnectionPoolSettings
 
maintenanceTask - Variable in class com.mongodb.PooledConnectionProvider
 
MAJOR_VERSION - Static variable in class com.mongodb.Mongo
Deprecated.
MAJORITY - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation.
Majority() - Constructor for class com.mongodb.WriteConcern.Majority
Create a new Majority WriteConcern.
Majority(int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern.Majority
Create a new WriteConcern with the given configuration.
majorityWriteConcern(int, boolean, boolean) - Static method in class com.mongodb.WriteConcern
Create a Majority Write Concern that requires a majority of servers to acknowledge the write.
map(int) - Method in class com.mongodb.IndexMap.HashBased
 
map(int) - Method in class com.mongodb.IndexMap
Return the index that the specified index is mapped to.
map(int) - Method in class com.mongodb.IndexMap.RangeBased
 
map - Variable in class com.mongodb.JMXConnectionPoolListener
 
map - Variable in class org.bson.util.ClassMap
 
map - Variable in class org.bson.util.ComputingMap
 
mapReduce(String, String, String, DBObject) - Method in class com.mongodb.DBCollection
Allows you to run map-reduce aggregation operations over a collection.
mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject) - Method in class com.mongodb.DBCollection
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
mapReduce(MapReduceCommand) - Method in class com.mongodb.DBCollection
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
mapReduce(DBObject) - Method in class com.mongodb.DBCollection
MapReduceCommand - Class in com.mongodb
This class groups the argument for a map/reduce operation and can build the underlying command object
MapReduceCommand(DBCollection, String, String, String, MapReduceCommand.OutputType, DBObject) - Constructor for class com.mongodb.MapReduceCommand
Represents the command for a map reduce operation Runs the command in REPLACE output type to a named collection
MapReduceCommand.OutputType - Enum in com.mongodb
Represents the different options available for outputting the results of a map-reduce operation.
MapReduceOutput - Class in com.mongodb
Represents the result of a map/reduce operation.
MapReduceOutput(DBCollection, DBObject, CommandResult) - Constructor for class com.mongodb.MapReduceOutput
Deprecated.
In the 3.0 version of the driver, this will be constructed only by the driver, and will therefore not have a public constructor.
MapSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.MapSerializer
 
mark - Variable in class com.mongodb.BSONBinaryWriter
 
mark() - Method in class com.mongodb.BSONBinaryWriter
 
Mark() - Constructor for class com.mongodb.BSONBinaryWriter.Mark
 
Mark() - Constructor for class com.mongodb.BSONWriter.Mark
 
mark(int) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
mark(int) - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
markAsPartialObject() - Method in class com.mongodb.BasicDBList
 
markAsPartialObject() - Method in class com.mongodb.BasicDBObject
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
markAsPartialObject() - Method in interface com.mongodb.DBObject
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
markAsPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
 
markAsPartialObject() - Method in class com.mongodb.LazyDBObject
 
markAsPartialObject() - Method in class com.mongodb.RawDBObject
Deprecated.
 
markAsPartialObject() - Method in class com.mongodb.ReflectionDBObject
ReflectionDBObjects can't be partial.
markAsPartialObject() - Method in class org.bson.LazyDBList
Deprecated.
 
markedContext - Variable in class com.mongodb.BSONWriter.Mark
 
markedState - Variable in class com.mongodb.BSONWriter.Mark
 
markSupported() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
markSupported() - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
matchedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
 
matchedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
 
max(DBObject) - Method in class com.mongodb.DBCursor
Specifies an exclusive upper limit for the index to use in a query.
MAX - Static variable in class com.mongodb.QueryOperators
 
MAX_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
Deprecated.
You can calculate max chunkSize with a similar formula Mongo.getMaxBsonObjectSize() - 500*1000. Please ensure that you left enough space for metadata (500kb is enough).
MAX_CODE_POINT - Static variable in class org.bson.io.UTF8Encoding
 
MAX_DISTANCE - Static variable in class com.mongodb.QueryOperators
 
MAX_DRIVER_WIRE_VERSION - Static variable in class com.mongodb.ServerDescription
 
MAX_LENGTH - Static variable in class com.mongodb.Response
 
MAX_OBJECT_SIZE - Static variable in class com.mongodb.Bytes
this size is set low to 4MB, but just serves as safe default
MAX_SCAN - Static variable in class com.mongodb.QueryOperators
 
MAX_STRING - Static variable in class org.bson.BasicBSONDecoder
 
MAX_STRING - Static variable in class org.bson.NewBSONDecoder
Deprecated.
 
maxAutoConnectRetryTime - Variable in class com.mongodb.MongoClientOptions.Builder
 
maxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoClientOptions.Builder
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
maxAutoConnectRetryTime - Variable in class com.mongodb.MongoClientOptions
 
maxAutoConnectRetryTime - Variable in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
maxBatchWriteSize - Variable in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
maxBatchWriteSize - Variable in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
maxConnectionIdleTime(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maxConnectionIdleTime - Variable in class com.mongodb.MongoClientOptions.Builder
 
maxConnectionIdleTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum idle time for a pooled connection.
maxConnectionIdleTime - Variable in class com.mongodb.MongoClientOptions
 
maxConnectionIdleTime - Variable in class com.mongodb.MongoOptions
Deprecated.
 
maxConnectionIdleTimeMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maxConnectionIdleTimeMS - Variable in class com.mongodb.ConnectionPoolSettings
 
maxConnectionLifeTime(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maxConnectionLifeTime - Variable in class com.mongodb.MongoClientOptions.Builder
 
maxConnectionLifeTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum life time for a pooled connection.
maxConnectionLifeTime - Variable in class com.mongodb.MongoClientOptions
 
maxConnectionLifeTime - Variable in class com.mongodb.MongoOptions
Deprecated.
 
maxConnectionLifeTimeMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maxConnectionLifeTimeMS - Variable in class com.mongodb.ConnectionPoolSettings
 
maxDocumentSize - Variable in class com.mongodb.BSONBinaryWriterSettings
 
maxDocumentSize - Variable in class com.mongodb.MessageSettings.Builder
 
maxDocumentSize(int) - Method in class com.mongodb.MessageSettings.Builder
 
maxDocumentSize - Variable in class com.mongodb.MessageSettings
 
maxDocumentSize - Variable in class com.mongodb.ServerDescription.Builder
 
maxDocumentSize(int) - Method in class com.mongodb.ServerDescription.Builder
 
maxDocumentSize - Variable in class com.mongodb.ServerDescription
 
maxDocumentSizeStack - Variable in class com.mongodb.BSONBinaryWriter
 
maxElectionId - Variable in class com.mongodb.MultiServerCluster
 
MAXKEY - Static variable in class org.bson.BSON
 
MaxKey - Class in org.bson.types
Represent the maximum key value regardless of the key's type
MaxKey() - Constructor for class org.bson.types.MaxKey
 
MaxKeySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.MaxKeySerializer
 
maxMessageSize - Variable in class com.mongodb.MessageSettings.Builder
 
maxMessageSize(int) - Method in class com.mongodb.MessageSettings.Builder
 
maxMessageSize - Variable in class com.mongodb.MessageSettings
 
maxMessageSize - Variable in class com.mongodb.ServerDescription.Builder
 
maxMessageSize(int) - Method in class com.mongodb.ServerDescription.Builder
 
maxMessageSize - Variable in class com.mongodb.ServerDescription
 
maxScan(int) - Method in class com.mongodb.DBCursor
Limits the number of documents a cursor will return for a query.
maxSerializationDepth - Variable in class com.mongodb.BSONWriterSettings
 
maxSetVersion - Variable in class com.mongodb.MultiServerCluster
 
maxSize - Variable in class com.mongodb.ConcurrentPool
 
maxSize - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maxSize(int) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maxSize - Variable in class com.mongodb.ConnectionPoolSettings
 
maxTime(long, TimeUnit) - Method in class com.mongodb.AggregationOptions.Builder
Sets the maximum execution time for the aggregation command.
maxTime(long, TimeUnit) - Method in class com.mongodb.DBCursor
Set the maximum execution time for operations on this cursor.
maxTimeMS - Variable in class com.mongodb.AggregationOptions.Builder
 
maxTimeMS - Variable in class com.mongodb.AggregationOptions
 
maxTimeMS - Variable in class com.mongodb.QueryOpBuilder
 
maxWaitQueueSize - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maxWaitQueueSize(int) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maxWaitQueueSize - Variable in class com.mongodb.ConnectionPoolSettings
 
maxWaitTime(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
maxWaitTime - Variable in class com.mongodb.MongoClientOptions.Builder
 
maxWaitTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum time that a thread will block waiting for a connection.
maxWaitTime - Variable in class com.mongodb.MongoClientOptions
 
maxWaitTime - Variable in class com.mongodb.MongoOptions
Deprecated.
The maximum wait time in milliseconds that a thread may wait for a connection to become available.
maxWaitTimeMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
maxWaitTimeMS - Variable in class com.mongodb.ConnectionPoolSettings
 
maxWireVersion - Variable in class com.mongodb.ServerDescription.Builder
 
maxWireVersion(int) - Method in class com.mongodb.ServerDescription.Builder
 
maxWireVersion - Variable in class com.mongodb.ServerDescription
 
maxWriteBatchSize - Variable in class com.mongodb.MessageSettings.Builder
 
maxWriteBatchSize(int) - Method in class com.mongodb.MessageSettings.Builder
 
maxWriteBatchSize - Variable in class com.mongodb.MessageSettings
 
maxWriteBatchSize - Variable in class com.mongodb.ServerDescription.Builder
 
maxWriteBatchSize(int) - Method in class com.mongodb.ServerDescription.Builder
 
maxWriteBatchSize - Variable in class com.mongodb.ServerDescription
 
mBeanConnection - Variable in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
MBeanServer - Interface in com.mongodb.util.management
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
mBeanServer - Static variable in class com.mongodb.util.management.MBeanServerFactory
Deprecated.
 
MBeanServerFactory - Class in com.mongodb.util.management
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
MBeanServerFactory() - Constructor for class com.mongodb.util.management.MBeanServerFactory
Deprecated.
 
md5() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
MECHANISM - Static variable in class com.mongodb.DBPort.PlainAuthenticator
Deprecated.
 
mechanism - Variable in class com.mongodb.MongoCredential
 
mechanismProperties - Variable in class com.mongodb.MongoCredential
 
memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
Deprecated.
 
mergeUpserts(List<BulkWriteUpsert>, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
 
mergeWriteConcernError(WriteConcernError) - Method in class com.mongodb.BulkWriteBatchCombiner
 
mergeWriteErrors(List<BulkWriteError>, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
 
message - Variable in class com.mongodb.BulkWriteError
 
message - Static variable in exception com.mongodb.DBPortPool.SemaphoresOut
Deprecated.
 
message - Variable in class com.mongodb.WriteConcernError
 
MessageSettings - Class in com.mongodb
 
MessageSettings(MessageSettings.Builder) - Constructor for class com.mongodb.MessageSettings
 
MessageSettings.Builder - Class in com.mongodb
 
min(DBObject) - Method in class com.mongodb.DBCursor
Specifies an inclusive lower limit for the index to use in a query.
MIN - Static variable in class com.mongodb.QueryOperators
 
MIN_2_BYTES - Static variable in class org.bson.io.UTF8Encoding
 
MIN_3_BYTES - Static variable in class org.bson.io.UTF8Encoding
 
MIN_4_BYTES - Static variable in class org.bson.io.UTF8Encoding
 
MIN_DRIVER_WIRE_VERSION - Static variable in class com.mongodb.ServerDescription
 
minConnectionsPerHost - Variable in class com.mongodb.MongoClientOptions.Builder
 
minConnectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the minimum number of connections per host.
minConnectionsPerHost - Variable in class com.mongodb.MongoClientOptions
 
minConnectionsPerHost - Variable in class com.mongodb.MongoOptions
Deprecated.
 
minHeartbeatFrequency - Variable in class com.mongodb.MongoClientOptions.Builder
 
minHeartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the minimum heartbeat frequency.
minHeartbeatFrequency - Variable in class com.mongodb.MongoClientOptions
 
MINKEY - Static variable in class org.bson.BSON
 
MinKey - Class in org.bson.types
Represent the minimum key value regardless of the key's type
MinKey() - Constructor for class org.bson.types.MinKey
 
MinKeySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.MinKeySerializer
 
MINOR_VERSION - Static variable in class com.mongodb.Mongo
Deprecated.
minSize - Variable in class com.mongodb.ConnectionPoolSettings.Builder
 
minSize(int) - Method in class com.mongodb.ConnectionPoolSettings.Builder
 
minSize - Variable in class com.mongodb.ConnectionPoolSettings
 
minWireVersion - Variable in class com.mongodb.ServerDescription.Builder
 
minWireVersion(int) - Method in class com.mongodb.ServerDescription.Builder
 
minWireVersion - Variable in class com.mongodb.ServerDescription
 
mod(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $mod operand
MOD - Static variable in class com.mongodb.QueryOperators
 
mode - Variable in class com.mongodb.ClusterSettings.Builder
 
mode(ClusterConnectionMode) - Method in class com.mongodb.ClusterSettings.Builder
Sets the mode for this cluster.
mode - Variable in class com.mongodb.ClusterSettings
 
modifiedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
 
modifiedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
 
ModifyRequest - Class in com.mongodb
 
ModifyRequest(DBObject, boolean, DBObject) - Constructor for class com.mongodb.ModifyRequest
 
mongo - Variable in class com.mongodb.DBPort.Authenticator
Deprecated.
 
mongo - Variable in class com.mongodb.DBPortFactory
 
mongo - Variable in class com.mongodb.DefaultClusterableServerFactory
 
Mongo - Class in com.mongodb
A database connection with internal connection pooling.
Mongo() - Constructor for class com.mongodb.Mongo
Deprecated.
Replaced by MongoClient())
Mongo(String) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(String, MongoOptions) - Constructor for class com.mongodb.Mongo
Mongo(String, int) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(ServerAddress) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Mongo(ServerAddress, ServerAddress) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(ServerAddress, ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(List<ServerAddress>) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(List<ServerAddress>, MongoOptions) - Constructor for class com.mongodb.Mongo
Mongo(MongoURI) - Constructor for class com.mongodb.Mongo
Deprecated.
Mongo(MongoAuthority, MongoOptions) - Constructor for class com.mongodb.Mongo
Creates a Mongo based on an authority and options.
mongo - Variable in class com.mongodb.ServerMonitor
 
Mongo.CursorCleanerThread - Class in com.mongodb
 
Mongo.Holder - Class in com.mongodb
Mongo.Holder can be used as a static place to hold several instances of Mongo.
MongoAuthority - Class in com.mongodb
This class represents the authority to which this client is connecting.
MongoAuthority(ServerAddress, MongoCredentialsStore) - Constructor for class com.mongodb.MongoAuthority
Constructs an instance with a single server address and a store of authentication credentials.
MongoAuthority(List<ServerAddress>, MongoAuthority.Type, MongoCredentialsStore) - Constructor for class com.mongodb.MongoAuthority
Constructs an instance with a list of server addresses, which may either be a list of mongos servers or a list of members of a replica set, and a store of authentication credentials.
MongoAuthority.Type - Enum in com.mongodb
Enumeration of the connection types.
MongoClient - Class in com.mongodb
A MongoDB client with internal connection pooling.
MongoClient() - Constructor for class com.mongodb.MongoClient
Creates an instance based on a (single) mongodb node (localhost, default port).
MongoClient(String) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongodb node.
MongoClient(String, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongodb node (default port).
MongoClient(String, int) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongodb node.
MongoClient(ServerAddress) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongodb node
MongoClient(ServerAddress, List<MongoCredential>) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
MongoClient(ServerAddress, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
MongoClient(ServerAddress, List<MongoCredential>, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
MongoClient(List<ServerAddress>) - Constructor for class com.mongodb.MongoClient
Creates a Mongo based on a list of replica set members or a list of mongos.
MongoClient(List<ServerAddress>, List<MongoCredential>) - Constructor for class com.mongodb.MongoClient
Creates a Mongo based on a list of replica set members or a list of mongos.
MongoClient(List<ServerAddress>, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
Creates a Mongo based on a list of replica set members or a list of mongos.
MongoClient(List<ServerAddress>, List<MongoCredential>, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
Creates a Mongo based on a list of replica set members or a list of mongos.
MongoClient(MongoClientURI) - Constructor for class com.mongodb.MongoClient
Creates a Mongo described by a URI.
MongoClientException - Exception in com.mongodb
A base class for exceptions indicating a failure condition within the driver.
MongoClientException(String) - Constructor for exception com.mongodb.MongoClientException
Constructs a new instance with the given message.
MongoClientOptions - Class in com.mongodb
Various settings to control the behavior of a MongoClient.
MongoClientOptions(MongoClientOptions.Builder) - Constructor for class com.mongodb.MongoClientOptions
 
MongoClientOptions.Builder - Class in com.mongodb
A builder for MongoClientOptions so that MongoClientOptions can be immutable, and to support easier construction through chaining.
MongoClientURI - Class in com.mongodb
Represents a URI which can be used to create a MongoClient instance.
MongoClientURI(String) - Constructor for class com.mongodb.MongoClientURI
Creates a MongoURI from the given string.
MongoClientURI(String, MongoClientOptions.Builder) - Constructor for class com.mongodb.MongoClientURI
Creates a MongoURI from the given URI string, and MongoClientOptions.Builder.
mongoClientURI - Variable in class com.mongodb.MongoURI
 
MongoCommandException - Exception in com.mongodb
An exception indicating that a command sent to a MongoDB server returned a failure.
MongoCommandException(CommandResult) - Constructor for exception com.mongodb.MongoCommandException
 
MongoConnectionPoolMXBean - Interface in com.mongodb
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
MongoCredential - Class in com.mongodb
Represents credentials to authenticate to a mongo server, as well as the source of the credentials and the authentication mechanism to use.
MongoCredential(String, String, String, char[]) - Constructor for class com.mongodb.MongoCredential
Constructs a new instance using the given mechanism, userName, source, and password
MongoCredential(MongoCredential, String, T) - Constructor for class com.mongodb.MongoCredential
Constructs a new instance using the given credential plus an additional mechanism property.
MongoCredentialsStore - Class in com.mongodb
An effectively immutable store of credentials to mongo servers.
MongoCredentialsStore() - Constructor for class com.mongodb.MongoCredentialsStore
Creates an empty store
MongoCredentialsStore(MongoCredential) - Constructor for class com.mongodb.MongoCredentialsStore
Creates a store with a single credentials.
MongoCredentialsStore(Iterable<MongoCredential>) - Constructor for class com.mongodb.MongoCredentialsStore
Creates a store with the list of credentials.
MongoCursorNotFoundException - Exception in com.mongodb
Subclass of MongoException representing a cursor-not-found exception.
MongoCursorNotFoundException(long, ServerAddress) - Constructor for exception com.mongodb.MongoCursorNotFoundException
Construct a new instance.
MONGODB_CR_MECHANISM - Static variable in class com.mongodb.MongoCredential
The MongoDB Challenge Response mechanism.
MONGODB_PREFIX - Static variable in class com.mongodb.MongoURI
The prefix for mongodb URIs.
MONGODB_X509_MECHANISM - Static variable in class com.mongodb.MongoCredential
The MongoDB X.509
MongoException - Exception in com.mongodb
Top level Exception for all Exceptions, server-side or client-side, that come from the driver.
MongoException(String) - Constructor for exception com.mongodb.MongoException
 
MongoException(int, String) - Constructor for exception com.mongodb.MongoException
 
MongoException(String, Throwable) - Constructor for exception com.mongodb.MongoException
 
MongoException(int, String, Throwable) - Constructor for exception com.mongodb.MongoException
 
MongoException(BSONObject) - Constructor for exception com.mongodb.MongoException
Deprecated.
Use one of the other available constructors instead
MongoException.CursorNotFound - Exception in com.mongodb
Deprecated.
This class will be dropped in 3.x versions. Please catch MongoCursorNotFoundException instead.
MongoException.DuplicateKey - Exception in com.mongodb
Deprecated.
This class will be dropped in 3.x versions. Please catch DuplicateKeyException instead.
MongoException.Network - Exception in com.mongodb
Deprecated.
This class will be dropped in 3.x versions. Please catch MongoSocketException instead.
MongoExecutionTimeoutException - Exception in com.mongodb
Exception indicating that the execution of the current operation timed outas a result of the maximum operation time being exceeded.
MongoExecutionTimeoutException(int, String) - Constructor for exception com.mongodb.MongoExecutionTimeoutException
 
MongoIncompatibleDriverException - Exception in com.mongodb
An exception indicating that this version of the driver is not compatible with at least one of the servers that it is currently connected to.
MongoIncompatibleDriverException(String) - Constructor for exception com.mongodb.MongoIncompatibleDriverException
 
MongoInternalException - Exception in com.mongodb
A Mongo exception internal to the driver, not carrying any error code.
MongoInternalException(String) - Constructor for exception com.mongodb.MongoInternalException
 
MongoInternalException(String, Throwable) - Constructor for exception com.mongodb.MongoInternalException
 
MongoInterruptedException - Exception in com.mongodb
A non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt.
MongoInterruptedException(InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
Deprecated.
MongoInterruptedException(String, InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
Deprecated.
MongoNamespace - Class in com.mongodb
 
MongoNamespace(String, String) - Constructor for class com.mongodb.MongoNamespace
 
MongoOptions - Class in com.mongodb
Deprecated.
Replaced by MongoClientOptions.
MongoOptions() - Constructor for class com.mongodb.MongoOptions
Deprecated.
MongoOptions(MongoClientOptions) - Constructor for class com.mongodb.MongoOptions
Deprecated.
Replaced by MongoClientOptions
mongoOptions - Variable in class com.mongodb.MongoURI
 
MongoServerSelectionException - Exception in com.mongodb
Deprecated.
No longer thrown. Catch MongoTimeoutException instead
MongoServerSelectionException(String) - Constructor for exception com.mongodb.MongoServerSelectionException
Deprecated.
 
mongosHAServerSelector - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
MongosHAServerSelector - Class in com.mongodb
 
MongosHAServerSelector() - Constructor for class com.mongodb.MongosHAServerSelector
 
MongoSocketException - Exception in com.mongodb
Subclass of MongoException representing a network-related exception.
MongoSocketException(String, IOException) - Constructor for exception com.mongodb.MongoSocketException
 
MongoSocketException(IOException) - Constructor for exception com.mongodb.MongoSocketException
 
MongoTimeoutException - Exception in com.mongodb
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
MongoTimeoutException(String) - Constructor for exception com.mongodb.MongoTimeoutException
Constructs a new instance with the given message.
MongoURI - Class in com.mongodb
This class has been replaced by MongoClientURI, and the documentation has been moved to that class.
MongoURI(String) - Constructor for class com.mongodb.MongoURI
Deprecated.
MongoURI(MongoClientURI) - Constructor for class com.mongodb.MongoURI
Deprecated.
Replaced by MongoClientURI)
MongoWaitQueueFullException - Exception in com.mongodb
An exception indicating that the queue for waiting for a pooled connection is full.
MongoWaitQueueFullException(String) - Constructor for exception com.mongodb.MongoWaitQueueFullException
Constructs a new instance with the given message.
monitorThread - Variable in class com.mongodb.ServerMonitor
 
MS_DAY - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_HOUR - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_MILLISECOND - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_MINUTE - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_MONTH - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_SECOND - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_WEEK - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
MS_YEAR - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
multi(boolean) - Method in class com.mongodb.Remove
 
multi - Variable in class com.mongodb.RemoveRequest
 
multi(boolean) - Method in class com.mongodb.Update
 
multi - Variable in class com.mongodb.UpdateRequest
 
MultiServerCluster - Class in com.mongodb
This class needs to be final because we are leaking a reference to "this" from the constructor
MultiServerCluster(String, ClusterSettings, ClusterableServerFactory, ClusterListener) - Constructor for class com.mongodb.MultiServerCluster
 
MultiServerCluster.DefaultServerStateListener - Class in com.mongodb
 
MultiServerCluster.ServerTuple - Class in com.mongodb
 
Mutable() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
MyInputStream() - Constructor for class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
MyInputStream(InputStream, int) - Constructor for class com.mongodb.Response.MyInputStream
 
MyOutputStream() - Constructor for class com.mongodb.gridfs.GridFSInputFile.MyOutputStream
 
MyPort() - Constructor for class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
MyRef(T) - Constructor for class com.mongodb.util.WeakBag.MyRef
Deprecated.
 
MyThread() - Constructor for class com.mongodb.util.ThreadPool.MyThread
Deprecated.
 
MyThreadGroup() - Constructor for class com.mongodb.util.ThreadPool.MyThreadGroup
Deprecated.
 

N

name - Variable in class com.mongodb.Tag
 
name - Variable in class org.bson.LazyBSONObject.ElementRecord
 
namespace - Variable in class com.mongodb.DBCollectionImpl
 
namespace - Variable in class com.mongodb.DBPort.ActiveState
Deprecated.
 
namespace - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
NAMESPACE_TEMPLATE - Static variable in class com.mongodb.MongoNamespace
 
NativeAuthenticationHelper - Class in com.mongodb
 
NativeAuthenticationHelper() - Constructor for class com.mongodb.NativeAuthenticationHelper
 
NativeAuthenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.NativeAuthenticator
Deprecated.
 
NE - Static variable in class com.mongodb.QueryOperators
 
near(double, double) - Method in class com.mongodb.QueryBuilder
Equivalent of the $near operand
near(double, double, double) - Method in class com.mongodb.QueryBuilder
Equivalent of the $near operand
NEAR - Static variable in class com.mongodb.QueryOperators
 
NEAR_SPHERE - Static variable in class com.mongodb.QueryOperators
 
nearest() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a primary or a secondary.
nearest(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
nearest(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags.
nearest(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
Deprecated.
use factory methods that take TagSet instead
NearestReadPreference() - Constructor for class com.mongodb.TaggableReadPreference.NearestReadPreference
 
NearestReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference.NearestReadPreference
 
nearSphere(double, double) - Method in class com.mongodb.QueryBuilder
Equivalent of the $nearSphere operand
nearSphere(double, double, double) - Method in class com.mongodb.QueryBuilder
Equivalent of the $nearSphere operand
nestedBindings - Variable in class com.mongodb.DBTCPConnector.PinnedRequestStatus
Deprecated.
 
Network(String, IOException) - Constructor for exception com.mongodb.MongoException.Network
Deprecated.
 
Network(IOException) - Constructor for exception com.mongodb.MongoException.Network
Deprecated.
 
NewBSONDecoder - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
NewBSONDecoder() - Constructor for class org.bson.NewBSONDecoder
Deprecated.
 
newHashMap() - Method in class org.bson.util.CopyOnWriteMap.Builder
 
newHashMap() - Static method in class org.bson.util.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying HashMap.
newHashMap(Map<? extends K, ? extends V>) - Static method in class org.bson.util.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying HashMap using the supplied map as the initial values.
newLinkedMap() - Method in class org.bson.util.CopyOnWriteMap.Builder
 
newLinkedMap() - Static method in class org.bson.util.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying LinkedHashMap.
newLinkedMap(Map<? extends K, ? extends V>) - Static method in class org.bson.util.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying LinkedHashMap using the supplied map as the initial values.
newValue - Variable in class com.mongodb.ChangeEvent
 
next - Variable in class com.mongodb.ConcurrentLinkedDeque.CLDIterator
 
next() - Method in class com.mongodb.ConcurrentLinkedDeque.CLDIterator
 
next() - Method in class com.mongodb.DBCursor
Returns the object the cursor is at and moves the cursor ahead by one.
next() - Method in class com.mongodb.QueryResultIterator
 
next() - Method in class com.mongodb.RawDBObject.ElementIter
Deprecated.
 
next() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
next() - Method in class org.bson.LazyBSONObject.LazyBSONEntryIterator
 
next() - Method in class org.bson.LazyBSONObject.LazyBSONKeyIterator
 
next() - Method in class org.bson.util.AbstractCopyOnWriteMap.UnmodifiableIterator
 
NEXT_CLUSTER_ID - Static variable in class com.mongodb.DBTCPConnector
Deprecated.
 
nextBuffer() - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
nextNonmarker() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns next node, ignoring deletion marker.
NIN - Static variable in class com.mongodb.QueryOperators
 
Node(E, ConcurrentLinkedDeque.Node<E>, ConcurrentLinkedDeque.Node<E>) - Constructor for class com.mongodb.ConcurrentLinkedDeque.Node
Creates a node with given contents.
Node(ConcurrentLinkedDeque.Node<E>) - Constructor for class com.mongodb.ConcurrentLinkedDeque.Node
Creates a marker node with given successor.
NoMoreConnection(String) - Constructor for exception com.mongodb.DBPortPool.NoMoreConnection
Deprecated.
Constructs a new instance with the given message.
NONE - Static variable in class com.mongodb.WriteConcern
Deprecated.
NoOpClusterListener - Class in com.mongodb
 
NoOpClusterListener() - Constructor for class com.mongodb.NoOpClusterListener
 
NoOpConnectionPoolListener - Class in com.mongodb
 
NoOpConnectionPoolListener() - Constructor for class com.mongodb.NoOpConnectionPoolListener
 
NOR - Static variable in class com.mongodb.QueryOperators
 
NORMAL - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will return as soon as the message is written to the socket.
nospaceLowerHash(String, int, int) - Static method in class com.mongodb.util.Hash
Deprecated.
Creates a hash code of a lowercase string with whitespace removed from [start-end)
not() - Method in class com.mongodb.QueryBuilder
Equivalent to $not meta operator.
NOT - Static variable in class com.mongodb.QueryOperators
 
notEquals(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $ne operand
notIn(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $nin operand
notNew() - Method in class org.bson.types.ObjectId
Deprecated.
'new' flag breaks the immutability of the ObjectId class and will be dropped in 3.x versions of the driver
notNull(String, T) - Static method in class org.bson.util.Assertions
Deprecated.
 
NotThreadSafe - Annotation Type in org.bson.util.annotations
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
NULL - Static variable in class org.bson.BSON
 
NullArgumentException(String) - Constructor for exception org.bson.util.Assertions.NullArgumentException
Deprecated.
 
NullMBeanServer - Class in com.mongodb.util.management
Deprecated.
This class will be removed in 3.x versions of the driver, so please remove it from your compile time dependencies.
NullMBeanServer() - Constructor for class com.mongodb.util.management.NullMBeanServer
Deprecated.
 
NullObject() - Constructor for class com.mongodb.QueryBuilder.NullObject
 
NUM_CURSORS_BEFORE_KILL - Static variable in class com.mongodb.DBApiLayer
Deprecated.
The maximum number of cursors allowed
NUM_CURSORS_PER_BATCH - Static variable in class com.mongodb.DBApiLayer
Deprecated.
 
NUMBER - Static variable in class org.bson.BSON
 
NUMBER_INT - Static variable in class org.bson.BSON
 
NUMBER_LONG - Static variable in class org.bson.BSON
 
numChunks() - Method in class com.mongodb.gridfs.GridFSFile
Returns the number of chunks that store the file data.
numCursors - Variable in class com.mongodb.ParallelScanOptions.Builder
 
numCursors(int) - Method in class com.mongodb.ParallelScanOptions.Builder
Set the requested number of cursors to iterate in parallel.
numCursors - Variable in class com.mongodb.ParallelScanOptions
 
numDocuments - Variable in class com.mongodb.DBPort.ActiveState
Deprecated.
 
numDocuments - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
numGetMores() - Method in class com.mongodb.DBCursor
Deprecated.
there is no replacement for this method
numGetMores() - Method in class com.mongodb.QueryResultIterator
 
numRead() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
numSeen() - Method in class com.mongodb.DBCursor
Returns the number of objects through which the cursor has iterated.
NUMSTR_LEN - Static variable in class org.bson.util.StringRangeSet
Deprecated.
 
NUMSTRS - Static variable in class org.bson.util.StringRangeSet
Deprecated.
 
numThreads() - Method in class com.mongodb.util.ThreadPool
Deprecated.
 

O

OBJECT - Static variable in class org.bson.BSON
 
ObjectArraySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.ObjectArraySerializer
 
objectDone() - Method in class com.mongodb.DefaultDBCallback
 
objectDone() - Method in class com.mongodb.util.JSONCallback
 
objectDone() - Method in class org.bson.BasicBSONCallback
 
objectDone() - Method in interface org.bson.BSONCallback
Called at the end of the document/array, and returns this object.
objectDone() - Method in class org.bson.EmptyBSONCallback
 
ObjectId - Class in org.bson.types
A globally unique identifier for objects.
ObjectId(Date) - Constructor for class org.bson.types.ObjectId
Constructs a new instance using the given date.
ObjectId(Date, int) - Constructor for class org.bson.types.ObjectId
Constructs a new instances using the given date and counter.
ObjectId(Date, int, int) - Constructor for class org.bson.types.ObjectId
Deprecated.
ObjectId's constructed this way do not conform to the ObjectId specification. Please use ObjectId(byte[]) or ObjectId.createFromLegacyFormat(int, int, int) instead.
ObjectId(String) - Constructor for class org.bson.types.ObjectId
Creates a new instance from a string.
ObjectId(String, boolean) - Constructor for class org.bson.types.ObjectId
Deprecated.
'babble' format is deprecated. Please use ObjectId(String) instead.
ObjectId(byte[]) - Constructor for class org.bson.types.ObjectId
Constructs an ObjectId given its 12-byte binary representation.
ObjectId(int, int, int) - Constructor for class org.bson.types.ObjectId
Deprecated.
ObjectId's constructed this way do not conform to the ObjectId specification. Please use ObjectId(byte[]) or ObjectId.createFromLegacyFormat(int, int, int) instead.
ObjectId() - Constructor for class org.bson.types.ObjectId
Create a new object id.
ObjectIdSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.ObjectIdSerializer
 
ObjectSerializer - Interface in com.mongodb.util
Interface describing methods for serializing an object to a string.
objectStart(boolean, String) - Method in class com.mongodb.DefaultDBCallback
Deprecated.
instead, use BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array is false
objectStart(boolean, String) - Method in class com.mongodb.util.JSONCallback
Deprecated.
instead, use BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array is false
objectStart() - Method in class org.bson.BasicBSONCallback
 
objectStart(boolean) - Method in class org.bson.BasicBSONCallback
Deprecated.
instead, use BasicBSONCallback.arrayStart() if array is true, and BasicBSONCallback.objectStart() if if array is false
objectStart(String) - Method in class org.bson.BasicBSONCallback
 
objectStart(boolean, String) - Method in class org.bson.BasicBSONCallback
Deprecated.
instead, use BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array is false
objectStart() - Method in interface org.bson.BSONCallback
Signals the start of a BSON document, which usually maps onto some Java object.
objectStart(String) - Method in interface org.bson.BSONCallback
Signals the start of a BSON document, which usually maps onto some Java object.
objectStart(boolean) - Method in interface org.bson.BSONCallback
Deprecated.
instead, use BSONCallback.arrayStart() if array is true, and BSONCallback.objectStart() if array is false
objectStart() - Method in class org.bson.EmptyBSONCallback
 
objectStart(String) - Method in class org.bson.EmptyBSONCallback
 
objectStart(boolean) - Method in class org.bson.EmptyBSONCallback
Deprecated.
instead, use EmptyBSONCallback.arrayStart() if array is true, and EmptyBSONCallback.objectStart() if array is false
offer(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Inserts the specified element at the tail of this queue.
offer(E) - Method in interface com.mongodb.Deque
Inserts the specified element into the queue represented by this deque unless it would violate capacity restrictions.
offer(T) - Method in class com.mongodb.util.ThreadPool
Deprecated.
Adds a new object to the pool, if possible.
offerFirst(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Inserts the specified element at the front of this deque.
offerFirst(E) - Method in interface com.mongodb.Deque
Inserts the specified element to the front this deque unless it would violate capacity restrictions.
offerLast(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Inserts the specified element at the end of this deque.
offerLast(E) - Method in interface com.mongodb.Deque
Inserts the specified element to the end of this deque unless it would violate capacity restrictions.
offset - Variable in class org.bson.LazyBSONObject.ElementRecord
 
offset - Variable in class org.bson.LazyBSONObject.LazyBSONEntryIterator
 
offset - Variable in class org.bson.LazyBSONObject.LazyBSONKeyIterator
 
OID - Static variable in class org.bson.BSON
 
ok() - Method in class com.mongodb.CommandResult
Gets the "ok" field, which is whether this command executed correctly or not.
ok() - Method in class com.mongodb.ReflectionDBObject.FieldInfo
 
ok - Variable in class com.mongodb.ServerDescription.Builder
 
ok(boolean) - Method in class com.mongodb.ServerDescription.Builder
 
ok - Variable in class com.mongodb.ServerDescription
 
ok(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
Deprecated.
Checks that the given string builder is within the size limit.
ok(T) - Method in class org.bson.util.SimplePool
Deprecated.
 
oldValue - Variable in class com.mongodb.ChangeEvent
 
onChange(ChangeEvent<ServerDescription>) - Method in class com.mongodb.MultiServerCluster
 
one() - Method in class com.mongodb.DBCursor
Returns the first document that matches the query.
ONE_BYTE_STRINGS - Static variable in class org.bson.BasicBSONDecoder
 
opCode - Variable in class com.mongodb.DBPort.ActiveState
Deprecated.
 
opCode - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
OpCode(int) - Constructor for enum com.mongodb.OutMessage.OpCode
 
opCode - Variable in class com.mongodb.RequestMessage
 
OpCode(int) - Constructor for enum com.mongodb.RequestMessage.OpCode
 
openedAt - Variable in class com.mongodb.DBPort
Deprecated.
 
OptionalFinalizer(DBApiLayer, ServerAddress) - Constructor for class com.mongodb.QueryResultIterator.OptionalFinalizer
 
OptionHolder(Bytes.OptionHolder) - Constructor for class com.mongodb.Bytes.OptionHolder
 
OptionMap - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
OptionMap() - Constructor for class com.mongodb.util.OptionMap
Deprecated.
 
options - Variable in class com.mongodb.MongoClient
 
options - Variable in class com.mongodb.MongoClientURI
 
or(DBObject...) - Method in class com.mongodb.QueryBuilder
Equivalent to an $or operand
OR - Static variable in class com.mongodb.QueryOperators
 
ORDER - Static variable in class com.mongodb.Bytes
Little-endian
ORDER_BY - Static variable in class com.mongodb.QueryOperators
 
orderBy - Variable in class com.mongodb.QueryOpBuilder
 
ordered - Variable in class com.mongodb.BulkWriteBatchCombiner
 
ordered - Variable in class com.mongodb.BulkWriteOperation
 
OrderedRunGenerator(List<WriteRequest>, Boolean, WriteConcern, DBEncoder, DBPort) - Constructor for class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
org.bson - package org.bson
Contains the base BSON classes and Encoder/Decoder.
org.bson.io - package org.bson.io
Contains classes implementing I/O operations used by BSON objects.
org.bson.types - package org.bson.types
Contains classes implementing various BSON types.
org.bson.util - package org.bson.util
Misc utils used by BSON.
org.bson.util.annotations - package org.bson.util.annotations
 
OutMessage - Class in com.mongodb
 
OutMessage(Mongo, OutMessage.OpCode) - Constructor for class com.mongodb.OutMessage
 
OutMessage(DBCollection, OutMessage.OpCode) - Constructor for class com.mongodb.OutMessage
 
OutMessage(DBCollection, OutMessage.OpCode, DBEncoder) - Constructor for class com.mongodb.OutMessage
 
OutMessage(DBCollection, Mongo, OutMessage.OpCode, DBEncoder) - Constructor for class com.mongodb.OutMessage
 
OutMessage(DBCollection, OutMessage.OpCode, DBEncoder, DBObject) - Constructor for class com.mongodb.OutMessage
 
OutMessage(DBCollection, DBEncoder, DBObject, int, ReadPreference, int) - Constructor for class com.mongodb.OutMessage
 
OutMessage(DBCollection, Mongo, OutMessage.OpCode, DBEncoder, DBObject, int, ReadPreference, int) - Constructor for class com.mongodb.OutMessage
 
OutMessage.OpCode - Enum in com.mongodb
 
OutputBuffer - Class in org.bson.io
An abstract base class for classes implementing BsonOutput.
OutputBuffer() - Constructor for class org.bson.io.OutputBuffer
 
outputMode - Variable in class com.mongodb.AggregationOptions.Builder
 
outputMode(AggregationOptions.OutputMode) - Method in class com.mongodb.AggregationOptions.Builder
The mode of output for this configuration.
outputMode - Variable in class com.mongodb.AggregationOptions
 
OutputMode() - Constructor for enum com.mongodb.AggregationOptions.OutputMode
 
OutputType() - Constructor for enum com.mongodb.MapReduceCommand.OutputType
 

P

PAD - Static variable in class com.mongodb.util.Base64Codec
Deprecated.
padding char
parallelScan(ParallelScanOptions) - Method in class com.mongodb.DBCollection
Return a list of cursors over the collection that can be used to scan it in parallel.
parallelScan(ParallelScanOptions) - Method in class com.mongodb.DBCollectionImpl
 
ParallelScanOptions - Class in com.mongodb
The options to use for a parallel collection scan.
ParallelScanOptions(ParallelScanOptions.Builder) - Constructor for class com.mongodb.ParallelScanOptions
 
ParallelScanOptions.Builder - Class in com.mongodb
A builder for the options
parentContext - Variable in class com.mongodb.BSONWriter.Context
 
parse(BSONObject) - Static method in exception com.mongodb.MongoException
 
parse(String) - Static method in class com.mongodb.util.JSON
Parses a JSON string and returns a corresponding Java object.
parse(String, BSONCallback) - Static method in class com.mongodb.util.JSON
Parses a JSON string and constructs a corresponding Java object by calling the methods of a BSONCallback during parsing.
parse() - Method in class com.mongodb.util.JSONParser
Parse an unknown type.
parse(String) - Method in class com.mongodb.util.JSONParser
Parse an unknown type.
parseArray() - Method in class com.mongodb.util.JSONParser
Parses the next array.
parseArray(String) - Method in class com.mongodb.util.JSONParser
Parses the next array.
parseBoolean(String, boolean) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Turns a string into a boolean value and returns a default value if unsuccessful.
parseExponent() - Method in class com.mongodb.util.JSONParser
Advances the pointer through the exponent.
parseFraction() - Method in class com.mongodb.util.JSONParser
Advances the pointed through .digits.
parseIfInt(String, int) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
 
parseInt(String, int) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Turns a string into an int and returns a default value if unsuccessful.
parseInt(String, int, int[], boolean) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Turns a string into an int and returns a default value if unsuccessful.
parseIntRadix(String, int) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Turns a string into an int using a given radix.
parseNumber() - Method in class com.mongodb.util.JSONParser
Parses a number.
parseNumber(String, Number) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Turns a string into a Number and returns a default value if unsuccessful.
parseObject() - Method in class com.mongodb.util.JSONParser
Parses an object for the form {} and { members }.
parseObject(String) - Method in class com.mongodb.util.JSONParser
Parses an object for the form {} and { members }.
parseOptions(String) - Method in class com.mongodb.MongoClientURI
 
parseServerResponse(String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
parseStrict(String) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Use Java's "strict parsing" methods Integer.parseInt and Double.parseDouble to parse s "strictly".
parseString(boolean) - Method in class com.mongodb.util.JSONParser
Parses a string.
passives - Variable in class com.mongodb.ServerDescription.Builder
 
passives(Set<String>) - Method in class com.mongodb.ServerDescription.Builder
 
passives - Variable in class com.mongodb.ServerDescription
 
password - Variable in class com.mongodb.MongoCredential
 
pastMaxIdleTime(Connection) - Method in class com.mongodb.PooledConnectionProvider
 
pastMaxLifeTime(Connection) - Method in class com.mongodb.PooledConnectionProvider
 
PatternSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.PatternSerializer
 
peek() - Method in class com.mongodb.ConcurrentLinkedDeque
 
peek() - Method in interface com.mongodb.Deque
Retrieves, but does not remove, the head of the queue represented by this deque, returning null if this deque is empty.
peek() - Method in class com.mongodb.util.FastStack
Deprecated.
 
peekFirst() - Method in class com.mongodb.ConcurrentLinkedDeque
 
peekFirst() - Method in interface com.mongodb.Deque
Retrieves, but does not remove, the first element of this deque, returning null if this deque is empty.
peekLast() - Method in class com.mongodb.ConcurrentLinkedDeque
 
peekLast() - Method in interface com.mongodb.Deque
Retrieves, but does not remove, the last element of this deque, returning null if this deque is empty.
permitAcquired(long) - Method in class com.mongodb.util.SimplePool
Deprecated.
 
permits - Variable in class com.mongodb.ConcurrentPool
 
phase - Variable in class com.mongodb.BaseCluster
 
pick(int, boolean) - Method in class com.mongodb.util.SimplePool
Deprecated.
Pick a member of _avail.
PinnedRequestStatus() - Constructor for class com.mongodb.DBTCPConnector.PinnedRequestStatus
Deprecated.
 
pinnedRequestStatusThreadLocal - Variable in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
pipe(OutputStream) - Method in class com.mongodb.OutMessage
 
pipe(OutputStream) - Method in class org.bson.io.BasicOutputBuffer
 
pipe(DataOutput) - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
pipe(OutputStream) - Method in class org.bson.io.OutputBuffer
Pipe the contents of this output buffer into the given output stream
pipe(OutputStream) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
pipe(OutputStream) - Method in class org.bson.LazyBSONObject
Pipe the raw bytes into the given output stream.
PLAIN_MECHANISM - Static variable in class com.mongodb.MongoCredential
The PLAIN mechanism.
PlainAuthenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.PlainAuthenticator
Deprecated.
 
poll() - Method in class com.mongodb.ConcurrentLinkedDeque
 
poll() - Method in interface com.mongodb.Deque
Retrieves and removes the head of the queue represented by this deque, or null if this deque is empty.
pollFirst() - Method in class com.mongodb.ConcurrentLinkedDeque
 
pollFirst() - Method in interface com.mongodb.Deque
Retrieves and removes the first element of this deque, or null if this deque is empty.
pollLast() - Method in class com.mongodb.ConcurrentLinkedDeque
 
pollLast() - Method in interface com.mongodb.Deque
Retrieves and removes the last element of this deque, or null if this deque is empty.
POLYGON - Static variable in class com.mongodb.QueryOperators
 
pool - Variable in class com.mongodb.PooledConnectionProvider
 
PooledConnectionProvider - Class in com.mongodb
 
PooledConnectionProvider(String, ServerAddress, ConnectionFactory, ConnectionPoolSettings, ConnectionPoolListener) - Constructor for class com.mongodb.PooledConnectionProvider
 
PooledConnectionProvider.ConnectionItemFactory - Class in com.mongodb
 
PoolOutputBuffer - Class in org.bson.io
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
PoolOutputBuffer() - Constructor for class org.bson.io.PoolOutputBuffer
Deprecated.
 
PoolOutputBuffer.Position - Class in org.bson.io
Deprecated.
 
pop() - Method in class com.mongodb.BasicDBObjectBuilder
Pops the active object, which means that the parent object becomes active
pop() - Method in class com.mongodb.ConcurrentLinkedDeque
 
pop() - Method in interface com.mongodb.Deque
Pops an element from the stack represented by this deque.
pop() - Method in class com.mongodb.util.FastStack
Deprecated.
 
popMaxDocumentSize() - Method in class com.mongodb.BSONBinaryWriter
 
port - Variable in class com.mongodb.DBCollectionImpl.Run.RunExecutor
 
PORT - Static variable in class com.mongodb.DBPort
Deprecated.
the default port
portIsAPrimary(DBPort) - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
pos - Variable in exception com.mongodb.util.JSONParseException
 
pos - Variable in class com.mongodb.util.JSONParser
 
pos() - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
pos - Variable in class org.bson.LazyBSONList.LazyBSONListIterator
 
position - Variable in class com.mongodb.BSONBinaryWriter.Mark
 
position() - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
position(int) - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
Position() - Constructor for enum com.mongodb.tools.ConnectionPoolStat.Position
Deprecated.
 
position(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
Position() - Constructor for class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
predecessor() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns the previous non-deleted node, patching up pointers as needed.
PREFIX - Static variable in class com.mongodb.Loggers
The prefix for all logger names.
PREFIX - Static variable in class com.mongodb.MongoClientURI
 
prepare() - Method in class com.mongodb.OutMessage
 
prepareAggregationCommand(List<DBObject>, AggregationOptions, ServerVersion) - Method in class com.mongodb.DBCollection
 
prepareFindAndModifyCommand(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean, Boolean, long, TimeUnit, WriteConcern, ServerVersion) - Method in class com.mongodb.DBCollectionImpl
 
prepend(E) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Tries to insert a node holding element as predecessor, failing if no live predecessor can be found to link to.
prepUserName(String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
prev - Variable in class com.mongodb.ConcurrentLinkedDeque.Node
 
PRIMARY - Static variable in class com.mongodb.ReadPreference
Deprecated.
As of release 2.9.0, replaced by ReadPreference.primary()
primary() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces read to the primary.
primary - Variable in class com.mongodb.ServerDescription.Builder
 
primary(String) - Method in class com.mongodb.ServerDescription.Builder
 
primary - Variable in class com.mongodb.ServerDescription
 
primaryPreferred() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
primaryPreferred(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
primaryPreferred(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags.
primaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
Deprecated.
use factory methods that take TagSet instead
PrimaryPreferredReadPreference() - Constructor for class com.mongodb.TaggableReadPreference.PrimaryPreferredReadPreference
 
PrimaryPreferredReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference.PrimaryPreferredReadPreference
 
PrimaryReadPreference() - Constructor for class com.mongodb.ReadPreference.PrimaryReadPreference
 
print(PrintWriter) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printAttribute(String, ObjectName, PrintWriter) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printAttribute(String, Object, PrintWriter) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printAttribute(String, Object, PrintWriter, ConnectionPoolStat.Position, ConnectionPoolStat.StringType) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printCompositeDataAttribute(String, CompositeData, PrintWriter) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printCompositeDataAttribute(String, CompositeData, PrintWriter, ConnectionPoolStat.Position) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printCompositeDataAttribute(String, CompositeData, PrintWriter, ConnectionPoolStat.StringType) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printCompositeDataAttribute(String, CompositeData, PrintWriter, ConnectionPoolStat.Position, ConnectionPoolStat.StringType) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printErrorAndUsageAndExit(String) - Static method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printInUseConnections(CompositeData, PrintWriter) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printSimpleStatistics(PrintWriter, CompositeData) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printStackTrace() - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
Creates an prints a stack trace
printStatistics(PrintWriter, ObjectName) - Method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
printTags() - Method in class com.mongodb.TaggableReadPreference
 
printUsage() - Static method in class com.mongodb.gridfs.CLI
Dumps usage info to stdout
printUsage() - Static method in class com.mongodb.tools.ConnectionPoolStat
Deprecated.
 
provider - Variable in class com.mongodb.DBPort
Deprecated.
 
prune() - Method in class com.mongodb.ConcurrentPool
 
publishDescription(ServerDescription) - Method in class com.mongodb.SingleServerCluster
 
push(String) - Method in class com.mongodb.BasicDBObjectBuilder
Creates an new empty object and inserts it into the current object with the given key.
push(E) - Method in class com.mongodb.ConcurrentLinkedDeque
 
push(E) - Method in interface com.mongodb.Deque
Pushes an element onto the stack represented by this deque.
push(T) - Method in class com.mongodb.util.FastStack
Deprecated.
 
pushMaxDocumentSize(int) - Method in class com.mongodb.BSONBinaryWriter
 
pushStatus(String) - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
 
pushStatus(Thread, String) - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
 
put(String, Object) - Method in class com.mongodb.gridfs.GridFSFile
 
put(int, byte) - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
put(ByteBuffer) - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
put(String, Object) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
put(String) - Method in class com.mongodb.QueryBuilder
Adds a new key to the query if not present yet.
put(String, Object) - Method in class com.mongodb.RawDBObject
Deprecated.
Always throws UnsupportedOperationException.
put(String, Object) - Method in class com.mongodb.ReflectionDBObject
 
put(String, Object) - Method in class org.bson.BasicBSONObject
 
put(String, Object) - Method in interface org.bson.BSONObject
Sets a name/value pair in this object.
put(String, Object) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
put(String, Object) - Method in class org.bson.types.BasicBSONList
Puts a value at an index.
put(int, Object) - Method in class org.bson.types.BasicBSONList
Puts a value at an index.
put(K, V) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
put(Class<?>, T) - Method in class org.bson.util.ClassMap
As per java.util.Map, associates the specified value with the specified key in this map.
put(K, V) - Method in class org.bson.util.ComputingMap
 
putAll(BSONObject) - Method in class com.mongodb.gridfs.GridFSFile
 
putAll(Map) - Method in class com.mongodb.gridfs.GridFSFile
 
putAll(BSONObject) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
putAll(Map) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
putAll(BSONObject) - Method in class com.mongodb.RawDBObject
Deprecated.
Always throws UnsupportedOperationException.
putAll(Map) - Method in class com.mongodb.RawDBObject
Deprecated.
Always throws UnsupportedOperationException.
putAll(Map) - Method in class com.mongodb.ReflectionDBObject
 
putAll(BSONObject) - Method in class com.mongodb.ReflectionDBObject
 
putAll(Map) - Method in class org.bson.BasicBSONObject
 
putAll(BSONObject) - Method in class org.bson.BasicBSONObject
 
putAll(BSONObject) - Method in interface org.bson.BSONObject
Sets all key/value pairs from an object into this object
putAll(Map) - Method in interface org.bson.BSONObject
Sets all key/value pairs from a map into this object
putAll(BSONObject) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
putAll(Map) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
putAll(Map) - Method in class org.bson.types.BasicBSONList
 
putAll(BSONObject) - Method in class org.bson.types.BasicBSONList
 
putAll(Map<? extends K, ? extends V>) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
putAll(Map<? extends K, ? extends V>) - Method in class org.bson.util.ComputingMap
 
putArray(String, Object) - Method in class org.bson.BasicBSONEncoder
 
putBinary(String, byte[]) - Method in class org.bson.BasicBSONEncoder
Encodes a byte array field
putBinary(String, Binary) - Method in class org.bson.BasicBSONEncoder
Encodes a Binary field
putBinary(String, int, byte[]) - Method in class org.bson.BasicBSONEncoder
 
putBoolean(String, Boolean) - Method in class org.bson.BasicBSONEncoder
Encodes a field with a Boolean or boolean value
putCode(String, Code) - Method in class org.bson.BasicBSONEncoder
Encodes a field to a JAVASCRIPT value.
putCodeWScope(String, CodeWScope) - Method in class org.bson.BasicBSONEncoder
Encodes a field to a JAVASCRIPT_WITH_SCOPE value.
putDate(String, Date) - Method in class org.bson.BasicBSONEncoder
Encodes a field with data and time value.
putDBPointer(String, String, ObjectId) - Method in class com.mongodb.DefaultDBEncoder
Deprecated.
Please see DBPointer. You can override DefaultDBEncoder.putDBRef(String, DBRefBase) if you need a specific behaviour while decoding database references.
putDBRef(String, DBRefBase) - Method in class com.mongodb.DefaultDBEncoder
Deals with encoding database references.
putIfAbsent(K, V) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
putIfAbsent(K, V) - Method in class org.bson.util.ComputingMap
 
putIterable(String, Iterable) - Method in class org.bson.BasicBSONEncoder
 
putMap(String, Map) - Method in class org.bson.BasicBSONEncoder
 
putMaxKey(String) - Method in class org.bson.BasicBSONEncoder
 
putMinKey(String) - Method in class org.bson.BasicBSONEncoder
 
putNull(String) - Method in class org.bson.BasicBSONEncoder
Encodes a null value
putNumber(String, Number) - Method in class org.bson.BasicBSONEncoder
Encodes any number field.
putObject(BSONObject) - Method in class com.mongodb.OutMessage
 
putObject(BSONObject) - Method in class org.bson.BasicBSONEncoder
Encodes a BSONObject.
putObject(String, BSONObject) - Method in class org.bson.BasicBSONEncoder
This is really for embedded objects
putObject(BSONObject) - Method in interface org.bson.BSONEncoder
Encoder and write a document into underlying buffer.
putObjectId(String, ObjectId) - Method in class org.bson.BasicBSONEncoder
Encodes an ObjectId field to an OBJECT_ID.
putPattern(String, Pattern) - Method in class org.bson.BasicBSONEncoder
 
putSpecial(String, Object) - Method in class com.mongodb.DefaultDBEncoder
 
putSpecial(String, Object) - Method in class org.bson.BasicBSONEncoder
Special values are not encoded into documents.
putString(String, String) - Method in class org.bson.BasicBSONEncoder
Encodes a String field
putSymbol(String, Symbol) - Method in class org.bson.BasicBSONEncoder
Encodes a Symbol field
putTimestamp(String, BSONTimestamp) - Method in class org.bson.BasicBSONEncoder
Encodes a BSON timestamp
putUndefined(String) - Method in class org.bson.BasicBSONEncoder
Encodes an undefined value
putUUID(String, UUID) - Method in class org.bson.BasicBSONEncoder
Encodes a field with a UUID value.

Q

query - Variable in class com.mongodb.BulkUpdateRequestBuilder
 
query - Variable in class com.mongodb.BulkWriteRequestBuilder
 
query - Variable in class com.mongodb.DBPort.ActiveState
Deprecated.
 
query - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
query - Variable in class com.mongodb.ModifyRequest
 
query(DBCollection, int, int, int, DBObject, DBObject, int) - Static method in class com.mongodb.OutMessage
 
query(DBCollection, int, int, int, DBObject, DBObject, ReadPreference, DBEncoder) - Static method in class com.mongodb.OutMessage
 
query(DBCollection, int, int, int, DBObject, DBObject, ReadPreference, DBEncoder, int) - Static method in class com.mongodb.OutMessage
 
query - Variable in class com.mongodb.QueryOpBuilder
 
query - Variable in class com.mongodb.RemoveRequest
 
QUERY_DOCUMENT_HEADROOM - Static variable in class com.mongodb.DBCollectionImpl
 
QueryBuilder - Class in com.mongodb
Utility for creating DBObject queries
QueryBuilder() - Constructor for class com.mongodb.QueryBuilder
Creates a builder with an empty query
QueryBuilder.NullObject - Class in com.mongodb
 
QueryBuilder.QueryBuilderException - Exception in com.mongodb
 
QueryBuilderException(String) - Constructor for exception com.mongodb.QueryBuilder.QueryBuilderException
 
queryEncoder - Variable in class com.mongodb.DeleteCommandMessage
 
QueryOpBuilder - Class in com.mongodb
Utility for constructing Query operation command with query, orderby, hint, explain, snapshot.
QueryOpBuilder() - Constructor for class com.mongodb.QueryOpBuilder
 
QueryOperators - Class in com.mongodb
MongoDB keywords for various query operations.
QueryOperators() - Constructor for class com.mongodb.QueryOperators
Deprecated.
Utility classes should not have a public or default constructor.
QUERYOPTION_AWAITDATA - Static variable in class com.mongodb.Bytes
Use with TailableCursor.
QUERYOPTION_EXHAUST - Static variable in class com.mongodb.Bytes
Stream the data down full blast in multiple "more" packages, on the assumption that the client will fully read all data queried.
QUERYOPTION_NOTIMEOUT - Static variable in class com.mongodb.Bytes
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
QUERYOPTION_OPLOGREPLAY - Static variable in class com.mongodb.Bytes
Internal replication use only - driver should not set
QUERYOPTION_PARTIAL - Static variable in class com.mongodb.Bytes
Use with sharding (mongos).
QUERYOPTION_SLAVEOK - Static variable in class com.mongodb.Bytes
When turned on, read queries will be directed to slave servers instead of the primary server.
QUERYOPTION_TAILABLE - Static variable in class com.mongodb.Bytes
Tailable means cursor is not closed when the last data is retrieved.
QueryResultIterator - Class in com.mongodb
 
QueryResultIterator(String, Mongo, Response, int, int, DBDecoder) - Constructor for class com.mongodb.QueryResultIterator
 
QueryResultIterator(DBObject, Mongo, int, DBDecoder, ServerAddress) - Constructor for class com.mongodb.QueryResultIterator
 
QueryResultIterator.OptionalFinalizer - Class in com.mongodb
 
queueSize() - Method in class com.mongodb.util.ThreadPool
Deprecated.
Returns the size of the pool's queue.

R

raiseNetworkErrors() - Method in class com.mongodb.WriteConcern
Deprecated.
There is no replacement for this method.
random - Variable in class com.mongodb.BaseCluster
 
randomLength - Static variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
RangeBased() - Constructor for class com.mongodb.IndexMap.RangeBased
 
RangeBased(int, int) - Constructor for class com.mongodb.IndexMap.RangeBased
 
RawDBObject - Class in com.mongodb
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
RawDBObject(ByteBuffer) - Constructor for class com.mongodb.RawDBObject
Deprecated.
 
RawDBObject(ByteBuffer, int) - Constructor for class com.mongodb.RawDBObject
Deprecated.
 
RawDBObject.Element - Class in com.mongodb
Deprecated.
 
RawDBObject.ElementIter - Class in com.mongodb
Deprecated.
 
read() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
read(byte[]) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
read(byte[], int, int) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
read() - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
read(byte[]) - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
read(byte[], int, int) - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
read() - Method in class com.mongodb.Response.MyInputStream
 
read(byte[], int, int) - Method in class com.mongodb.Response.MyInputStream
 
read(char) - Method in class com.mongodb.util.JSONParser
Read the current character, making sure that it is the expected character.
read() - Method in class com.mongodb.util.JSONParser
 
read() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
READ_PREFERENCE_META_OPERATOR - Static variable in class com.mongodb.QueryOpBuilder
 
readBinary(int) - Method in class org.bson.LazyBSONObject
 
readCStr() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readCstr() - Method in class org.bson.NewBSONDecoder
Deprecated.
 
readDouble() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
Reads bytes from the input stream and puts them into the given byte buffer.
readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
Reads bytes from the input stream and puts them into the given byte buffer.
readFully(InputStream, byte[], int, int) - Static method in class org.bson.io.Bits
Reads bytes from the input stream and puts them into the given byte buffer.
readHex() - Method in class com.mongodb.util.JSONParser
Read the current character, making sure that it is a hexidecimal character.
readInt() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readInt(InputStream) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the input stream.
readInt(InputStream, byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the input stream.
readInt(byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the buffer.
readInt(byte[], int) - Static method in class org.bson.io.Bits
Reads and returns a single integer value from the buffer.
readIntBE() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readIntBE(byte[], int) - Static method in class org.bson.io.Bits
Reads and returns a single big-endian integer value
readLong() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readLong(InputStream) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the input stream.
readLong(InputStream, byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the input stream.
readLong(byte[]) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the buffer.
readLong(byte[], int) - Static method in class org.bson.io.Bits
Reads and returns a single long value from the buffer.
readObject(byte[]) - Method in class org.bson.BasicBSONDecoder
 
readObject(InputStream) - Method in class org.bson.BasicBSONDecoder
 
readObject(byte[]) - Method in interface org.bson.BSONDecoder
Read a single BSON object from the given bytes.
readObject(InputStream) - Method in interface org.bson.BSONDecoder
Read a single BSON object from the given input stream.
readObject(byte[]) - Method in class org.bson.LazyBSONDecoder
 
readObject(InputStream) - Method in class org.bson.LazyBSONDecoder
 
readObject(byte[]) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
readObject(InputStream) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
ReadOnlySet() - Constructor for class org.bson.LazyBSONObject.ReadOnlySet
 
readPref - Variable in class com.mongodb.QueryOpBuilder
 
readPreference - Variable in class com.mongodb.MongoClientOptions.Builder
 
readPreference(ReadPreference) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the read preference.
readPreference - Variable in class com.mongodb.MongoClientOptions
 
readPreference - Variable in class com.mongodb.MongoOptions
Deprecated.
Specifies the read preference.
readPreference - Variable in class com.mongodb.ParallelScanOptions.Builder
 
readPreference(ReadPreference) - Method in class com.mongodb.ParallelScanOptions.Builder
The read preference to use.
readPreference - Variable in class com.mongodb.ParallelScanOptions
 
ReadPreference - Class in com.mongodb
An abstract class that represents preferred replica set members to which a query or command can be sent.
ReadPreference() - Constructor for class com.mongodb.ReadPreference
 
readPreference - Variable in class com.mongodb.ReadPreferenceServerSelector
 
ReadPreference.PrimaryReadPreference - Class in com.mongodb
Preference to read from primary only.
ReadPreference.TaggedReadPreference - Class in com.mongodb
Deprecated.
readPreferenceKeys - Static variable in class com.mongodb.MongoClientURI
 
ReadPreferenceServerSelector - Class in com.mongodb
 
ReadPreferenceServerSelector(ReadPreference) - Constructor for class com.mongodb.ReadPreferenceServerSelector
 
readTimeout(int, TimeUnit) - Method in class com.mongodb.SocketSettings.Builder
 
readTimeoutMS - Variable in class com.mongodb.SocketSettings.Builder
 
readTimeoutMS - Variable in class com.mongodb.SocketSettings
 
readUtf8Str() - Method in class org.bson.NewBSONDecoder
Deprecated.
 
readUTF8String() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
receiveWriteCommandMessage(DBPort) - Method in class com.mongodb.DBCollectionImpl
 
reduce - Variable in class com.mongodb.GroupCommand
 
REF - Static variable in class org.bson.BSON
 
ReflectionDBObject - Class in com.mongodb
This class enables to map simple Class fields to a BSON object fields
ReflectionDBObject() - Constructor for class com.mongodb.ReflectionDBObject
 
ReflectionDBObject.FieldInfo - Class in com.mongodb
 
ReflectionDBObject.JavaWrapper - Class in com.mongodb
Represents a wrapper around the DBObject to interface with the Class fields
regex(Pattern) - Method in class com.mongodb.QueryBuilder
Passes a regular expression for a query
REGEX - Static variable in class org.bson.BSON
 
regexFlag(char) - Static method in class org.bson.BSON
Converts a regular expression modifier from the database into Java regular expression flags.
RegexFlag(int, char, String) - Constructor for enum org.bson.BSON.RegexFlag
 
regexFlags(String) - Static method in class org.bson.BSON
Converts a sequence of regular expression modifiers from the database into Java regular expression flags.
regexFlags(int) - Static method in class org.bson.BSON
Converts Java regular expression flags into regular expression modifiers from the database.
registerMBean(Object, String) - Method in class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
registerMBean(Object, String) - Method in interface com.mongodb.util.management.MBeanServer
Deprecated.
 
registerMBean(Object, String) - Method in class com.mongodb.util.management.NullMBeanServer
Deprecated.
 
release(T) - Method in class com.mongodb.ConcurrentPool
Return an instance of T to the pool.
release(T, boolean) - Method in class com.mongodb.ConcurrentPool
call done when you are done with an object from the pool if there is room and the object is ok will get added
release(Connection) - Method in class com.mongodb.PooledConnectionProvider
 
releasePermit() - Method in class com.mongodb.ConcurrentPool
 
releasePort(DBPort) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
remaining() - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
remove() - Method in class com.mongodb.BulkWriteRequestBuilder
Adds a request to remove all documents in the collection that match the query with which this builder was created.
remove() - Method in class com.mongodb.ConcurrentLinkedDeque.CLDIterator
 
remove() - Method in class com.mongodb.ConcurrentLinkedDeque
 
remove(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
Removes the first element e such that o.equals(e), if such an element exists in this deque.
remove(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Remove documents from a collection.
remove(DBObject, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Remove documents from a collection.
remove(DBObject) - Method in class com.mongodb.DBCollection
Remove documents from a collection.
remove(DBObject, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
 
remove(DBObject, boolean, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
 
remove() - Method in class com.mongodb.DBCursor
Not implemented.
remove() - Method in interface com.mongodb.Deque
Retrieves and removes the head of the queue represented by this deque.
remove(ObjectId) - Method in class com.mongodb.gridfs.GridFS
Removes the file matching the given id.
remove(String) - Method in class com.mongodb.gridfs.GridFS
Removes all files matching the given filename.
remove(DBObject) - Method in class com.mongodb.gridfs.GridFS
Removes all files matching the given query.
remove() - Method in class com.mongodb.gridfs.GridFSDBFile
 
remove(DBCollection, DBEncoder, DBObject, boolean) - Static method in class com.mongodb.OutMessage
 
remove() - Method in class com.mongodb.QueryResultIterator
 
Remove - Class in com.mongodb
 
Remove(DBObject) - Constructor for class com.mongodb.Remove
 
remove(T) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
remove(T) - Method in class com.mongodb.util.SimplePool
Deprecated.
 
remove(T) - Method in class com.mongodb.util.WeakBag
Deprecated.
 
remove() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
remove(Object) - Method in class org.bson.LazyBSONList
 
remove(int) - Method in class org.bson.LazyBSONList
 
remove() - Method in class org.bson.LazyBSONObject.LazyBSONEntryIterator
 
remove() - Method in class org.bson.LazyBSONObject.LazyBSONKeyIterator
 
remove(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
remove(Object) - Method in class org.bson.LazyBSONObject.ReadOnlySet
 
remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
 
remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
 
remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
remove(Object, Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
remove() - Method in class org.bson.util.AbstractCopyOnWriteMap.UnmodifiableIterator
 
remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
 
remove(Object) - Method in class org.bson.util.ClassMap
As per java.util.Map, removes the mapping for a key from this map if it is present
remove(Object, Object) - Method in class org.bson.util.ComputingMap
 
remove(Object) - Method in class org.bson.util.ComputingMap
 
remove(Object) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
removeall(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
removeAll(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
removeAll(Collection) - Method in class org.bson.LazyBSONList
 
removeAll(Collection<?>) - Method in class org.bson.LazyBSONObject.ReadOnlySet
 
removeAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
 
removeAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
 
removeAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
 
removeAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
removedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
 
removedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
 
removeDecodingHook(Class, Transformer) - Static method in class org.bson.BSON
Remove a specific encoding hook for a specific class.
removeDecodingHooks(Class) - Static method in class org.bson.BSON
Remove all decoding hooks for a specific class.
removeEncodingHook(Class, Transformer) - Static method in class org.bson.BSON
Remove a specific encoding hook for a specific class.
removeEncodingHooks(Class) - Static method in class org.bson.BSON
Remove all encoding hooks for a specific class.
removeExtraHosts(ServerDescription) - Method in class com.mongodb.MultiServerCluster
 
removeField(String) - Method in class com.mongodb.gridfs.GridFSFile
 
removeField(String) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
removeField(String) - Method in class com.mongodb.RawDBObject
Deprecated.
Always throws UnsupportedOperationException.
removeField(String) - Method in class com.mongodb.ReflectionDBObject
This operation is not supported.
removeField(String) - Method in class org.bson.BasicBSONObject
Deletes a field from this object.
removeField(String) - Method in interface org.bson.BSONObject
Removes a field with a given name from this object.
removeField(String) - Method in class org.bson.LazyBSONObject
Always throws UnsupportedOperationException.
removeField(String) - Method in class org.bson.types.BasicBSONList
 
removeFirst() - Method in class com.mongodb.ConcurrentLinkedDeque
 
removeFirst() - Method in interface com.mongodb.Deque
Removes and returns the first element of this deque.
removeFirstOccurrence(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
Removes the first element e such that o.equals(e), if such an element exists in this deque.
removeFirstOccurrence(Object) - Method in interface com.mongodb.Deque
Removes the first occurrence of the specified element in this deque.
removeLast() - Method in class com.mongodb.ConcurrentLinkedDeque
 
removeLast() - Method in interface com.mongodb.Deque
Retrieves and removes the last element of this deque.
removeLastOccurrence(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
Removes the last element e such that o.equals(e), if such an element exists in this deque.
removeLastOccurrence(Object) - Method in interface com.mongodb.Deque
Removes the last occurrence of the specified element in this deque.
removeOne() - Method in class com.mongodb.BulkWriteRequestBuilder
Adds a request to remove one document in the collection that matches the query with which this builder was created.
RemoveRequest - Class in com.mongodb
 
RemoveRequest(DBObject, boolean) - Constructor for class com.mongodb.RemoveRequest
 
removeServer(ServerAddress) - Method in class com.mongodb.MultiServerCluster
 
removeUser(String) - Method in class com.mongodb.DB
Deprecated.
Use DB.command to call the dropUser command
removeUser(String) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
removeWithCommandProtocol(List<RemoveRequest>, WriteConcern, DBEncoder, DBPort) - Method in class com.mongodb.DBCollectionImpl
 
rename(String) - Method in class com.mongodb.DBCollection
rename(String, boolean) - Method in class com.mongodb.DBCollection
Renames of this collection to newName
replace(E) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Tries to insert a node holding element to replace this node.
replace(K, V, V) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
replace(K, V) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
replace(K, V, V) - Method in class org.bson.util.ComputingMap
 
replace(K, V) - Method in class org.bson.util.ComputingMap
 
replaceOne(DBObject) - Method in class com.mongodb.BulkUpdateRequestBuilder
Adds a request to replace one document in the collection that matches the query with which this builder was created.
replaceOne(DBObject) - Method in class com.mongodb.BulkWriteRequestBuilder
Adds a request to replace one document in the collection that matches the query with which this builder was created.
ReplaceRequest - Class in com.mongodb
 
ReplaceRequest(DBObject, boolean, DBObject) - Constructor for class com.mongodb.ReplaceRequest
 
replaceWithObjectClass(DBObject) - Method in class com.mongodb.DBCollection
Doesn't yet handle internal classes properly, so this method only does something if object class is set but no internal classes are set.
REPLICA_ACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation.
REPLICAS_SAFE - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation.
replicaSetName - Variable in class com.mongodb.MultiServerCluster
 
ReplicaSetStatus - Class in com.mongodb
Keeps replica set status.
ReplicaSetStatus(ClusterDescription) - Constructor for class com.mongodb.ReplicaSetStatus
 
REQUEST_ID - Static variable in class com.mongodb.OutMessage
 
REQUEST_ID - Static variable in class com.mongodb.RequestMessage
 
requestDone() - Method in class com.mongodb.DB
Deprecated.
The main use case for this method is to ensure that applications can read their own unacknowledged writes, but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is dangerous because mongos does not provide this guarantee. For these reasons, this method is now deprecated and will be removed in the next major release.
requestDone() - Method in class com.mongodb.DBApiLayer
Deprecated.
 
requestDone() - Method in interface com.mongodb.DBConnector
Deprecated.
terminates the "consistent request".
requestDone() - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
requestDone() - Method in class com.mongodb.DBTCPConnector
Deprecated.
End the current "request", if this thread is in one.
requestEnsureConnection() - Method in class com.mongodb.DB
Deprecated.
The main use case for this method is to ensure that applications can read their own unacknowledged writes, but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is dangerous because mongos does not provide this guarantee. For these reasons, this method is now deprecated and will be removed in the next major release.
requestEnsureConnection() - Method in class com.mongodb.DBApiLayer
Deprecated.
 
requestEnsureConnection() - Method in interface com.mongodb.DBConnector
Deprecated.
Ensures that a connection exists for the "consistent request"
requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
RequestMessage - Class in com.mongodb
 
RequestMessage(String, RequestMessage.OpCode, MessageSettings) - Constructor for class com.mongodb.RequestMessage
 
RequestMessage.OpCode - Enum in com.mongodb
 
requestPort - Variable in class com.mongodb.DBTCPConnector.PinnedRequestStatus
Deprecated.
 
requests - Variable in class com.mongodb.BulkWriteOperation
 
requestStart() - Method in class com.mongodb.DB
Deprecated.
The main use case for this method is to ensure that applications can read their own unacknowledged writes, but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is dangerous because mongos does not provide this guarantee. For these reasons, this method is now deprecated and will be removed in the next major release.
requestStart() - Method in class com.mongodb.DBApiLayer
Deprecated.
 
requestStart() - Method in interface com.mongodb.DBConnector
Deprecated.
initiates a "consistent request" on the thread.
requestStart() - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
requestStart() - Method in class com.mongodb.DBTCPConnector
Deprecated.
Start a "request".
requiredClusterType - Variable in class com.mongodb.ClusterSettings.Builder
 
requiredClusterType(ClusterType) - Method in class com.mongodb.ClusterSettings.Builder
Sets the required cluster type for the cluster.
requiredClusterType - Variable in class com.mongodb.ClusterSettings
 
requiredReplicaSetName - Variable in class com.mongodb.ClusterSettings.Builder
 
requiredReplicaSetName(String) - Method in class com.mongodb.ClusterSettings.Builder
Sets the required replica set name for the cluster.
requiredReplicaSetName - Variable in class com.mongodb.ClusterSettings
 
requiredReplicaSetName - Variable in class com.mongodb.MongoClientOptions.Builder
 
requiredReplicaSetName(String) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the required replica set name for the cluster.
requiredReplicaSetName - Variable in class com.mongodb.MongoClientOptions
 
requiredReplicaSetName - Variable in class com.mongodb.MongoOptions
Deprecated.
 
reset() - Method in class com.mongodb.BSONBinaryWriter.Mark
 
reset() - Method in class com.mongodb.BSONBinaryWriter
 
reset() - Method in class com.mongodb.BSONWriter.Mark
 
reset() - Method in class com.mongodb.Bytes.OptionHolder
 
reset() - Method in class com.mongodb.DBPort
Deprecated.
 
reset() - Method in class com.mongodb.DefaultDBCallback
 
reset() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
reset() - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
reset() - Method in class com.mongodb.MongoOptions
Deprecated.
 
reset() - Method in class org.bson.BasicBSONCallback
 
reset() - Method in interface org.bson.BSONCallback
Resets the callback, clearing all state.
reset() - Method in class org.bson.EmptyBSONCallback
 
reset() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
reset() - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
reset(PoolOutputBuffer.Position) - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
reset(int) - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
reset() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
reset() - Method in class org.bson.LazyBSONCallback
 
resetError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
resetIndexCache() - Method in class com.mongodb.DBCollection
Deprecated.
This will be removed in 3.0
resetOptions() - Method in class com.mongodb.DB
Resets the query options.
resetOptions() - Method in class com.mongodb.DBCollection
Resets the default query options
resetOptions() - Method in class com.mongodb.DBCursor
Resets the query options.
resetOptions() - Method in class com.mongodb.Mongo
Reset the default query options
Response - Class in com.mongodb
 
Response(ServerAddress, DBCollection, InputStream, DBDecoder) - Constructor for class com.mongodb.Response
 
Response.MyInputStream - Class in com.mongodb
 
result - Variable in class com.mongodb.DB.CommandResultPair
 
RESULTFLAG_AWAITCAPABLE - Static variable in class com.mongodb.Bytes
Set when the server supports the AwaitData Query option.
RESULTFLAG_CURSORNOTFOUND - Static variable in class com.mongodb.Bytes
Set when getMore is called but the cursor id is not valid at the server.
RESULTFLAG_ERRSET - Static variable in class com.mongodb.Bytes
Set when query failed.
RESULTFLAG_SHARDCONFIGSTALE - Static variable in class com.mongodb.Bytes
Drivers should ignore this.
results() - Method in class com.mongodb.AggregationOutput
Returns an iterator to the results of the aggregation
results() - Method in class com.mongodb.MapReduceOutput
Returns an iterable containing the results of the operation.
retainAll(Collection) - Method in class org.bson.LazyBSONList
 
retainAll(Collection<?>) - Method in class org.bson.LazyBSONObject.ReadOnlySet
 
retainAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
 
retainAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
 
retainAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
 
retainAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
RETURN_KEY - Static variable in class com.mongodb.QueryOperators
 
returnKey() - Method in class com.mongodb.DBCursor
Forces the cursor to only return fields included in the index.
rPrefix - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
Run(WriteRequest.Type, Boolean, WriteConcern, DBEncoder) - Constructor for class com.mongodb.DBCollectionImpl.Run
 
run() - Method in class com.mongodb.Mongo.CursorCleanerThread
 
run() - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
 
run() - Method in class com.mongodb.util.ThreadPool.MyThread
Deprecated.
 
runCommand(DB, DBObject) - Method in class com.mongodb.DBPort
Deprecated.
 
runCommand(DB, DBObject, int) - Method in class com.mongodb.DBPort
Deprecated.
 
runCommand(DB, DBObject, ReadPreference, int) - Method in class com.mongodb.DBPort
Deprecated.
 
RunExecutor(DBPort) - Constructor for class com.mongodb.DBCollectionImpl.Run.RunExecutor
 

S

s - Variable in exception com.mongodb.util.JSONParseException
 
s - Variable in class com.mongodb.util.JSONParser
 
S_DAY - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
S_HOUR - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
S_MINUTE - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
S_MONTH - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
S_SECOND - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
S_WEEK - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
S_YEAR - Static variable in class com.mongodb.util.TimeConstants
Deprecated.
 
safe - Variable in class com.mongodb.MongoOptions
Deprecated.
If true the driver will use a WriteConcern of WriteConcern.SAFE for all operations.
SAFE - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will wait for acknowledgement from the primary server before returning.
sameHost(String) - Method in class com.mongodb.ServerAddress
Determines whether this address is the same as a given host.
SaslAuthenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
save(DBObject) - Method in class com.mongodb.DBCollection
Update an existing document or insert a document depending on the parameter.
save(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Update an existing document or insert a document depending on the parameter.
save() - Method in class com.mongodb.gridfs.GridFSFile
Saves the file entry to the files collection
save() - Method in class com.mongodb.gridfs.GridFSInputFile
Calls GridFSInputFile.save(long) with the existing chunk size.
save(long) - Method in class com.mongodb.gridfs.GridFSInputFile
This method first calls saveChunks(long) if the file data has not been saved yet.
saveChunks() - Method in class com.mongodb.gridfs.GridFSInputFile
Saves all data into chunks from configured InputStream input stream to GridFS.
saveChunks(long) - Method in class com.mongodb.gridfs.GridFSInputFile
Saves all data into chunks from configured InputStream input stream to GridFS.
say(DB, OutMessage, WriteConcern) - Method in interface com.mongodb.DBConnector
Deprecated.
does a write operation
say(DB, OutMessage, WriteConcern, ServerAddress) - Method in interface com.mongodb.DBConnector
Deprecated.
does a write operation
say(OutMessage) - Method in class com.mongodb.DBPort
Deprecated.
 
say(DB, OutMessage, WriteConcern) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
say(DB, OutMessage, WriteConcern, ServerAddress) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
say(DB, OutMessage, WriteConcern, DBPort) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
SCRAM_SHA_1_MECHANISM - Static variable in class com.mongodb.MongoCredential
The SCRAM-SHA-1 mechanism.
ScramSha1Authenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.ScramSha1Authenticator
Deprecated.
 
ScramSha1SaslClient(MongoCredential) - Constructor for class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
screenNullResult(E) - Method in class com.mongodb.ConcurrentLinkedDeque
Returns element unless it is null, in which case throws NoSuchElementException.
SEARCH - Static variable in class com.mongodb.QueryOperators
 
SECONDARY - Static variable in class com.mongodb.ReadPreference
Deprecated.
As of release 2.9.0, replaced by ReadPreference.secondaryPreferred()
secondary() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary.
secondary(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with the given set of tags.
secondary(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
secondary(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
Deprecated.
use factory methods that take TagSet instead
secondaryPreferred() - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
secondaryPreferred(TagSet) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
secondaryPreferred(List<TagSet>) - Static method in class com.mongodb.ReadPreference
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
secondaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
Deprecated.
use factory methods that take TagSet instead
SecondaryPreferredReadPreference() - Constructor for class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
 
SecondaryPreferredReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
 
SecondaryReadPreference() - Constructor for class com.mongodb.TaggableReadPreference.SecondaryReadPreference
 
SecondaryReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference.SecondaryReadPreference
 
seekEnd() - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekEnd() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekEnd() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekStart() - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekStart() - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
seekStart() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
SemaphoresOut() - Constructor for exception com.mongodb.DBPortPool.SemaphoresOut
Deprecated.
 
SemaphoresOut(int) - Constructor for exception com.mongodb.DBPortPool.SemaphoresOut
Deprecated.
 
sendSaslContinue(int, byte[]) - Method in class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
sendSaslStart(byte[]) - Method in class com.mongodb.DBPort.SaslAuthenticator
Deprecated.
 
sendStateChangedEvent(ServerDescription, ServerDescription) - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
 
sendWriteCommandMessage(BaseWriteCommandMessage, int, DBPort) - Method in class com.mongodb.DBCollectionImpl
 
serializationDepth - Variable in class com.mongodb.BSONWriter.Mark
 
serializationDepth - Variable in class com.mongodb.BSONWriter
 
serialize(Object) - Method in class com.mongodb.util.AbstractObjectSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.ClassMapBasedObjectSerializer
 
serialize(Object) - Static method in class com.mongodb.util.JSON
Serializes an object into its JSON form.
serialize(Object, StringBuilder) - Static method in class com.mongodb.util.JSON
Serializes an object into its JSON form.
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.BinarySerializer
 
serialize(byte[], byte, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.BinarySerializerBase
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.BSONTimestampSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ByteArraySerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.CodeSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.CodeWScopeSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.DateSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.DBObjectSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.DBRefBaseSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.IterableSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.LegacyBinarySerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.LegacyBSONTimestampSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.LegacyDateSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.MapSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.MaxKeySerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.MinKeySerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ObjectArraySerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ObjectIdSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.PatternSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.StringSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.SymbolSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ToStringSerializer
 
serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.UUIDSerializer
 
serialize(Object, StringBuilder) - Method in interface com.mongodb.util.ObjectSerializer
Serializes obj into buf.
serialize(Object) - Method in interface com.mongodb.util.ObjectSerializer
Serializes obj.
serializer - Variable in class com.mongodb.util.JSONSerializers.CompoundObjectSerializer
 
serialVersionUID - Static variable in class com.mongodb.BasicDBList
 
serialVersionUID - Static variable in class com.mongodb.BasicDBObject
 
serialVersionUID - Static variable in exception com.mongodb.BulkWriteException
 
serialVersionUID - Static variable in exception com.mongodb.CommandFailureException
Deprecated.
 
serialVersionUID - Static variable in class com.mongodb.CommandResult
 
serialVersionUID - Static variable in class com.mongodb.ConcurrentLinkedDeque.Node
 
serialVersionUID - Static variable in class com.mongodb.ConcurrentLinkedDeque
 
serialVersionUID - Static variable in class com.mongodb.DBPointer
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.DBPortPool.ConnectionWaitTimeOut
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.DBPortPool.NoMoreConnection
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.DBPortPool.SemaphoresOut
Deprecated.
 
serialVersionUID - Static variable in class com.mongodb.DBRef
 
serialVersionUID - Static variable in class com.mongodb.DBRefBase
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.DuplicateKeyException
 
serialVersionUID - Static variable in exception com.mongodb.MongoClientException
 
serialVersionUID - Static variable in exception com.mongodb.MongoCommandException
 
serialVersionUID - Static variable in exception com.mongodb.MongoCursorNotFoundException
 
serialVersionUID - Static variable in exception com.mongodb.MongoException.CursorNotFound
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.MongoException.DuplicateKey
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.MongoException.Network
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.MongoException
 
serialVersionUID - Static variable in exception com.mongodb.MongoExecutionTimeoutException
 
serialVersionUID - Static variable in exception com.mongodb.MongoIncompatibleDriverException
 
serialVersionUID - Static variable in exception com.mongodb.MongoInternalException
 
serialVersionUID - Static variable in exception com.mongodb.MongoInterruptedException
 
serialVersionUID - Static variable in exception com.mongodb.MongoServerSelectionException
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.MongoSocketException
 
serialVersionUID - Static variable in exception com.mongodb.MongoTimeoutException
 
serialVersionUID - Static variable in exception com.mongodb.MongoWaitQueueFullException
 
serialVersionUID - Static variable in exception com.mongodb.UnacknowledgedWriteException
Deprecated.
 
serialVersionUID - Static variable in exception com.mongodb.util.JSONParseException
 
serialVersionUID - Static variable in exception com.mongodb.util.management.JMException
Deprecated.
 
serialVersionUID - Static variable in class com.mongodb.util.OptionMap
Deprecated.
 
serialVersionUID - Static variable in class com.mongodb.util.UniqueList
Deprecated.
 
serialVersionUID - Static variable in class com.mongodb.WriteConcern.Majority
 
serialVersionUID - Static variable in class com.mongodb.WriteConcern
 
serialVersionUID - Static variable in exception com.mongodb.WriteConcernException
 
serialVersionUID - Static variable in class org.bson.BasicBSONObject
 
serialVersionUID - Static variable in exception org.bson.BSONException
 
serialVersionUID - Static variable in class org.bson.LazyDBList
Deprecated.
 
serialVersionUID - Static variable in class org.bson.types.BasicBSONList
 
serialVersionUID - Static variable in class org.bson.types.Binary
 
serialVersionUID - Static variable in class org.bson.types.BSONTimestamp
 
serialVersionUID - Static variable in class org.bson.types.Code
 
serialVersionUID - Static variable in class org.bson.types.CodeWScope
 
serialVersionUID - Static variable in class org.bson.types.MaxKey
 
serialVersionUID - Static variable in class org.bson.types.MinKey
 
serialVersionUID - Static variable in class org.bson.types.ObjectId
 
serialVersionUID - Static variable in class org.bson.types.Symbol
 
serialVersionUID - Static variable in class org.bson.util.AbstractCopyOnWriteMap.Immutable
 
serialVersionUID - Static variable in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
serialVersionUID - Static variable in class org.bson.util.AbstractCopyOnWriteMap
 
serialVersionUID - Static variable in exception org.bson.util.Assertions.NullArgumentException
Deprecated.
 
serialVersionUID - Static variable in class org.bson.util.CopyOnWriteMap.Hash
 
serialVersionUID - Static variable in class org.bson.util.CopyOnWriteMap.Linked
 
serialVersionUID - Static variable in class org.bson.util.CopyOnWriteMap
 
server - Variable in class com.mongodb.MultiServerCluster.ServerTuple
 
Server - Interface in com.mongodb
A logical connection to a MongoDB server.
server - Variable in class com.mongodb.SingleServerCluster
 
server - Variable in class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
serverAddress - Variable in class com.mongodb.BulkWriteBatchCombiner
 
serverAddress - Variable in exception com.mongodb.BulkWriteException
 
serverAddress - Variable in class com.mongodb.ConnectionEvent
 
serverAddress - Variable in class com.mongodb.ConnectionPoolEvent
 
serverAddress - Variable in class com.mongodb.ConnectionPoolStatistics
 
serverAddress() - Method in class com.mongodb.DBPort
Deprecated.
 
serverAddress - Variable in class com.mongodb.DefaultServer
 
serverAddress - Variable in class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
 
serverAddress - Variable in exception com.mongodb.MongoCursorNotFoundException
 
serverAddress - Variable in class com.mongodb.PooledConnectionProvider
 
ServerAddress - Class in com.mongodb
Represents the location of a Mongo server - i.e.
ServerAddress() - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default host and port
ServerAddress(String) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default port
ServerAddress(String, int) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddress(InetAddress) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default port
ServerAddress(InetAddress, int) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddress(InetSocketAddress) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
serverAddress - Variable in class com.mongodb.ServerMonitor
 
serverAddresses - Variable in class com.mongodb.MongoAuthority
 
ServerAddressSelector - Class in com.mongodb
 
ServerAddressSelector(ServerAddress) - Constructor for class com.mongodb.ServerAddressSelector
 
ServerConnectionState - Enum in com.mongodb
 
ServerConnectionState() - Constructor for enum com.mongodb.ServerConnectionState
 
ServerDescription - Class in com.mongodb
Immutable snapshot state of a server.
ServerDescription(ServerDescription.Builder) - Constructor for class com.mongodb.ServerDescription
 
ServerDescription.Builder - Class in com.mongodb
 
ServerError - Class in com.mongodb
Deprecated.
This is an internal class, and will likely be removed in the next major release.
ServerError(DBObject) - Constructor for class com.mongodb.ServerError
Deprecated.
 
serverFactory - Variable in class com.mongodb.BaseCluster
 
serverMonitor - Variable in class com.mongodb.DefaultServer
 
ServerMonitor - Class in com.mongodb
 
ServerMonitor(ServerAddress, ChangeListener<ServerDescription>, SocketSettings, ServerSettings, String, Mongo, PooledConnectionProvider) - Constructor for class com.mongodb.ServerMonitor
 
ServerMonitor.ServerMonitorRunnable - Class in com.mongodb
 
ServerMonitorRunnable() - Constructor for class com.mongodb.ServerMonitor.ServerMonitorRunnable
 
ServerSelector - Interface in com.mongodb
 
serverSelectors - Variable in class com.mongodb.CompositeServerSelector
 
ServerSettings - Class in com.mongodb
 
ServerSettings(ServerSettings.Builder) - Constructor for class com.mongodb.ServerSettings
 
ServerSettings.Builder - Class in com.mongodb
 
serverSignature - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
serverStateListener - Variable in class com.mongodb.DefaultServer
 
serverStateListener - Variable in class com.mongodb.ServerMonitor
 
ServerTuple(ClusterableServer, ServerDescription) - Constructor for class com.mongodb.MultiServerCluster.ServerTuple
 
ServerType - Enum in com.mongodb
The type of the server.
ServerType() - Constructor for enum com.mongodb.ServerType
 
serverUsed() - Method in class com.mongodb.Response
 
ServerVersion - Class in com.mongodb
Holds an array of three integers representing the server version, e.g.
ServerVersion() - Constructor for class com.mongodb.ServerVersion
Creates a server version which will compare as less than all other valid versions
ServerVersion(List<Integer>) - Constructor for class com.mongodb.ServerVersion
Constructs a new instance with the given version list of integers.
ServerVersion(int, int) - Constructor for class com.mongodb.ServerVersion
Constructs a new instance with the given major and minor versions and a patch version of 0.
SERVICE_NAME_DEFAULT_VALUE - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
SERVICE_NAME_KEY - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
Deprecated.
 
set(int) - Method in class com.mongodb.Bytes.OptionHolder
 
set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
Adds or sets the given field to the given value on the document.
set(OutputBuffer) - Method in class org.bson.BasicBSONEncoder
 
set(OutputBuffer) - Method in interface org.bson.BSONEncoder
Sets the buffer to wrich the result of encoding will be written.
set(int, Object) - Method in class org.bson.LazyBSONList
 
set(M) - Method in class org.bson.util.AbstractCopyOnWriteMap
 
set_id(Object) - Method in class com.mongodb.ReflectionDBObject
Sets the _id
setActiveState(DBPort.ActiveState) - Method in class com.mongodb.DBPort
Deprecated.
 
setAlwaysUseMBeans(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setAutoConnectRetry(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
setBatchSize(int) - Method in class com.mongodb.QueryResultIterator
 
setBypassDocumentValidation(Boolean) - Method in class com.mongodb.BulkWriteOperation
Sets whether to bypass document validation.
setBypassDocumentValidation(Boolean) - Method in class com.mongodb.MapReduceCommand
Sets whether to bypass document validation.
setChunkSize(long) - Method in class com.mongodb.gridfs.GridFSInputFile
Set the chunk size.
setConnectionsPerHost(int) - Method in class com.mongodb.MongoOptions
Deprecated.
Sets the maximum number of connections allowed per host for this Mongo instance.
setConnectTimeout(int) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setContentType(String) - Method in class com.mongodb.gridfs.GridFSInputFile
Sets the content type (MIME type) on the GridFS entry.
setContext(BSONWriter.Context) - Method in class com.mongodb.BSONWriter
 
setCursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setCursorId(long) - Method in class com.mongodb.QueryResultIterator.OptionalFinalizer
 
setCursorIdOnFinalizer(long) - Method in class com.mongodb.QueryResultIterator
 
setDBDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCollection
Set a customer decoder factory for this collection.
setDbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setDBEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.DBCollection
Set a customer encoder factory for this collection.
setDbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCursor
Sets the factory that will be used create a DBDecoder that will be used to decode BSON documents into DBObject instances.
setDescription(String) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setFilename(String) - Method in class com.mongodb.gridfs.GridFSInputFile
Sets the file name on the GridFS entry.
setFinalize(String) - Method in class com.mongodb.MapReduceCommand
Sets the Finalize JS Function
setFsync(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setGridFS(GridFS) - Method in class com.mongodb.gridfs.GridFSFile
Sets the GridFS associated with this file.
setHintFields(List<DBObject>) - Method in class com.mongodb.DBCollection
Override MongoDB's default index selection and query optimization process.
setId(Object) - Method in class com.mongodb.gridfs.GridFSInputFile
Sets the ID of this GridFS file.
setInternalClass(String, Class) - Method in class com.mongodb.DBCollection
Sets the internal class for the given path in the document hierarchy
setJ(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setJsMode(Boolean) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) JavaScript Mode
setLimit(int) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) limit on input
setMax(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
setMaxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
setMaxTime(long, TimeUnit) - Method in class com.mongodb.MapReduceCommand
Sets the max execution time for this command, in the given time unit.
setMaxWaitTime(int) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setMetaData(DBObject) - Method in class com.mongodb.gridfs.GridFSFile
Gets the file metadata.
setName - Variable in class com.mongodb.ServerDescription.Builder
 
setName(String) - Method in class com.mongodb.ServerDescription.Builder
 
setName - Variable in class com.mongodb.ServerDescription
 
setNext(ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Sets next link.
setObjectClass(Class) - Method in class com.mongodb.DBCollection
Sets a default class for objects in this collection; null resets the class to nothing.
setOptions(int) - Method in class com.mongodb.DB
Sets the default query options, overwriting previous value.
setOptions(int) - Method in class com.mongodb.DBCollection
Sets the default query options, overwriting previous value.
setOptions(int) - Method in class com.mongodb.DBCursor
Sets the query option - see Bytes.QUERYOPTION_* for list.
setOptions(int) - Method in class com.mongodb.Mongo
Set the default query options.
setOutputDB(String) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) database name where the output collection should reside
setPinnedRequestPortForThread(DBPort) - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
setPosition(int) - Method in class org.bson.io.BasicOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setPosition(int) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setPosition(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setPrev(ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Sets prev link.
setReadOnly(Boolean) - Method in class com.mongodb.DB
Deprecated.
Avoid making database read-only via this method. Connect with a user credentials that has a read-only access to a server instead.
setReadPreference(ReadPreference) - Method in class com.mongodb.DB
Sets the read preference for this database.
setReadPreference(ReadPreference) - Method in class com.mongodb.DBCollection
Sets the ReadPreference for this collection.
setReadPreference(ReadPreference) - Method in class com.mongodb.DBCursor
Sets the read preference for this cursor.
setReadPreference(ReadPreference) - Method in class com.mongodb.MapReduceCommand
Sets the read preference for this command.
setReadPreference(ReadPreference) - Method in class com.mongodb.Mongo
Sets the read preference for this database.
setReadPreference(ReadPreference) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setRoot(Object) - Method in class org.bson.BasicBSONCallback
Sets the root document for this position
setRootObject(Object) - Method in class org.bson.LazyBSONCallback
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
setSafe(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setScope(Map<String, Object>) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) JavaScript scope
setSocketFactory(SocketFactory) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setSocketKeepAlive(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setSocketTimeout(int) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setSort(DBObject) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) sort specification object
setState(BSONWriter.State) - Method in class com.mongodb.BSONWriter
 
setThreadsAllowedToBlockForConnectionMultiplier(int) - Method in class com.mongodb.MongoOptions
Deprecated.
Sets 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.
settings - Variable in class com.mongodb.BaseCluster
 
settings - Variable in class com.mongodb.BSONWriter
 
settings - Variable in class com.mongodb.ConnectionPoolOpenedEvent
 
settings - Variable in class com.mongodb.ConnectionPoolStatistics
 
settings - Variable in class com.mongodb.DefaultClusterableServerFactory
 
settings - Variable in class com.mongodb.PooledConnectionProvider
 
settings - Variable in class com.mongodb.RequestMessage
 
settings - Variable in class com.mongodb.ServerMonitor
 
setVerbose(Boolean) - Method in class com.mongodb.MapReduceCommand
Sets the verbosity of the MapReduce job, defaults to 'true'
setVersion - Variable in class com.mongodb.ServerDescription.Builder
 
setVersion(Integer) - Method in class com.mongodb.ServerDescription.Builder
Sets the setVersion reported by this server.
setVersion - Variable in class com.mongodb.ServerDescription
 
setW(int) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setWObject(Object) - Method in class com.mongodb.WriteConcern
Deprecated.
construct a new instance instead. This method will be removed in a future major release, as instances of this class should really be immutable.
setWriteConcern(WriteConcern) - Method in class com.mongodb.DB
Sets the write concern for this database.
setWriteConcern(WriteConcern) - Method in class com.mongodb.DBCollection
Set the WriteConcern for this collection.
setWriteConcern(WriteConcern) - Method in class com.mongodb.Mongo
Sets the write concern for this database.
setWriteConcern(WriteConcern) - Method in class com.mongodb.MongoOptions
Deprecated.
 
setWtimeout(int) - Method in class com.mongodb.MongoOptions
Deprecated.
 
shouldEnsureMinSize() - Method in class com.mongodb.PooledConnectionProvider
 
shouldPrune(T) - Method in interface com.mongodb.ConcurrentPool.ItemFactory
 
shouldPrune(Connection) - Method in class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
 
shouldPrune() - Method in class com.mongodb.PooledConnectionProvider
 
shouldPrune(Connection) - Method in class com.mongodb.PooledConnectionProvider
 
shouldRetryQuery(ReadPreference, DBCollection, IOException, int) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
shouldStopSendingMoreBatches() - Method in class com.mongodb.BulkWriteBatchCombiner
 
SHOW_DISK_LOC - Static variable in class com.mongodb.QueryOperators
 
showDiskLoc() - Method in class com.mongodb.DBCursor
Modifies the documents returned to include references to the on-disk location of each document.
SimpleHeapByteBufferFactory(int) - Constructor for class com.mongodb.io.ByteBufferFactory.SimpleHeapByteBufferFactory
Deprecated.
 
SimplePool<T> - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
SimplePool(String, int) - Constructor for class com.mongodb.util.SimplePool
Deprecated.
Initializes a new pool of objects.
SimplePool<T> - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
SimplePool(int) - Constructor for class org.bson.util.SimplePool
Deprecated.
 
SimplePool() - Constructor for class org.bson.util.SimplePool
Deprecated.
 
SingleServerCluster - Class in com.mongodb
This class needs to be final because we are leaking a reference to "this" from the constructor
SingleServerCluster(String, ClusterSettings, ClusterableServerFactory, ClusterListener) - Constructor for class com.mongodb.SingleServerCluster
 
singleton() - Static method in class com.mongodb.Mongo.Holder
 
SixBitMask - Static variable in class com.mongodb.util.Base64Codec
Deprecated.
Mask used to extract 6 bits, used when encoding
size() - Method in class com.mongodb.ConcurrentLinkedDeque
Returns the number of elements in this deque.
size - Variable in class com.mongodb.ConnectionPoolStatistics
 
size() - Method in class com.mongodb.DBCollectionImpl.Run
 
size() - Method in class com.mongodb.DBCursor
Counts the number of objects matching the query this does take limit/skip into consideration
size() - Method in class com.mongodb.OutMessage
 
size(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $size operand
SIZE - Static variable in class com.mongodb.QueryOperators
 
size() - Method in class com.mongodb.RawDBObject.Element
Deprecated.
 
size() - Method in class com.mongodb.Response
 
size() - Method in class com.mongodb.util.FastStack
Deprecated.
 
size() - Method in class com.mongodb.util.IdentitySet
Deprecated.
 
size() - Method in class com.mongodb.util.WeakBag
Deprecated.
Returns the size of the bag.
size() - Method in class org.bson.io.BasicOutputBuffer
 
size() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
size() - Method in class org.bson.io.OutputBuffer
Gets the output size in bytes.
size() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
size() - Method in class org.bson.LazyBSONList
 
size() - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
size() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
This method runs in time linear to the total size of all keys in the document.
size() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
size() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
size() - Method in class org.bson.util.ClassMap
As per java.util.Map, returns the number of key-value mappings in this map.
size() - Method in class org.bson.util.ComputingMap
 
size - Variable in class org.bson.util.StringRangeSet
Deprecated.
 
size() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
sizeCString(int) - Method in class org.bson.LazyBSONObject
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
sizeMaintenanceTimer - Variable in class com.mongodb.PooledConnectionProvider
 
skip(int) - Method in class com.mongodb.DBCursor
Discards a given number of elements at the beginning of the cursor.
skip(long) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
Will smartly skip over chunks without fetching them if possible.
skip(long) - Method in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
skipWS() - Method in class com.mongodb.util.JSONParser
Advances the position in the string past any whitespace.
slaveOk() - Method in class com.mongodb.DB
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
slaveOk() - Method in class com.mongodb.DBCollection
Deprecated.
slaveOk() - Method in class com.mongodb.DBCursor
Deprecated.
slaveOk() - Method in class com.mongodb.Mongo
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
slaveOk - Variable in class com.mongodb.MongoOptions
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
sleep(long) - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
Pauses for a given number of milliseconds
snapshot() - Method in class com.mongodb.DBCursor
Use snapshot mode for the query.
snapshot - Variable in class com.mongodb.QueryOpBuilder
 
SNAPSHOT - Static variable in class com.mongodb.QueryOperators
 
socketFactory - Variable in class com.mongodb.MongoClientOptions.Builder
 
socketFactory(SocketFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the socket factory.
socketFactory - Variable in class com.mongodb.MongoClientOptions
 
socketFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
sets the socket factory for creating sockets to mongod Default is SocketFactory.getDefault()
socketFactory - Variable in class com.mongodb.SocketSettings.Builder
 
socketFactory(SocketFactory) - Method in class com.mongodb.SocketSettings.Builder
 
socketFactory - Variable in class com.mongodb.SocketSettings
 
socketKeepAlive - Variable in class com.mongodb.MongoClientOptions.Builder
 
socketKeepAlive(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether socket keep alive is enabled.
socketKeepAlive - Variable in class com.mongodb.MongoClientOptions
 
socketKeepAlive - Variable in class com.mongodb.MongoOptions
Deprecated.
This flag controls the socket keep alive feature that keeps a connection alive through firewalls Socket.setKeepAlive(boolean) Default is false.
socketSettings - Variable in class com.mongodb.ServerMonitor
 
SocketSettings - Class in com.mongodb
 
SocketSettings(SocketSettings.Builder) - Constructor for class com.mongodb.SocketSettings
 
SocketSettings.Builder - Class in com.mongodb
 
socketTimeout - Variable in class com.mongodb.MongoClientOptions.Builder
 
socketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the socket timeout.
socketTimeout - Variable in class com.mongodb.MongoClientOptions
 
socketTimeout - Variable in class com.mongodb.MongoOptions
Deprecated.
The socket timeout in milliseconds It is used for I/O socket read and write operations Socket.setSoTimeout(int) Default is 0 and means no timeout.
sort(DBObject) - Method in class com.mongodb.DBCursor
Sorts this cursor's elements.
source - Variable in class com.mongodb.MongoCredential
 
specialFields - Variable in class com.mongodb.QueryOpBuilder
 
splitMapIntoMultipleMaps(DBObject) - Static method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
stableViews() - Method in class org.bson.util.CopyOnWriteMap.Builder
Views are stable (fixed in time) and unmodifiable.
start() - Static method in class com.mongodb.BasicDBObjectBuilder
Creates a builder intialized with an empty document.
start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
Creates a builder initialized with the given key/value.
start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
Creates an object builder from an existing map of key value pairs.
start() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
start() - Static method in class com.mongodb.QueryBuilder
Returns a new QueryBuilder.
start(String) - Static method in class com.mongodb.QueryBuilder
Creates a new query with a document key
start() - Method in class com.mongodb.ServerMonitor
 
startIndex - Variable in class com.mongodb.IndexMap.RangeBased
 
startPosition - Variable in class com.mongodb.BSONBinaryWriter.Context
 
startTime - Variable in class com.mongodb.DBPort.ActiveState
Deprecated.
 
state - Variable in class com.mongodb.BSONWriter
 
State() - Constructor for enum com.mongodb.BSONWriter.State
 
state - Variable in class com.mongodb.ServerDescription.Builder
 
state(ServerConnectionState) - Method in class com.mongodb.ServerDescription.Builder
 
state - Variable in class com.mongodb.ServerDescription
 
stateChanged(ChangeEvent<T>) - Method in interface com.mongodb.ChangeListener
A ChangeEvent has been fired to notify listeners that T has changed.
stateChanged(ChangeEvent<ServerDescription>) - Method in class com.mongodb.DefaultServer.DefaultServerStateListener
 
stateChanged(ChangeEvent<ServerDescription>) - Method in class com.mongodb.MultiServerCluster.DefaultServerStateListener
 
stateHasChanged(ServerDescription, ServerDescription) - Static method in class com.mongodb.ServerMonitor
 
step - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
stickTo - Variable in class com.mongodb.MongosHAServerSelector
 
string(StringBuilder, String) - Static method in class com.mongodb.util.JSON
 
STRING - Static variable in class org.bson.BSON
 
StringBuilderPool - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
StringBuilderPool(String, int) - Constructor for class com.mongodb.util.StringBuilderPool
Deprecated.
Initializes a pool of a given number of StringBuilders, each of a certain size.
StringParseUtil - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
StringParseUtil() - Constructor for class com.mongodb.util.StringParseUtil
Deprecated.
 
StringRangeSet - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in the next major release
StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
Deprecated.
 
StringSerializer() - Constructor for class com.mongodb.util.JSONSerializers.StringSerializer
 
StringType() - Constructor for enum com.mongodb.tools.ConnectionPoolStat.StringType
Deprecated.
 
StringUtils - Class in com.mongodb
 
StringUtils() - Constructor for class com.mongodb.StringUtils
 
subList(int, int) - Method in class org.bson.LazyBSONList
 
successor() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
Returns the next non-deleted node, swinging next pointer around any encountered deleted nodes, and also patching up successor's prev link to point back to this.
SYMBOL - Static variable in class org.bson.BSON
 
Symbol - Class in org.bson.types
Class to hold an instance of the BSON symbol type.
Symbol(String) - Constructor for class org.bson.types.Symbol
Construct a new instance with the given symbol.
SymbolSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.SymbolSerializer
 

T

Tag - Class in com.mongodb
A replica set tag.
Tag(String, String) - Constructor for class com.mongodb.Tag
Construct a new instance.
TaggableReadPreference - Class in com.mongodb
Abstract class for all preference which can be combined with tags
TaggableReadPreference() - Constructor for class com.mongodb.TaggableReadPreference
 
TaggableReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference
 
TaggableReadPreference.NearestReadPreference - Class in com.mongodb
Read from nearest node respective of tags.
TaggableReadPreference.PrimaryPreferredReadPreference - Class in com.mongodb
Read from primary if available, otherwise a secondary.
TaggableReadPreference.SecondaryPreferredReadPreference - Class in com.mongodb
Read from secondary if available, otherwise from primary, irrespective of tags.
TaggableReadPreference.SecondaryReadPreference - Class in com.mongodb
Read from secondary
TaggedReadPreference(Map<String, String>) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
TaggedReadPreference(DBObject) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
tags - Variable in class com.mongodb.ServerDescription.Builder
 
tagSet(TagSet) - Method in class com.mongodb.ServerDescription.Builder
 
tagSet - Variable in class com.mongodb.ServerDescription
 
TagSet - Class in com.mongodb
An immutable set of tags, used to select members of a replica set to use for read operations.
TagSet() - Constructor for class com.mongodb.TagSet
An empty set of tags.
TagSet(Tag) - Constructor for class com.mongodb.TagSet
A set of tags contain the single given tag
TagSet(List<Tag>) - Constructor for class com.mongodb.TagSet
A set of tags containing the given list of tags.
tagSetList - Variable in class com.mongodb.TaggableReadPreference
 
text(String) - Method in class com.mongodb.QueryBuilder
Equivalent to a $text operand.
text(String, String) - Method in class com.mongodb.QueryBuilder
Equivalent to a $text operand.
TEXT - Static variable in class com.mongodb.QueryOperators
 
threadHasPinnedRequest() - Method in class com.mongodb.DBTCPConnector.MyPort
Deprecated.
 
threadId - Variable in class com.mongodb.ConnectionPoolWaitQueueEvent
 
threadName - Variable in class com.mongodb.DBPort.ActiveState
Deprecated.
 
threadName - Variable in class com.mongodb.InUseConnectionBean
Deprecated.
 
ThreadPool<T> - Class in com.mongodb.util
Deprecated.
This class is no longer in use and should not have been public. It may be removed in a future release.
ThreadPool(String, int) - Constructor for class com.mongodb.util.ThreadPool
Deprecated.
Initializes a new thread pool with a given name and number of threads.
ThreadPool(String, int, int) - Constructor for class com.mongodb.util.ThreadPool
Deprecated.
Initializes a new thread pool with a given name, number of threads, and queue size.
ThreadPool.MyThread - Class in com.mongodb.util
Deprecated.
 
ThreadPool.MyThreadGroup - Class in com.mongodb.util
Deprecated.
 
ThreadSafe - Annotation Type in org.bson.util.annotations
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
threadsAllowedToBlockForConnectionMultiplier - Variable in class com.mongodb.MongoClientOptions.Builder
 
threadsAllowedToBlockForConnectionMultiplier(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the multiplier for number of threads allowed to block waiting for a connection.
threadsAllowedToBlockForConnectionMultiplier - Variable in class com.mongodb.MongoClientOptions
 
threadsAllowedToBlockForConnectionMultiplier - Variable in class com.mongodb.MongoOptions
Deprecated.
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.
ThreadUtil - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
ThreadUtil() - Constructor for class com.mongodb.util.ThreadUtil
Deprecated.
 
throwIfBypassDocumentValidationNotSupported(WriteConcern, Boolean, DBPort) - Method in class com.mongodb.DBCollectionImpl
 
throwIfIncompatible(ClusterDescription) - Method in class com.mongodb.BaseCluster
 
throwIfSizeExceedsLimit(int) - Method in class com.mongodb.BSONBinaryWriter
 
throwInvalidContextType(String, BSONContextType, BSONContextType...) - Method in class com.mongodb.BSONWriter
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
throwInvalidState(String, BSONWriter.State...) - Method in class com.mongodb.BSONWriter
Throws an InvalidOperationException when the method called is not valid for the current state.
throwOnError() - Method in class com.mongodb.BulkWriteBatchCombiner
 
throwOnError() - Method in class com.mongodb.CommandResult
Throws a CommandFailureException if the command failed.
throwOnQueryFailure(long, int) - Method in class com.mongodb.QueryResultIterator
 
TimeConstants - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
TimeConstants() - Constructor for class com.mongodb.util.TimeConstants
Deprecated.
 
TIMESTAMP - Static variable in class org.bson.BSON
 
toArray() - Method in class com.mongodb.ConcurrentLinkedDeque
Returns an array containing all of the elements in this deque, in proper sequence (from first to last element).
toArray(T[]) - Method in class com.mongodb.ConcurrentLinkedDeque
Returns an array containing all of the elements in this deque, in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
toArray() - Method in class com.mongodb.DBCursor
Converts this cursor to an array.
toArray(int) - Method in class com.mongodb.DBCursor
Converts this cursor to an array.
toArray() - Method in class org.bson.LazyBSONList
 
toArray(Object[]) - Method in class org.bson.LazyBSONList
 
toArray() - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
toArray(T[]) - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
 
toArray() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
toArray(T[]) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
toArray() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
toArray(T[]) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
toArray() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
toArray(T[]) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
toArrayList() - Method in class com.mongodb.ConcurrentLinkedDeque
Creates an array list and fills it with elements of this list.
toByteArray() - Method in class org.bson.io.OutputBuffer
Gets a copy of the buffered bytes.
toByteArray() - Method in class org.bson.types.ObjectId
Convert to a byte array.
toClientURI() - Method in class com.mongodb.MongoURI
 
toDBObject() - Method in class com.mongodb.GroupCommand
Turns this group command into the DBObject format of the command.
toDBObject() - Method in class com.mongodb.MapReduceCommand
Turns this command into a DBObject representation of this map reduce command.
toDBObject() - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
 
toDBObject() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
toDBObject() - Method in class com.mongodb.ReadPreference
Deprecated.
for internal use only
toDBObject() - Method in class com.mongodb.TaggableReadPreference
Deprecated.
toHex(byte[]) - Static method in class com.mongodb.util.Util
Converts the given byte buffer to a hexadecimal string using Integer.toHexString(int).
toHexString() - Method in class org.bson.types.ObjectId
Converts this instance into a 24-byte hexadecimal string representation.
toInt(Object) - Static method in class org.bson.BSON
Provides an integer representation of Boolean or Number.
toKey(MongoClientURI) - Method in class com.mongodb.Mongo.Holder
 
toMap() - Method in class com.mongodb.gridfs.GridFSFile
 
toMap() - Method in class com.mongodb.RawDBObject
Deprecated.
 
toMap() - Method in class com.mongodb.ReflectionDBObject
 
toMap() - Method in class org.bson.BasicBSONObject
Converts a DBObject to a map.
toMap() - Method in interface org.bson.BSONObject
Returns a map representing this BSONObject.
toMap() - Method in class org.bson.LazyBSONObject
 
toMap() - Method in class org.bson.types.BasicBSONList
 
toString() - Method in class com.mongodb.AcknowledgedBulkWriteResult
 
toString() - Method in class com.mongodb.AggregationOptions
 
toString() - Method in class com.mongodb.AnyServerSelector
 
toString() - Method in class com.mongodb.BasicDBList
Returns a JSON serialization of this object
toString() - Method in class com.mongodb.BasicDBObject
Returns a JSON serialization of this object
toString() - Method in class com.mongodb.BulkWriteError
 
toString() - Method in class com.mongodb.BulkWriteUpsert
 
toString() - Method in class com.mongodb.ChangeEvent
 
toString() - Method in class com.mongodb.ClusterDescription
 
toString() - Method in class com.mongodb.ClusterSettings
 
toString() - Method in class com.mongodb.CompositeServerSelector
 
toString() - Method in class com.mongodb.ConcurrentPool
 
toString() - Method in class com.mongodb.ConnectionPoolSettings
 
toString() - Method in class com.mongodb.DB
Returns the name of this database.
toString() - Method in class com.mongodb.DBAddress
Gets a String representation of address as host:port/databaseName.
toString() - Method in class com.mongodb.DBCollection
 
toString() - Method in class com.mongodb.DBCursor
 
toString() - Method in class com.mongodb.DBPointer
Deprecated.
 
toString() - Method in class com.mongodb.DBPort
Deprecated.
 
toString() - Method in class com.mongodb.DBRefBase
Deprecated.
 
toString() - Method in class com.mongodb.DefaultDBDecoder.DefaultFactory
 
toString() - Method in class com.mongodb.DefaultDBDecoder
 
toString() - Method in class com.mongodb.DefaultDBEncoder.DefaultFactory
 
toString() - Method in class com.mongodb.DefaultDBEncoder
 
toString() - Method in class com.mongodb.gridfs.GridFSFile
 
toString() - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
toString() - Method in class com.mongodb.LatencyMinimizingServerSelector
 
toString() - Method in class com.mongodb.MapReduceCommand
 
toString() - Method in class com.mongodb.MapReduceOutput
 
toString() - Method in class com.mongodb.Mongo
 
toString() - Method in class com.mongodb.MongoAuthority
 
toString() - Method in class com.mongodb.MongoClientOptions
 
toString() - Method in class com.mongodb.MongoClientURI
 
toString() - Method in class com.mongodb.MongoCredential
 
toString() - Method in class com.mongodb.MongoCredentialsStore
 
toString() - Method in class com.mongodb.MongoNamespace
Returns the standard MongoDB representation of a namespace, which is &lt;database&gt;.&lt;collection&gt;.
toString() - Method in class com.mongodb.MongoOptions
Deprecated.
 
toString() - Method in class com.mongodb.MongosHAServerSelector
 
toString() - Method in class com.mongodb.MongoURI
 
toString() - Method in class com.mongodb.RawDBObject
Deprecated.
 
toString() - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
 
toString() - Method in class com.mongodb.ReadPreferenceServerSelector
 
toString() - Method in class com.mongodb.ReplicaSetStatus
 
toString() - Method in class com.mongodb.Response
 
toString() - Method in class com.mongodb.ServerAddress
 
toString() - Method in class com.mongodb.ServerDescription
 
toString() - Method in class com.mongodb.ServerError
Deprecated.
 
toString() - Method in class com.mongodb.ServerVersion
 
toString() - Method in class com.mongodb.Tag
 
toString() - Method in class com.mongodb.TaggableReadPreference
 
toString() - Method in class com.mongodb.TagSet
 
toString() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
 
toString() - Method in class com.mongodb.util.Args
Deprecated.
 
toString() - Method in class com.mongodb.util.FastStack
Deprecated.
 
toString() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
toString() - Method in class com.mongodb.WriteConcern.Majority
 
toString() - Method in class com.mongodb.WriteConcern
 
toString() - Method in class com.mongodb.WriteConcernError
 
toString() - Method in class com.mongodb.WriteResult
 
toString() - Method in class org.bson.BasicBSONObject
Returns a JSON serialization of this object
toString() - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
toString() - Method in class org.bson.io.OutputBuffer
 
toString() - Method in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
toString() - Method in class org.bson.LazyBSONObject
Returns a JSON serialization of this object
toString() - Method in class org.bson.LazyDBList
Deprecated.
Returns a JSON serialization of this object
toString() - Method in class org.bson.types.BSONTimestamp
 
toString() - Method in class org.bson.types.Code
 
toString() - Method in class org.bson.types.MaxKey
 
toString() - Method in class org.bson.types.MinKey
 
toString() - Method in class org.bson.types.ObjectId
 
toString() - Method in class org.bson.types.Symbol
 
toString() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
 
toString() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
toStringBabble() - Method in class org.bson.types.ObjectId
Deprecated.
'babble' format is deprecated and will be removed in 3.0. Please use ObjectId.toHexString() instead.
toStringMongod() - Method in class org.bson.types.ObjectId
Deprecated.
ToStringSerializer() - Constructor for class com.mongodb.util.JSONSerializers.ToStringSerializer
 
toTags(DBObject) - Static method in class com.mongodb.ReadPreference
 
toTagsList(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
 
total - Variable in class com.mongodb.util.ConnectionPoolStatisticsBean
Deprecated.
 
trace(String) - Method in class com.mongodb.DBCollectionImpl
 
TRACE_LEVEL - Static variable in class com.mongodb.DBCollectionImpl
 
TRACE_LOGGER - Static variable in class com.mongodb.DBCollectionImpl
 
trailer - Variable in class com.mongodb.ConcurrentLinkedDeque
List trailer.
transform(Object) - Method in interface org.bson.Transformer
Turns the objectToTransform into some other Object.
Transformer - Interface in org.bson
Transforms objects that can be converted to BSON into other Java types, and vice versa.
translateBulkWriteException(BulkWriteException, WriteRequest.Type) - Method in class com.mongodb.DBCollectionImpl
 
translateBulkWriteResult(BulkWriteResult, WriteRequest.Type, WriteConcern, ServerAddress) - Method in class com.mongodb.DBCollectionImpl
 
translateExceptionToString() - Method in class com.mongodb.ServerDescription
 
truncateToPosition(int) - Method in class org.bson.io.OutputBuffer
Truncates the buffer to the given new position, which must be greater than or equal to zero and less than or equal to the current size of this buffer.
truncateToPosition(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
tryGetLastError(DB, long, WriteConcern) - Method in class com.mongodb.DBPort
Deprecated.
 
tryHasNext() - Method in class com.mongodb.QueryResultIterator
 
tryNext() - Method in class com.mongodb.DBCursor
Non blocking check for tailable cursors to see if another object is available.
type - Variable in class com.mongodb.ClusterDescription
 
type - Variable in class com.mongodb.DBCollectionImpl.Run
 
type - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
type - Variable in class com.mongodb.MongoAuthority
 
Type() - Constructor for enum com.mongodb.MongoAuthority.Type
 
TYPE - Static variable in class com.mongodb.QueryOperators
 
type - Variable in class com.mongodb.ServerDescription.Builder
 
type(ServerType) - Method in class com.mongodb.ServerDescription.Builder
 
type - Variable in class com.mongodb.ServerDescription
 
Type() - Constructor for enum com.mongodb.WriteRequest.Type
 
type - Variable in class org.bson.LazyBSONObject.ElementRecord
The offset the record begins at.
Type() - Constructor for enum org.bson.util.AbstractCopyOnWriteMap.View.Type
 

U

UNACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
Write operations that use this write concern will return as soon as the message is written to the socket.
UnacknowledgedBulkWriteResult - Class in com.mongodb
 
UnacknowledgedBulkWriteResult() - Constructor for class com.mongodb.UnacknowledgedBulkWriteResult
 
UnacknowledgedWriteException - Exception in com.mongodb
Deprecated.
Catch instead
UnacknowledgedWriteException(String) - Constructor for exception com.mongodb.UnacknowledgedWriteException
Deprecated.
Constructs a new instance with the given message.
uncaughtException(Thread, Throwable) - Method in class com.mongodb.util.ThreadPool.MyThreadGroup
Deprecated.
 
UNDEFINED - Static variable in class org.bson.BSON
 
UNIQUE_DOCS - Static variable in class com.mongodb.QueryOperators
 
UniqueList<T> - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
UniqueList() - Constructor for class com.mongodb.util.UniqueList
Deprecated.
 
unlock() - Method in class com.mongodb.Mongo
Unlocks the database, allowing the write operations to go through.
UnmodifiableIterator(Iterator<T>) - Constructor for class org.bson.util.AbstractCopyOnWriteMap.UnmodifiableIterator
 
UnorderedRunGenerator(List<WriteRequest>, Boolean, WriteConcern, DBEncoder, DBPort) - Constructor for class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
unregisterMBean(String) - Method in class com.mongodb.util.management.jmx.JMXMBeanServer
Deprecated.
 
unregisterMBean(String) - Method in interface com.mongodb.util.management.MBeanServer
Deprecated.
 
unregisterMBean(String) - Method in class com.mongodb.util.management.NullMBeanServer
Deprecated.
 
unsupported - Variable in enum org.bson.BSON.RegexFlag
 
unwrap(byte[], int, int) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
update(DBObject) - Method in class com.mongodb.BulkUpdateRequestBuilder
Adds a request to update all documents in the collection that match the query with which this builder was created.
update(DBObject) - Method in class com.mongodb.BulkWriteRequestBuilder
Adds a request to update all documents in the collection that match the query with which this builder was created.
update(DBObject, DBObject, boolean, boolean, WriteConcern) - Method in class com.mongodb.DBCollection
Modify an existing document or documents in collection.
update(DBObject, DBObject, boolean, boolean, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Modify an existing document or documents in collection.
update(DBObject, DBObject, boolean, boolean, WriteConcern, boolean, DBEncoder) - Method in class com.mongodb.DBCollection
Modify an existing document or documents in collection.
update(DBObject, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
Modify an existing document or documents in collection.
update(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Modify an existing document or documents in collection.
update(DBCollection, DBEncoder, boolean, boolean, DBObject, DBObject) - Static method in class com.mongodb.OutMessage
 
Update - Class in com.mongodb
 
Update(DBObject, DBObject) - Constructor for class com.mongodb.Update
 
UpdateCommandMessage - Class in com.mongodb
 
UpdateCommandMessage(MongoNamespace, WriteConcern, Boolean, List<ModifyRequest>, DBEncoder, DBEncoder, MessageSettings) - Constructor for class com.mongodb.UpdateCommandMessage
 
updateDescription(ClusterDescription) - Method in class com.mongodb.BaseCluster
 
updateDescription() - Method in class com.mongodb.MultiServerCluster
 
updateDocument - Variable in class com.mongodb.ModifyRequest
 
updateImpl(DBObject, DBObject, boolean, boolean, WriteConcern, Boolean, DBEncoder) - Method in class com.mongodb.DBCollection
Modify an existing document or documents in collection.
updateImpl(DBObject, DBObject, boolean, boolean, WriteConcern, Boolean, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
 
updateMulti(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Modify documents in collection.
updateOne(DBObject) - Method in class com.mongodb.BulkUpdateRequestBuilder
Adds a request to update one document in the collection that matches the query with which this builder was created.
updateOne(DBObject) - Method in class com.mongodb.BulkWriteRequestBuilder
Adds a request to update one document in the collection that matches the query with which this builder was created.
updateOperations - Variable in class com.mongodb.Update
 
updatePortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
Deprecated.
Assigns a new DBPortPool for a given ServerAddress.
UpdateRequest - Class in com.mongodb
 
UpdateRequest(DBObject, boolean, DBObject, boolean) - Constructor for class com.mongodb.UpdateRequest
 
updates - Variable in class com.mongodb.UpdateCommandMessage
 
updateWithCommandProtocol(List<ModifyRequest>, WriteConcern, Boolean, DBEncoder, DBPort) - Method in class com.mongodb.DBCollectionImpl
 
upsert - Variable in class com.mongodb.BulkUpdateRequestBuilder
 
upsert() - Method in class com.mongodb.BulkWriteRequestBuilder
Specifies that the request being built should be an upsert.
upsert - Variable in class com.mongodb.ModifyRequest
 
upsert(boolean) - Method in class com.mongodb.Update
 
upserts - Variable in class com.mongodb.AcknowledgedBulkWriteResult
 
uri - Static variable in class com.mongodb.gridfs.CLI
 
uri - Variable in class com.mongodb.MongoClientURI
 
usable(ConcurrentLinkedDeque.Node<?>) - Static method in class com.mongodb.ConcurrentLinkedDeque
Returns true if given reference is non-null and isn't a header, trailer, or marker.
usageCount - Variable in class com.mongodb.DBPort
Deprecated.
 
USE_NAGLE - Static variable in class com.mongodb.DBPort
Deprecated.
 
userName - Variable in class com.mongodb.MongoCredential
 
useServerDefault() - Method in class com.mongodb.WriteConcern
Use the server default only if w == 1 and everything else is the default value.
useWriteCommands(WriteConcern, DBPort) - Method in class com.mongodb.DBCollectionImpl
 
UTF8Encoding - Class in org.bson.io
 
UTF8Encoding() - Constructor for class org.bson.io.UTF8Encoding
 
UTF_8 - Static variable in class com.mongodb.MongoClientURI
 
Util - Class in com.mongodb.util
Misc utility helpers.
Util() - Constructor for class com.mongodb.util.Util
 
UUIDSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.UUIDSerializer
 

V

VALID_FIELDS - Static variable in class com.mongodb.gridfs.GridFSFile
 
validate() - Method in class com.mongodb.gridfs.GridFSFile
Verifies that the MD5 matches between the database and the local file.
validateKey(String) - Method in class com.mongodb.DBCollection
Check for invalid key names
value - Variable in enum com.mongodb.BSONBinarySubType
 
value - Variable in enum com.mongodb.BSONType
 
value - Variable in enum com.mongodb.OutMessage.OpCode
 
value - Variable in enum com.mongodb.RequestMessage.OpCode
 
value - Variable in class com.mongodb.Tag
 
valueOf(String) - Static method in enum com.mongodb.AggregationOptions.OutputMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.BSONBinarySubType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.BSONContextType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.BSONType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.BSONWriter.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ClusterConnectionMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ClusterType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.DBCursor.CursorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.MapReduceCommand.OutputType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.MongoAuthority.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.OutMessage.OpCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.mongodb.ReadPreference
Creates a read preference from the given read preference name.
valueOf(String, List<TagSet>) - Static method in class com.mongodb.ReadPreference
Creates a taggable read preference from the given read preference name and list of tag sets.
valueOf(String, DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
Deprecated.
use method that takes a List<TagSet>
valueOf(String) - Static method in enum com.mongodb.RequestMessage.OpCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ServerConnectionState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.ServerType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.tools.ConnectionPoolStat.Position
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mongodb.tools.ConnectionPoolStat.StringType
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.mongodb.WriteConcern
Gets the WriteConcern constants by name (matching is done case insensitively).
valueOf(String) - Static method in enum com.mongodb.WriteRequest.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.bson.BSON.RegexFlag
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.bson.util.AbstractCopyOnWriteMap.View.Type
Returns the enum constant of this type with the specified name.
valueOffset - Variable in class org.bson.LazyBSONObject.ElementRecord
 
values() - Static method in enum com.mongodb.AggregationOptions.OutputMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.BSONBinarySubType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.BSONContextType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.BSONType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.BSONWriter.State
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ClusterConnectionMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ClusterType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.DBCursor.CursorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.MapReduceCommand.OutputType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.MongoAuthority.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.OutMessage.OpCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.RequestMessage.OpCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ServerConnectionState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.ServerType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.tools.ConnectionPoolStat.Position
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.tools.ConnectionPoolStat.StringType
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mongodb.WriteRequest.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.bson.BSON.RegexFlag
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class org.bson.util.AbstractCopyOnWriteMap.Immutable
 
values - Variable in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
values() - Method in class org.bson.util.AbstractCopyOnWriteMap.Mutable
 
values() - Method in class org.bson.util.AbstractCopyOnWriteMap
 
Values() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.Values
 
values() - Static method in enum org.bson.util.AbstractCopyOnWriteMap.View.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class org.bson.util.AbstractCopyOnWriteMap.View
 
values() - Method in class org.bson.util.ComputingMap
 
version - Variable in class com.mongodb.ServerDescription.Builder
 
version(ServerVersion) - Method in class com.mongodb.ServerDescription.Builder
 
version - Variable in class com.mongodb.ServerDescription
 
versionList - Variable in class com.mongodb.ServerVersion
 
view - Variable in class org.bson.util.AbstractCopyOnWriteMap
 
View() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.View
 
viewType - Variable in class org.bson.util.CopyOnWriteMap.Builder
 

W

w - Variable in class com.mongodb.MongoOptions
Deprecated.
The "w" value, (number of writes), of the global WriteConcern.
waitForNext() - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
 
waitForSignalOrTimeout() - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
 
waitQueueEntered(ConnectionPoolWaitQueueEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection pool's wait queue is entered.
waitQueueEntered(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
waitQueueEntered(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.ConnectionPoolStatistics
 
waitQueueEntered(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
waitQueueEntered(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
waitQueueExited(ConnectionPoolWaitQueueEvent) - Method in interface com.mongodb.ConnectionPoolListener
Invoked when a connection pools wait queue is exited.
waitQueueExited(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
 
waitQueueExited(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.ConnectionPoolStatistics
 
waitQueueExited(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.JMXConnectionPoolListener
 
waitQueueExited(ConnectionPoolWaitQueueEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
 
waitQueueSize - Variable in class com.mongodb.ConnectionPoolStatistics
 
waitQueueSize - Variable in class com.mongodb.PooledConnectionProvider
 
warnOnUnsupportedOptions(Map<String, List<String>>) - Method in class com.mongodb.MongoClientURI
 
WeakBag<T> - Class in com.mongodb.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
WeakBag() - Constructor for class com.mongodb.util.WeakBag
Deprecated.
Initializes a new weak bag.
WeakBag.MyRef - Class in com.mongodb.util
Deprecated.
 
WHERE - Static variable in class com.mongodb.QueryOperators
 
willTrace() - Method in class com.mongodb.DBCollectionImpl
 
WITHIN - Static variable in class com.mongodb.QueryOperators
 
withinBox(double, double, double, double) - Method in class com.mongodb.QueryBuilder
Equivalent to a $within operand, based on a bounding box using represented by two corners
withinCenter(double, double, double) - Method in class com.mongodb.QueryBuilder
Equivalent of the $within operand, used for geospatial operation
withinCenterSphere(double, double, double) - Method in class com.mongodb.QueryBuilder
Equivalent of the $centerSphere operand mostly intended for queries up to a few hundred miles or km.
withinPolygon(List<Double[]>) - Method in class com.mongodb.QueryBuilder
Equivalent to a $within operand, based on a bounding polygon represented by an array of points
withMechanismProperty(String, T) - Method in class com.mongodb.MongoCredential
Creates a new MongoCredential as a copy of this instance, with the specified mechanism property added.
withTags(Map<String, String>) - Static method in class com.mongodb.ReadPreference
Deprecated.
As of release 2.9.0, replaced by ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
withTags(DBObject) - Static method in class com.mongodb.ReadPreference
Deprecated.
As of release 2.9.0, replaced by ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
wrap(byte[], int, int) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 
wrap(byte[], int, int) - Static method in class org.bson.io.BSONByteBuffer
Deprecated.
 
wrap(byte[]) - Static method in class org.bson.io.BSONByteBuffer
Deprecated.
 
wrapCommand(DBObject, ReadPreference) - Method in class com.mongodb.DB
 
wrapped - Variable in class com.mongodb.BaseCluster.WrappedServer
 
wrapped - Variable in class com.mongodb.TagSet
 
WrappedServer(ClusterableServer) - Constructor for class com.mongodb.BaseCluster.WrappedServer
 
write(int) - Method in class com.mongodb.gridfs.GridFSInputFile.MyOutputStream
 
write(byte[], int, int) - Method in class com.mongodb.gridfs.GridFSInputFile.MyOutputStream
 
write(byte[]) - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
write(byte[], int, int) - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
write(int) - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
write(ByteBuffer) - Method in interface com.mongodb.io.ByteStream
Deprecated.
 
write(byte[]) - Method in class org.bson.io.BasicOutputBuffer
 
write(byte[], int, int) - Method in class org.bson.io.BasicOutputBuffer
 
write(int) - Method in class org.bson.io.BasicOutputBuffer
 
write(byte[]) - Method in class org.bson.io.OutputBuffer
 
write(byte[], int, int) - Method in class org.bson.io.OutputBuffer
 
write(int) - Method in class org.bson.io.OutputBuffer
 
write(byte[]) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
write(byte[], int, int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
write(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
writeable - Variable in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
writeBinaryData(Binary) - Method in class com.mongodb.BSONBinaryWriter
 
writeBinaryData(Binary) - Method in class com.mongodb.BSONWriter
Writes a BSON Binary data element to the writer.
writeBinaryData(String, Binary) - Method in class com.mongodb.BSONWriter
Writes a BSON Binary data element to the writer.
writeBoolean(boolean) - Method in class com.mongodb.BSONBinaryWriter
 
writeBoolean(boolean) - Method in class com.mongodb.BSONWriter
Writes a BSON Boolean to the writer.
writeBoolean(String, boolean) - Method in class com.mongodb.BSONWriter
Writes a BSON Boolean element to the writer.
writeCommandHeader(OutputBuffer) - Method in class com.mongodb.BaseWriteCommandMessage
 
writeCommandPrologue(BSONBinaryWriter) - Method in class com.mongodb.BaseWriteCommandMessage
 
WriteCommandResultHelper - Class in com.mongodb
 
WriteCommandResultHelper() - Constructor for class com.mongodb.WriteCommandResultHelper
 
writeConcern - Variable in class com.mongodb.BaseWriteCommandMessage
 
writeConcern - Variable in class com.mongodb.BulkWriteBatchCombiner
 
writeConcern - Variable in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
writeConcern - Variable in class com.mongodb.DBCollectionImpl.Run
 
writeConcern - Variable in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
writeConcern - Variable in class com.mongodb.InsertOptions
 
writeConcern(WriteConcern) - Method in class com.mongodb.InsertOptions
Set the write concern to use for the insert.
writeConcern - Variable in class com.mongodb.MongoClientOptions.Builder
 
writeConcern(WriteConcern) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the write concern.
writeConcern - Variable in class com.mongodb.MongoClientOptions
 
writeConcern - Variable in class com.mongodb.MongoOptions
Deprecated.
Sets the write concern.
WriteConcern - Class in com.mongodb
Controls the acknowledgment of write operations with various options.
WriteConcern() - Constructor for class com.mongodb.WriteConcern
Default constructor keeping all options as default.
WriteConcern(int) - Constructor for class com.mongodb.WriteConcern
Calls WriteConcern(int, int, boolean) with wtimeout=0 and fsync=false
WriteConcern(String) - Constructor for class com.mongodb.WriteConcern
Tag based Write Concern with wtimeout=0, fsync=false, and j=false
WriteConcern(int, int) - Constructor for class com.mongodb.WriteConcern
Calls WriteConcern(int, int, boolean) with fsync=false
WriteConcern(boolean) - Constructor for class com.mongodb.WriteConcern
Calls WriteConcern(int, int, boolean) with w=1 and wtimeout=0
WriteConcern(int, int, boolean) - Constructor for class com.mongodb.WriteConcern
Creates a WriteConcern object.
WriteConcern(int, int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
Creates a WriteConcern object.
WriteConcern(int, int, boolean, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
Deprecated.
the preferred way to specify continueOnError is to use write methods that explicitly specify the value of this property
WriteConcern(String, int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
Creates a WriteConcern object.
WriteConcern(String, int, boolean, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
Deprecated.
the preferred way to specify continueOnError is to use write methods that explicitly specify the value of this property
WriteConcern.Majority - Class in com.mongodb
A write concern that blocks acknowledgement of a write operation until a majority of replica set members have applied it.
writeConcernError - Variable in exception com.mongodb.BulkWriteException
 
WriteConcernError - Class in com.mongodb
An error representing a failure by the server to apply the requested write concern to the bulk operation.
WriteConcernError(int, String, DBObject) - Constructor for class com.mongodb.WriteConcernError
Constructs a new instance.
writeConcernErrors - Variable in class com.mongodb.BulkWriteBatchCombiner
 
WriteConcernException - Exception in com.mongodb
An exception representing an error reported due to a write failure.
WriteConcernException(CommandResult) - Constructor for exception com.mongodb.WriteConcernException
Deprecated.
for internal use only, this constructor will be removed in the next major release
WriteConcernException(int, CommandResult) - Constructor for exception com.mongodb.WriteConcernException
 
writeConcernKeys - Static variable in class com.mongodb.MongoClientURI
 
writeCString(String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeCString(String).
writeCString(String) - Method in class org.bson.io.OutputBuffer
Writes C string (null-terminated string) to underlying buffer.
writeCString(String, boolean) - Method in class org.bson.io.OutputBuffer
 
writeCurrentName() - Method in class com.mongodb.BSONBinaryWriter
 
writeDateTime(long) - Method in class com.mongodb.BSONBinaryWriter
 
writeDateTime(long) - Method in class com.mongodb.BSONWriter
Writes a BSON DateTime to the writer.
writeDateTime(String, long) - Method in class com.mongodb.BSONWriter
Writes a BSON DateTime element to the writer.
writeDouble(double) - Method in class com.mongodb.BSONBinaryWriter
 
writeDouble(double) - Method in class com.mongodb.BSONWriter
Writes a BSON Double to the writer.
writeDouble(String, double) - Method in class com.mongodb.BSONWriter
Writes a BSON Double element to the writer.
writeDouble(double) - Method in class org.bson.io.OutputBuffer
Writes a BSON double to the stream.
writeEndArray() - Method in class com.mongodb.BSONBinaryWriter
 
writeEndArray() - Method in class com.mongodb.BSONWriter
Writes the end of a BSON array to the writer.
writeEndDocument() - Method in class com.mongodb.BSONBinaryWriter
 
writeEndDocument() - Method in class com.mongodb.BSONWriter
Writes the end of a BSON document to the writer.
writeErrors - Variable in class com.mongodb.BulkWriteBatchCombiner
 
writeErrors - Variable in exception com.mongodb.BulkWriteException
 
writeGetMore(long, int) - Method in class com.mongodb.OutMessage
 
writeInsertPrologue(WriteConcern) - Method in class com.mongodb.OutMessage
 
writeInt(int) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeInt(int).
writeInt(int) - Method in class org.bson.io.OutputBuffer
Writes the given integer value to the buffer.
writeInt(int, int) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
writeInt32(int) - Method in class com.mongodb.BSONBinaryWriter
 
writeInt32(int) - Method in class com.mongodb.BSONWriter
Writes a BSON Int32 to the writer.
writeInt32(String, int) - Method in class com.mongodb.BSONWriter
Writes a BSON Int32 element to the writer.
writeInt64(long) - Method in class com.mongodb.BSONBinaryWriter
 
writeInt64(long) - Method in class com.mongodb.BSONWriter
Writes a BSON Int64 to the writer.
writeInt64(String, long) - Method in class com.mongodb.BSONWriter
Writes a BSON Int64 element to the writer.
writeIntBE(int) - Method in class org.bson.io.OutputBuffer
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
writeJavaScript(String) - Method in class com.mongodb.BSONBinaryWriter
 
writeJavaScript(String) - Method in class com.mongodb.BSONWriter
Writes a BSON JavaScript to the writer.
writeJavaScript(String, String) - Method in class com.mongodb.BSONWriter
Writes a BSON JavaScript element to the writer.
writeJavaScriptWithScope(String) - Method in class com.mongodb.BSONBinaryWriter
 
writeJavaScriptWithScope(String) - Method in class com.mongodb.BSONWriter
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
writeJavaScriptWithScope(String, String) - Method in class com.mongodb.BSONWriter
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).
writeKillCursorsPrologue(int) - Method in class com.mongodb.OutMessage
 
writeLong(long) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeLong(long).
writeLong(long) - Method in class org.bson.io.OutputBuffer
Writes the given long value to the buffer.
writeMaxKey() - Method in class com.mongodb.BSONBinaryWriter
 
writeMaxKey() - Method in class com.mongodb.BSONWriter
Writes a BSON MaxKey to the writer.
writeMaxKey(String) - Method in class com.mongodb.BSONWriter
Writes a BSON MaxKey element to the writer.
writeMessagePrologue(OutMessage.OpCode) - Method in class com.mongodb.OutMessage
 
writeMessagePrologue(OutputBuffer) - Method in class com.mongodb.RequestMessage
 
writeMinKey() - Method in class com.mongodb.BSONBinaryWriter
 
writeMinKey() - Method in class com.mongodb.BSONWriter
Writes a BSON MinKey to the writer.
writeMinKey(String) - Method in class com.mongodb.BSONWriter
Writes a BSON MinKey element to the writer.
writeName(String) - Method in class com.mongodb.BSONWriter
Writes the name of an element to the writer.
writeNamespace - Variable in class com.mongodb.BaseWriteCommandMessage
 
writeNull() - Method in class com.mongodb.BSONBinaryWriter
 
writeNull() - Method in class com.mongodb.BSONWriter
Writes a BSON null to the writer.
writeNull(String) - Method in class com.mongodb.BSONWriter
Writes a BSON null element to the writer.
writeObject(OutputBuffer, BSONObject) - Method in interface com.mongodb.DBEncoder
Encode the BSONObject.
writeObject(OutputBuffer, BSONObject) - Method in class com.mongodb.DefaultDBEncoder
 
writeObject(OutputBuffer, BSONObject) - Method in class com.mongodb.LazyDBEncoder
 
writeObjectId(ObjectId) - Method in class com.mongodb.BSONBinaryWriter
 
writeObjectId(ObjectId) - Method in class com.mongodb.BSONWriter
Writes a BSON ObjectId to the writer.
writeObjectId(String, ObjectId) - Method in class com.mongodb.BSONWriter
Writes a BSON ObjectId element to the writer.
writeQuery(DBObject, int, int) - Method in class com.mongodb.OutMessage
 
writeRemove(boolean) - Method in class com.mongodb.OutMessage
 
WriteRequest - Class in com.mongodb
 
WriteRequest() - Constructor for class com.mongodb.WriteRequest
 
WriteRequest.Type - Enum in com.mongodb
 
writeRequests - Variable in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
 
writeRequests - Variable in class com.mongodb.DBCollectionImpl.Run
 
writeRequests - Variable in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
 
writeResult - Variable in exception com.mongodb.BulkWriteException
 
WriteResult - Class in com.mongodb
This class lets you access the results of the previous write.
WriteResult(CommandResult, WriteConcern) - Constructor for class com.mongodb.WriteResult
 
WriteResult(DB, DBPort, WriteConcern) - Constructor for class com.mongodb.WriteResult
 
writeStartArray() - Method in class com.mongodb.BSONBinaryWriter
 
writeStartArray() - Method in class com.mongodb.BSONWriter
Writes the start of a BSON array to the writer.
writeStartArray(String) - Method in class com.mongodb.BSONWriter
Writes the start of a BSON array element to the writer.
writeStartDocument() - Method in class com.mongodb.BSONBinaryWriter
 
writeStartDocument() - Method in class com.mongodb.BSONWriter
Writes the start of a BSON document to the writer.
writeStartDocument(String) - Method in class com.mongodb.BSONWriter
Writes the start of a BSON document element to the writer.
writeString(String) - Method in class com.mongodb.BSONBinaryWriter
 
writeString(String) - Method in class com.mongodb.BSONWriter
Writes a BSON String to the writer.
writeString(String, String) - Method in class com.mongodb.BSONWriter
Writes a BSON String element to the writer.
writeString(String) - Method in class org.bson.io.OutputBuffer
Writes a BSON String to the stream.
writeSymbol(String) - Method in class com.mongodb.BSONBinaryWriter
 
writeSymbol(String) - Method in class com.mongodb.BSONWriter
Writes a BSON Symbol to the writer.
writeSymbol(String, String) - Method in class com.mongodb.BSONWriter
Writes a BSON Symbol element to the writer.
writeTheWrites(OutputBuffer, int, BSONBinaryWriter) - Method in class com.mongodb.BaseWriteCommandMessage
 
writeTheWrites(OutputBuffer, int, BSONBinaryWriter) - Method in class com.mongodb.DeleteCommandMessage
 
writeTheWrites(OutputBuffer, int, BSONBinaryWriter) - Method in class com.mongodb.InsertCommandMessage
 
writeTheWrites(OutputBuffer, int, BSONBinaryWriter) - Method in class com.mongodb.UpdateCommandMessage
 
writeTimestamp(BSONTimestamp) - Method in class com.mongodb.BSONBinaryWriter
 
writeTimestamp(BSONTimestamp) - Method in class com.mongodb.BSONWriter
Writes a BSON Timestamp to the writer.
writeTimestamp(String, BSONTimestamp) - Method in class com.mongodb.BSONWriter
Writes a BSON Timestamp element to the writer.
writeTo(String) - Method in class com.mongodb.gridfs.GridFSDBFile
Writes the file's data to a file on disk.
writeTo(File) - Method in class com.mongodb.gridfs.GridFSDBFile
Writes the file's data to a file on disk.
writeTo(OutputStream) - Method in class com.mongodb.gridfs.GridFSDBFile
Writes the file's data to an OutputStream.
writeUndefined() - Method in class com.mongodb.BSONBinaryWriter
 
writeUndefined() - Method in class com.mongodb.BSONWriter
Writes a BSON undefined to the writer.
writeUndefined(String) - Method in class com.mongodb.BSONWriter
Writes a BSON undefined element to the writer.
writeUpdate(boolean, boolean, DBObject, DBObject) - Method in class com.mongodb.OutMessage
 
writeUpserts - Variable in class com.mongodb.BulkWriteBatchCombiner
 
writeWithCommandProtocol(DBPort, WriteRequest.Type, BaseWriteCommandMessage, WriteConcern) - Method in class com.mongodb.DBCollectionImpl
 
wtimeout - Variable in class com.mongodb.MongoOptions
Deprecated.
The "wtimeout" value of the global WriteConcern.

X

x - Variable in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 
X509Authenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.X509Authenticator
Deprecated.
 
XOR(byte[], byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
Deprecated.
 

Y

y - Variable in class org.bson.io.PoolOutputBuffer.Position
Deprecated.
 

_

_activeState - Variable in class com.mongodb.DBPort
Deprecated.
 
_addBucket() - Method in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
_addr - Variable in class com.mongodb.DBPort
Deprecated.
 
_addr - Variable in class com.mongodb.DBPortPool
Deprecated.
 
_afterWrite() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_aliases - Variable in class com.mongodb.gridfs.GridFSFile
 
_all - Variable in class com.mongodb.DBCursor
 
_ancestryCache - Static variable in class org.bson.util.ClassAncestry
 
_anyHooks() - Static method in class org.bson.BSON
Returns true if any encoding or decoding hooks are loaded.
_applyMongoOptions() - Method in class com.mongodb.Mongo
Helper method for setting up MongoOptions at instantiation so that any options which affect this connection can be set.
_authority - Variable in class com.mongodb.Mongo
 
_avail - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_batchSize - Variable in class com.mongodb.DBCursor
 
_batchSize - Variable in class com.mongodb.QueryResultIterator
 
_binary(String) - Method in class org.bson.BasicBSONDecoder
Deprecated.
This method should not be a part of API. Please see the class-level documentation for a migration instructions.
_binary(String) - Method in class org.bson.NewBSONDecoder
Deprecated.
 
_bucketName - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getBucketName() for access.
_buf - Variable in class com.mongodb.RawDBObject
Deprecated.
 
_buf - Variable in class org.bson.BasicBSONEncoder
Deprecated.
_buffer - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_buffer - Variable in class com.mongodb.OutMessage
 
_buffer - Variable in class org.bson.io.BasicOutputBuffer
 
_bufferPool - Variable in class com.mongodb.Mongo
 
_buffers - Variable in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
_bufSize - Static variable in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
_bypassDocumentValidation - Variable in class com.mongodb.MapReduceCommand
 
_cached - Variable in class com.mongodb.RawDBObject.Element
Deprecated.
 
_callback - Variable in class com.mongodb.util.JSONParser
 
_callback - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_callback - Variable in class org.bson.LazyBSONObject
Deprecated.
This field is NOT a part of public API and will be dropped in 3.x versions.
_callback - Variable in class org.bson.NewBSONDecoder
Deprecated.
 
_chars - Variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_check(String, String) - Static method in class com.mongodb.DBAddress
 
_check() - Method in class com.mongodb.DBCursor
 
_checkKeys(DBObject) - Method in class com.mongodb.DBCollection
Checks key strings for invalid characters.
_checkKeys(Map<String, Object>) - Method in class com.mongodb.DBCollection
Checks key strings for invalid characters.
_checkObject(DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
Deprecated.
This method should not be a part of API. If you override one of the DBCollection methods please rely on superclass implementation in checking argument correctness and validity.
_checkType(DBCursor.CursorType) - Method in class com.mongodb.DBCursor
 
_checkValue(Object) - Method in class com.mongodb.DBCollection
 
_checkValues(List) - Method in class com.mongodb.DBCollection
 
_checkWriteError(DB, DBPort, WriteConcern) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
_chunkCollection - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getChunksCollection() for access.
_chunkSize - Variable in class com.mongodb.gridfs.GridFSFile
 
_class - Variable in class com.mongodb.ReflectionDBObject.FieldInfo
 
_class - Variable in class com.mongodb.ReflectionDBObject.JavaWrapper
 
_cleaner - Variable in class com.mongodb.Mongo
 
_closed - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
_closed - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_closeStreamOnPersist - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_cmd - Variable in class com.mongodb.AggregationOutput
Deprecated.
Please use AggregationOutput.getCommand() instead.
_cmd - Variable in class com.mongodb.MapReduceOutput
 
_code - Variable in exception com.mongodb.MongoException
 
_code - Variable in class com.mongodb.ServerError
Deprecated.
 
_code - Variable in class org.bson.types.Code
 
_coll - Variable in class com.mongodb.MapReduceOutput
 
_collection - Variable in class com.mongodb.DBCursor
 
_collection - Variable in class com.mongodb.DefaultDBCallback
 
_collection - Variable in class com.mongodb.LazyDBCallback
 
_collection - Variable in class com.mongodb.OutMessage
 
_collection - Variable in class com.mongodb.QueryResultIterator
 
_collections - Variable in class com.mongodb.DBApiLayer
Deprecated.
 
_collname - Variable in class com.mongodb.MapReduceOutput
 
_commandResult - Variable in class com.mongodb.AggregationOutput
Deprecated.
_commandResult - Variable in class com.mongodb.MapReduceOutput
 
_compareUnsigned(int, int) - Method in class org.bson.types.ObjectId
 
_concern - Variable in class com.mongodb.DB
 
_concern - Variable in class com.mongodb.DBCollection
 
_concern - Variable in class com.mongodb.Mongo
 
_connector - Variable in class com.mongodb.DBApiLayer
Deprecated.
 
_connector - Variable in class com.mongodb.Mongo
 
_contentType - Variable in class com.mongodb.gridfs.GridFSFile
 
_continueOnError - Variable in class com.mongodb.WriteConcern
 
_counts - Variable in class com.mongodb.MapReduceOutput
 
_create(List<String>) - Method in class com.mongodb.DefaultDBCallback
 
_createdIndexes - Variable in class com.mongodb.DBCollection
Deprecated.
This will be removed in 3.0
_cStrBuf - Static variable in class com.mongodb.RawDBObject
Deprecated.
 
_cStrLength(int) - Method in class com.mongodb.RawDBObject
Deprecated.
includes 0 at end
_cur() - Method in class com.mongodb.BasicDBObjectBuilder
 
_cur - Variable in class com.mongodb.DBCursor
 
_cur - Variable in class com.mongodb.QueryResultIterator
 
_cur - Variable in class org.bson.io.BasicOutputBuffer
 
_cur - Variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_cur() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_currentBufferPosition - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_currentChunkIdx - Variable in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
_currentChunkNumber - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_currentKey - Variable in class com.mongodb.QueryBuilder
 
_curSize - Variable in class com.mongodb.QueryResultIterator
 
_cursor - Variable in class com.mongodb.Response
 
_cursorId - Variable in class com.mongodb.QueryResultIterator
 
_cursorType - Variable in class com.mongodb.DBCursor
 
_data - Variable in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
_data - Variable in class com.mongodb.util.FastStack
Deprecated.
 
_data - Variable in class org.bson.NewBSONDecoder
Deprecated.
 
_data - Variable in class org.bson.types.Binary
 
_dataStart - Variable in class com.mongodb.RawDBObject.Element
Deprecated.
 
_db - Variable in class com.mongodb.DBAddress
 
_db - Variable in class com.mongodb.DBCollection
 
_db - Variable in class com.mongodb.DBRefBase
Deprecated.
 
_db - Variable in class com.mongodb.DefaultDBCallback
 
_db - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getDB() for access.
_db - Variable in class com.mongodb.LazyDBCallback
 
_db - Variable in class com.mongodb.QueryResultIterator
 
_db - Variable in class com.mongodb.WriteResult
 
_dbname - Variable in class com.mongodb.MapReduceOutput
 
_dbs - Variable in class com.mongodb.Mongo
 
_deadCursorIds - Variable in class com.mongodb.DBApiLayer
Deprecated.
 
_decode(BasicBSONDecoder.BSONInput, BSONCallback) - Method in class org.bson.BasicBSONDecoder
 
_decode() - Method in class org.bson.NewBSONDecoder
Deprecated.
 
_decodeHooks - Static variable in class org.bson.BSON
 
_decoder - Variable in class com.mongodb.DBPort
Deprecated.
 
_decoder - Variable in class com.mongodb.QueryResultIterator
 
_decoderFact - Variable in class com.mongodb.DBCursor
 
_decoderFactory - Variable in class com.mongodb.DBCollection
 
_decodingHooks - Static variable in class org.bson.BSON
 
_default - Static variable in class com.mongodb.Mongo.Holder
 
_defaultFactory - Static variable in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
_disableBatchSizeTracking - Variable in class com.mongodb.DBCursor
 
_doc_start_offset - Variable in class org.bson.LazyBSONObject
Deprecated.
Please use LazyBSONObject.getOffset() instead.
_done - Variable in class com.mongodb.RawDBObject.ElementIter
Deprecated.
 
_dumpBuffer(boolean) - Method in class com.mongodb.gridfs.GridFSInputFile
Dumps a new chunk into the chunks collection.
_encodeHooks - Static variable in class org.bson.BSON
 
_encoder - Variable in class com.mongodb.OutMessage
 
_encoderFactory - Variable in class com.mongodb.DBCollection
 
_encoding - Variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_encodingHooks - Static variable in class org.bson.BSON
 
_end - Variable in class com.mongodb.RawDBObject
Deprecated.
 
_end - Variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_ensure(int) - Method in class org.bson.io.BasicOutputBuffer
 
_err - Variable in class com.mongodb.ServerError
Deprecated.
 
_errorCode - Variable in exception org.bson.BSONException
 
_explain - Variable in class com.mongodb.DBCursor
 
_extra - Variable in class com.mongodb.MapReduceCommand
 
_extra - Static variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_extradata - Variable in class com.mongodb.gridfs.GridFSFile
 
_factory - Variable in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
_fieldName - Variable in class com.mongodb.DBPointer
Deprecated.
 
_fields - Variable in class com.mongodb.ReflectionDBObject.JavaWrapper
 
_filename - Variable in class com.mongodb.gridfs.GridFSFile
 
_filesCollection - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getFilesCollection() for access.
_fill(int) - Method in class com.mongodb.DBCursor
 
_fillRange(byte, byte) - Static method in class org.bson.BasicBSONDecoder
 
_finalize - Variable in class com.mongodb.MapReduceCommand
 
_finishData() - Method in class com.mongodb.gridfs.GridFSInputFile
Marks the data as fully written.
_fix(Object) - Method in class com.mongodb.gridfs.GridFS
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
_fixName(String) - Static method in class com.mongodb.DBAddress
 
_flags - Variable in class com.mongodb.Response
 
_flip(int) - Static method in class org.bson.types.ObjectId
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
_fromPool - Variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_fs - Variable in class com.mongodb.gridfs.GridFSFile
Deprecated.
_fsync - Variable in class com.mongodb.WriteConcern
 
_fullName - Variable in class com.mongodb.DBCollection
Deprecated.
Please use DBCollection.getFullName() instead.
_genmachine - Static variable in class org.bson.types.ObjectId
 
_get(int) - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_getDBSection(String) - Static method in class com.mongodb.DBAddress
 
_getHostSection(String) - Static method in class com.mongodb.DBAddress
 
_getInt(String) - Method in class org.bson.types.BasicBSONList
 
_getInt(String, boolean) - Method in class org.bson.types.BasicBSONList
 
_getter - Variable in class com.mongodb.ReflectionDBObject.FieldInfo
 
_gridfs - Static variable in class com.mongodb.gridfs.CLI
 
_hash(String, char[]) - Method in class com.mongodb.DB
 
_hasNext() - Method in class com.mongodb.DBCursor
 
_hasNot - Variable in class com.mongodb.QueryBuilder
 
_hasOptions - Variable in class com.mongodb.Bytes.OptionHolder
 
_hint - Variable in class com.mongodb.DBCursor
 
_hintDBObj - Variable in class com.mongodb.DBCursor
 
_hintFields - Variable in class com.mongodb.DBCollection
_host - Variable in class com.mongodb.CommandResult
 
_host - Variable in class com.mongodb.QueryResultIterator
 
_host - Variable in class com.mongodb.Response
 
_host - Variable in class com.mongodb.ServerAddress
 
_id - Variable in class com.mongodb.DBRefBase
Deprecated.
 
_id - Variable in class com.mongodb.gridfs.GridFSFile
 
_id - Variable in class com.mongodb.OutMessage
 
_id - Variable in class com.mongodb.ReflectionDBObject
 
_id - Variable in class com.mongodb.Response
 
_in - Variable in class com.mongodb.DBPort
Deprecated.
 
_in - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_in - Variable in class com.mongodb.Response.MyInputStream
 
_in - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_inc - Variable in class org.bson.types.BSONTimestamp
 
_inc - Variable in class org.bson.types.ObjectId
 
_inc() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.toByteArray() instead.
_inProgress - Variable in class com.mongodb.util.ThreadPool
Deprecated.
 
_input - Variable in class com.mongodb.MapReduceCommand
 
_input - Variable in class org.bson.LazyBSONObject
Deprecated.
Please use LazyBSONObject.getBytes() to access underlying bytes.
_inputBuffer - Variable in class org.bson.BasicBSONDecoder
 
_internalClass - Variable in class com.mongodb.DBCollection
 
_isAscii(byte) - Static method in class org.bson.BasicBSONDecoder
 
_isAscii(byte) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
_isPartialObject - Variable in class com.mongodb.BasicDBList
 
_isPartialObject - Variable in class com.mongodb.BasicDBObject
 
_isPartialObject - Variable in class org.bson.LazyDBList
Deprecated.
 
_it - Variable in class com.mongodb.DBCursor
 
_j - Variable in class com.mongodb.WriteConcern
 
_jsMode - Variable in class com.mongodb.MapReduceCommand
 
_keys - Variable in class com.mongodb.ReflectionDBObject.JavaWrapper
 
_keysWanted - Variable in class com.mongodb.DBCursor
 
_lastArray - Variable in class com.mongodb.util.JSONCallback
 
_lastCall - Variable in class com.mongodb.WriteResult
 
_lastConcern - Variable in class com.mongodb.WriteResult
 
_lastErrorResult - Variable in class com.mongodb.WriteResult
 
_lazy - Variable in class com.mongodb.WriteResult
 
_len - Variable in class com.mongodb.Response
 
_len - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_length - Variable in class com.mongodb.gridfs.GridFSFile
 
_length - Variable in class org.bson.NewBSONDecoder
Deprecated.
 
_limit - Variable in class com.mongodb.DBCursor
 
_limit - Variable in class com.mongodb.MapReduceCommand
 
_limit - Variable in class com.mongodb.QueryResultIterator
 
_loadedPointedTo - Variable in class com.mongodb.DBRefBase
Deprecated.
 
_logger - Variable in class com.mongodb.DBPort
Deprecated.
 
_longHashConstant - Static variable in class com.mongodb.util.Hash
Deprecated.
 
_lookForHints() - Method in class com.mongodb.DBCursor
if there is a hint to use, use it
_lst - Variable in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
_lst - Variable in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
_machine - Variable in class org.bson.types.ObjectId
 
_machine() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.toByteArray() instead.
_map - Variable in class com.mongodb.MapReduceCommand
 
_map - Variable in class com.mongodb.util.IdentitySet
Deprecated.
 
_max - Variable in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
_max - Variable in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
_max - Variable in class org.bson.util.SimplePool
Deprecated.
 
_maxBSONObjectSize - Variable in class com.mongodb.OutMessage
 
_maxThreads - Variable in class com.mongodb.util.ThreadPool
Deprecated.
 
_maxTimeMS - Variable in class com.mongodb.DBCursor
 
_maxTimeMS - Variable in class com.mongodb.MapReduceCommand
 
_md5 - Variable in class com.mongodb.gridfs.GridFSFile
 
_messageDigester - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_mine - Variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
_mongo - Variable in class com.mongodb.DB
 
_mongo - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
_mongo - Static variable in class com.mongodb.gridfs.CLI
 
_mongo - Variable in class com.mongodb.OutMessage
 
_mongos - Variable in class com.mongodb.Mongo.Holder
 
_msDateFormat - Static variable in class com.mongodb.util.JSONCallback
 
_myPort - Variable in class com.mongodb.DBTCPConnector
Deprecated.
 
_myThreadGroup - Variable in class com.mongodb.util.ThreadPool
Deprecated.
 
_name - Variable in class com.mongodb.DB
 
_name - Variable in class com.mongodb.DBCollection
Deprecated.
Please use DBCollection.getName() instead.
_name - Variable in class com.mongodb.RawDBObject.Element
Deprecated.
 
_name - Variable in class com.mongodb.ReflectionDBObject.FieldInfo
 
_name - Variable in class com.mongodb.ReflectionDBObject.JavaWrapper
 
_name - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_name - Variable in class com.mongodb.util.ThreadPool
Deprecated.
 
_namedConcerns - Static variable in class com.mongodb.WriteConcern
 
_nameStack - Variable in class com.mongodb.DefaultDBCallback
 
_nameStack - Variable in class org.bson.BasicBSONCallback
 
_NEAREST - Static variable in class com.mongodb.ReadPreference
 
_need(int) - Method in class com.mongodb.io.ByteBufferOutputStream
Deprecated.
 
_need(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
ensure that there are num bytes to read _pos is where to start reading from
_netOptions - Variable in class com.mongodb.Mongo
 
_new - Variable in class org.bson.types.ObjectId
 
_next() - Method in class com.mongodb.DBCursor
 
_nextInc - Static variable in class org.bson.types.ObjectId
 
_ns - Variable in class com.mongodb.DBRefBase
Deprecated.
 
_num - Variable in class com.mongodb.DBCursor
 
_num - Variable in class com.mongodb.Response
 
_numChunks - Variable in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
_numDocuments - Variable in class com.mongodb.OutMessage
 
_numFetched - Variable in class com.mongodb.QueryResultIterator
 
_numGetMores - Variable in class com.mongodb.QueryResultIterator
 
_obedientCommands - Static variable in class com.mongodb.DB
 
_objectClass - Variable in class com.mongodb.DBCollection
_objects - Variable in class com.mongodb.Response
 
_offset - Variable in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
 
_offset - Variable in class com.mongodb.RawDBObject
Deprecated.
 
_opCode - Variable in class com.mongodb.OutMessage
 
_operation - Variable in class com.mongodb.Response
 
_optionalFinalizer - Variable in class com.mongodb.QueryResultIterator
 
_options - Variable in class com.mongodb.Bytes.OptionHolder
 
_options - Variable in class com.mongodb.DB
 
_options - Variable in class com.mongodb.DBCollection
 
_options - Variable in class com.mongodb.DBCursor
 
_options - Variable in class com.mongodb.DBPort
Deprecated.
 
_options - Variable in class com.mongodb.DBPortPool
Deprecated.
 
_options - Variable in class com.mongodb.Mongo
 
_options - Variable in class com.mongodb.util.Args
Deprecated.
 
_orderBy - Variable in class com.mongodb.DBCursor
 
_out - Variable in class com.mongodb.DBPort
Deprecated.
 
_out - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_outputDB - Variable in class com.mongodb.MapReduceCommand
 
_outputStream - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_outputTarget - Variable in class com.mongodb.MapReduceCommand
 
_outputType - Variable in class com.mongodb.MapReduceCommand
 
_params - Variable in class com.mongodb.util.Args
Deprecated.
 
_parent - Variable in class com.mongodb.Bytes.OptionHolder
 
_parent - Variable in class com.mongodb.DBPointer
Deprecated.
 
_parseBoolean(String) - Method in class com.mongodb.MongoClientURI
 
_partial - Variable in class com.mongodb.LazyDBObject
 
_pointedTo - Variable in class com.mongodb.DBRefBase
Deprecated.
 
_port - Variable in class com.mongodb.ServerAddress
 
_port - Variable in class com.mongodb.WriteResult
 
_pos - Variable in class com.mongodb.io.ByteBufferHolder
Deprecated.
 
_pos - Variable in class com.mongodb.io.ByteBufferInputStream
Deprecated.
 
_pos - Variable in class com.mongodb.RawDBObject.ElementIter
Deprecated.
 
_pos - Variable in class org.bson.BasicBSONDecoder
Deprecated.
This field should not be a part of API. Please see the class-level documentation for a migration instructions.
_pos - Variable in class org.bson.NewBSONDecoder
Deprecated.
 
_pos(String, int) - Static method in class org.bson.types.ObjectId
 
_pref - Variable in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
_PRIMARY - Static variable in class com.mongodb.ReadPreference
 
_PRIMARY_PREFERRED - Static variable in class com.mongodb.ReadPreference
 
_put(String, Object) - Method in class org.bson.BasicBSONCallback
Puts a new value into the document.
_put(byte, String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions. Access buffer directly via BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written.
_put(String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
Replaced by getOutputBuffer().writeCString(String).
_putObjectField(String, Object) - Method in class org.bson.BasicBSONEncoder
Encodes any Object type
_putString(String, String, byte) - Method in class org.bson.BasicBSONEncoder
 
_putValueString(String) - Method in class org.bson.BasicBSONEncoder
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions. Access buffer directly via BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written. Otherwise override BasicBSONEncoder.putString(String, String).
_query - Variable in class com.mongodb.DBCursor
 
_query - Variable in class com.mongodb.MapReduceCommand
 
_query - Variable in class com.mongodb.OutMessage
 
_query - Variable in class com.mongodb.QueryBuilder
 
_queryOptions - Variable in class com.mongodb.OutMessage
 
_queue - Variable in class com.mongodb.util.ThreadPool
Deprecated.
 
_random - Variable in class org.bson.BasicBSONDecoder
 
_raw - Variable in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
_read - Variable in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
_readBasicObject() - Method in class org.bson.BasicBSONDecoder
 
_readBasicObject() - Method in class org.bson.NewBSONDecoder
Deprecated.
 
_readCStr(int) - Method in class com.mongodb.RawDBObject
Deprecated.
 
_readCStr(int, int[]) - Method in class com.mongodb.RawDBObject
Deprecated.
 
_readJavaString(int) - Method in class com.mongodb.RawDBObject
Deprecated.
 
_readOnly - Variable in class com.mongodb.DB
Deprecated.
_readPref - Variable in class com.mongodb.DB
 
_readPref - Variable in class com.mongodb.DBCollection
 
_readPref - Variable in class com.mongodb.DBCursor
 
_readPref - Variable in class com.mongodb.MapReduceCommand
 
_readPref - Variable in class com.mongodb.Mongo
 
_readStream2Buffer() - Method in class com.mongodb.gridfs.GridFSInputFile
Reads a buffer full from the InputStream.
_reduce - Variable in class com.mongodb.MapReduceCommand
 
_refs - Variable in class com.mongodb.util.WeakBag
Deprecated.
 
_reset(Buffer) - Method in class org.bson.BasicBSONEncoder
 
_responseTo - Variable in class com.mongodb.Response
 
_resultSet - Variable in class com.mongodb.AggregationOutput
Deprecated.
Please use AggregationOutput.results() instead.
_resultSet - Variable in class com.mongodb.MapReduceOutput
 
_root - Variable in class com.mongodb.DBApiLayer
Deprecated.
 
_root - Variable in class org.bson.BasicBSONCallback
 
_root - Variable in class org.bson.LazyBSONCallback
 
_rootLogger - Static variable in class com.mongodb.DBPort
Deprecated.
 
_rootPlusDot - Variable in class com.mongodb.DBApiLayer
Deprecated.
 
_sa - Variable in class com.mongodb.DBPort
Deprecated.
 
_savedChunks - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_scope - Variable in class com.mongodb.MapReduceCommand
 
_scope - Variable in class org.bson.types.CodeWScope
 
_secDateFormat - Static variable in class com.mongodb.util.JSONCallback
 
_SECONDARY - Static variable in class com.mongodb.ReadPreference
 
_SECONDARY_PREFERRED - Static variable in class com.mongodb.ReadPreference
 
_sem - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_serializers - Variable in class com.mongodb.util.ClassMapBasedObjectSerializer
 
_serverVersion - Variable in class com.mongodb.DBPort
Deprecated.
 
_setter - Variable in class com.mongodb.ReflectionDBObject.FieldInfo
 
_size - Variable in class com.mongodb.io.ByteBufferFactory.SimpleHeapByteBufferFactory
Deprecated.
 
_size - Variable in class com.mongodb.RawDBObject.Element
Deprecated.
 
_size - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_size - Variable in class org.bson.io.BasicOutputBuffer
 
_sizes - Variable in class com.mongodb.QueryResultIterator
 
_skip - Variable in class com.mongodb.DBCursor
 
_snapshot - Variable in class com.mongodb.DBCursor
 
_socket - Variable in class com.mongodb.DBPort
Deprecated.
 
_sort - Variable in class com.mongodb.MapReduceCommand
 
_specialFields - Variable in class com.mongodb.DBCursor
 
_stack - Variable in class com.mongodb.BasicDBObjectBuilder
 
_stack - Variable in class org.bson.BasicBSONCallback
 
_start - Variable in class com.mongodb.RawDBObject.Element
Deprecated.
 
_startingFrom - Variable in class com.mongodb.Response
 
_staticDecoder - Static variable in class org.bson.BSON
 
_staticEncoder - Static variable in class org.bson.BSON
 
_stored - Variable in class org.bson.util.SimplePool
Deprecated.
 
_stringBuffer - Variable in class org.bson.BasicBSONDecoder
 
_symbol - Variable in class org.bson.types.Symbol
 
_tags - Variable in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
_threads - Variable in class com.mongodb.util.ThreadPool
Deprecated.
 
_threads - Static variable in class com.mongodb.util.ThreadUtil
Deprecated.
 
_time - Variable in class org.bson.types.BSONTimestamp
 
_time - Variable in class org.bson.types.ObjectId
 
_time() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.getTimestamp() ()} instead.
_toGo - Variable in class com.mongodb.Response.MyInputStream
 
_totalBytes - Variable in class com.mongodb.gridfs.GridFSInputFile
 
_type - Variable in class com.mongodb.RawDBObject.Element
Deprecated.
 
_type - Variable in class org.bson.types.Binary
 
_uploadDate - Variable in class com.mongodb.gridfs.GridFSFile
 
_utf8 - Static variable in class org.bson.BSON
Deprecated.
Use Charset.forName(String) to create UTF-8 charset.
_verbose - Variable in class com.mongodb.MapReduceCommand
 
_w - Variable in class com.mongodb.WriteConcern
 
_waitingSem - Variable in class com.mongodb.DBPortPool
Deprecated.
 
_warnUnsupportedRegex(String) - Static method in class org.bson.BSON
 
_wrapper - Variable in class com.mongodb.DBCollection
 
_wrapper - Variable in class com.mongodb.ReflectionDBObject
 
_wrappers - Static variable in class com.mongodb.ReflectionDBObject
 
_wtimeout - Variable in class com.mongodb.WriteConcern
 
A B C D E F G H I J K L M N O P Q R S T U V W X Y _ 
Skip navigation links