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

A

acceptableLatencyDifference(int) - Method in class com.mongodb.MongoClientOptions.Builder
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.
add(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
Same as append
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(String) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
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 String>) - Method in class org.bson.util.StringRangeSet
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.
addExtraOption(String, Object) - Method in class com.mongodb.MapReduceCommand
Deprecated.
use the specific setter methods
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.
addSpecial(String, Object) - Method in class com.mongodb.DBCursor
Adds a special operator like $maxScan or $returnKey.
addUser(String, char[]) - Method in class com.mongodb.DB
Deprecated.
Use DB.command to call either the createUser or updateUser command
addUser(String, char[], boolean) - Method in class com.mongodb.DB
Deprecated.
Use DB.command to call either the createUser or updateUser command
addUser(String, char[], boolean) - Method in class com.mongodb.DBApiLayer
Deprecated.
 
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.
AggregationOptions - Class in com.mongodb
The options to apply to an aggregate operation.
AggregationOptions.Builder - Class in com.mongodb
Builder for creating AggregationOptions.
AggregationOptions.OutputMode - Enum in com.mongodb
Enumeration to define where the results of the aggregation will be output.
AggregationOutput - Class in com.mongodb
Container for the result of aggregation operation.
AggregationOutput(DBObject, CommandResult) - Constructor for class com.mongodb.AggregationOutput
Deprecated.
there is no replacement for this constructor
all(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $all operand
ALL - Static variable in class com.mongodb.QueryOperators
 
allowDiskUse(Boolean) - Method in class com.mongodb.AggregationOptions.Builder
Set whether to enable external sort capabilities.
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
 
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(String, Object) - Method in class org.bson.BasicBSONObject
Add a key/value pair to this object
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.
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.
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.
 
Assertions - Class in org.bson.util
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
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.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(MongoCredential) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
authenticateCommand(String, char[]) - Method in class com.mongodb.DB
Deprecated.
Please use MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which will authenticate all connections to server
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.

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.
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 - 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.
 
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
 
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(int) - Method in class com.mongodb.ParallelScanOptions.Builder
The batch size to use for each cursor.
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.
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
 
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[]
BSONCallback - Interface in org.bson
A callback interface for describing the structure of a BSON document.
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.
buf - Variable in class org.bson.io.BSONByteBuffer
Deprecated.
 
BUF_SIZE - Static variable in class org.bson.io.PoolOutputBuffer
Deprecated.
 
build() - Method in class com.mongodb.AggregationOptions.Builder
Return the options based on this builder.
build() - Method in class com.mongodb.MongoClientOptions.Builder
Build an instance of MongoClientOptions.
build() - Method in class com.mongodb.ParallelScanOptions.Builder
Creates a ParallelScanOptions with the settings initialised in this builder.
builder() - Static method in class com.mongodb.AggregationOptions
Creates a new Builder for AggregationOptions.
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
 
BulkUpdateRequestBuilder - Class in com.mongodb
A builder for a single update request.
BulkWriteError - Class in com.mongodb
Represents an error for an item included in a bulk write operation, e.g.
BulkWriteError(int, String, DBObject, int) - Constructor for class com.mongodb.BulkWriteError
Constructs a new instance.
BulkWriteException - Exception in com.mongodb
An exception that represents all errors associated with a bulk write operation.
BulkWriteOperation - Class in com.mongodb
A bulk write operation.
BulkWriteRequestBuilder - Class in com.mongodb
A builder for a single write request.
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.
Bytes - Class in com.mongodb
Class that hold definitions of the wire protocol
Bytes() - Constructor for class com.mongodb.Bytes
 

C

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(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)
CENTER - Static variable in class com.mongodb.QueryOperators
 
CENTER_SPHERE - Static variable in class com.mongodb.QueryOperators
 
checkReadOnly(boolean) - Method in class com.mongodb.DBCollection
Deprecated.
ClassMap<T> - Class in org.bson.util
Maps Class objects to values.
ClassMap() - Constructor for class org.bson.util.ClassMap
 
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.
 
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.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.util.ClassMap
As per java.util.Map, removes all of the mappings from this map (optional operation).
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
 
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.Mongo
Closes the underlying connector, which in turn closes all open connections.
close() - Method in class com.mongodb.util.SimplePool
Deprecated.
Clears the pool of all objects.
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
 
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.
collectionExists(String) - Method in class com.mongodb.DB
Checks to see if a collection with a given name exists on a server.
com.mongodb - package com.mongodb
Main package with core files.
com.mongodb.gridfs - package com.mongodb.gridfs
GridFS tools.
com.mongodb.tools - package com.mongodb.tools
 
com.mongodb.util - package com.mongodb.util
Package containing misc utils.
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.
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.
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(BSONTimestamp) - Method in class org.bson.types.BSONTimestamp
 
compareTo(ObjectId) - Method in class org.bson.types.ObjectId
 
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.
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.
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.
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.
connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum number of connections per host.
connectionsPerHost - Variable in class com.mongodb.MongoOptions
Deprecated.
The maximum number of connections allowed per host for this Mongo instance.
connectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the connection timeout.
connectTimeout - Variable in class com.mongodb.MongoOptions
Deprecated.
The connection timeout in milliseconds.
contains(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.LazyBSONKeySet
Deprecated.
 
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.LazyBSONKeySet
Deprecated.
 
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.
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
copy() - Method in class com.mongodb.BasicDBList
Copies this instance into a new Object.
copy() - Method in class com.mongodb.BasicDBObject
Creates a new instance which is a copy of this BasicDBObject.
copy() - Method in class com.mongodb.DBCursor
Creates a copy of an existing database cursor.
copy() - Method in class com.mongodb.MongoOptions
Deprecated.
 
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.
create(DBCollection) - Method in interface com.mongodb.DBCallbackFactory
Creates a DBCallback for the given collection.
create() - Method in interface com.mongodb.DBDecoderFactory
Creates an instance.
create() - Method in interface com.mongodb.DBEncoderFactory
Creates an instance.
create() - Method in class com.mongodb.DefaultDBCallback
 
create(boolean, List<String>) - Method in class com.mongodb.DefaultDBCallback
 
create() - Method in class com.mongodb.util.JSONCallback
 
create() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSONObject.
create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
Helper method to create either a BSON Object or a BSON List depending upon whether the array parameter is true or not.
createArray(byte[], int) - Method in class com.mongodb.LazyDBCallback
 
createArray(byte[], int) - Method in class org.bson.LazyBSONCallback
Create a LazyBSONList from the given bytes starting from the given offset.
createBSONCallback() - Method in class org.bson.BasicBSONCallback
 
createBSONCallback() - Method in interface org.bson.BSONCallback
Factory method for BSONCallbacks.
createBSONCallback() - Method in class org.bson.EmptyBSONCallback
 
createChunk(Object, int, byte[]) - Method in class com.mongodb.gridfs.GridFSInputFile
Creates a new chunk of this file.
createCollection(String, 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.
createDBRef(String, ObjectId) - Method in class com.mongodb.LazyDBCallback
 
createDBRef(String, ObjectId) - Method in class org.bson.LazyBSONCallback
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).
createFile(byte[]) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(File) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream, boolean) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream, String) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(InputStream, String, boolean) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile(String) - Method in class com.mongodb.gridfs.GridFS
Creates a file entry.
createFile() - Method in class com.mongodb.gridfs.GridFS
This method creates an empty GridFSInputFile instance.
createFromLegacyFormat(int, int, int) - Static method in class org.bson.types.ObjectId
Creates an ObjectId using time, machine and inc values.
createGSSAPICredential(String) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
createIndex(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.
createList() - Method in class com.mongodb.util.JSONCallback
 
createList() - Method in class org.bson.BasicBSONCallback
Factory method for creating a new BSON List.
createMongoCRCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
createMongoX509Credential(String) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the MongoDB X.509 protocol.
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.
 
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.
createPlainCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the PLAIN SASL mechanism.
createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
cur() - Method in class org.bson.BasicBSONCallback
Gets the current value
curName() - Method in class org.bson.BasicBSONCallback
Gets the name of the current field
curr() - Method in class com.mongodb.DBCursor
Returns the element the cursor is at.
Cursor - Interface in com.mongodb
Interface for providing consistent behaviour between different Cursor implementations.
cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether cursor finalizers are enabled.
cursorFinalizerEnabled - Variable in class com.mongodb.MongoOptions
Deprecated.
Sets whether there is a a finalize method created that cleans up instances of DBCursor that the client does not close.
CursorNotFound(long, ServerAddress) - Constructor for exception com.mongodb.MongoException.CursorNotFound
Deprecated.
 

D

DATE - Static variable in class org.bson.BSON
 
DB - Class in com.mongodb
A thread-safe client view of a logical database in a MongoDB cluster.
DB(Mongo, String) - Constructor for class com.mongodb.DB
Constructs a new instance of the DB.
DBAddress - Class in com.mongodb
Represents a database address, which includes the properties of ServerAddress (host and port) and adds a database name.
DBAddress(String) - Constructor for class com.mongodb.DBAddress
Creates a new address.
DBAddress(DBAddress, String) - Constructor for class com.mongodb.DBAddress
Create a DBAddress using the host and port from an existing DBAddress, and connected to a given database.
DBAddress(String, String) - Constructor for class com.mongodb.DBAddress
Creates a DBAddress for the given database on the given host.
DBAddress(String, int, String) - Constructor for class com.mongodb.DBAddress
Creates a DBAddress for the given database on the given host at the given port.
DBAddress(InetAddress, int, String) - Constructor for class com.mongodb.DBAddress
 
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.
 
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.
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.
DBDecoder - Interface in com.mongodb
An interface for decoders of BSON into instances of DBObject that belong to a DBCollection.
DBDecoderFactory - Interface in com.mongodb
Creates concrete DBDecoder instances.
dbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the decoder factory.
dbDecoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the DBCallback factory.
DBEncoder - Interface in com.mongodb
An interface for encoders of BSONObject to BSON.
dbEncoder(DBEncoder) - Method in class com.mongodb.InsertOptions
Set the encoder to use for the documents.
DBEncoderFactory - Interface in com.mongodb
Creates concrete DBEncoder instances.
dbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the encoder factory.
dbEncoderFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
Override the encoding factory.
DBObject - Interface in com.mongodb
This interface adds some specific behaviour to BSONObject for MongoDB documents.
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.
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
DBPortPool - Class in com.mongodb
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
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.DBRef(String, Object) instead
DBRef(DB, String, Object) - Constructor for class com.mongodb.DBRef
Deprecated.
Deprecated because DBRefBase.fetch() is deprecated. Use DBRef.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.DBRefBase(String, Object) instead
DBRefBase() - Constructor for class com.mongodb.DBRefBase
Deprecated.
For use only with serialization framework.
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.
 
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(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[], 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.
 
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
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.
DefaultDBDecoder - Class in com.mongodb
An implementation of DBDecoder
DefaultDBDecoder() - Constructor for class com.mongodb.DefaultDBDecoder
 
DefaultDBEncoder - Class in com.mongodb
The default BSON encoder for BSONObject instances.
DefaultDBEncoder() - Constructor for class com.mongodb.DefaultDBEncoder
 
defaultHost() - Static method in class com.mongodb.ServerAddress
Returns the default database host: "127.0.0.1"
defaultPort() - Static method in class com.mongodb.ServerAddress
Returns the default database port: 27017
description(String) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the description.
description - Variable in class com.mongodb.MongoOptions
Deprecated.
The description for Mongo instances created with these options.
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
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.
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.
 
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.
 
drop() - Method in class com.mongodb.DBCollection
Drops (deletes) this collection from the database.
drop() - Method in class com.mongodb.MapReduceOutput
Drops the collection that holds the results.
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.

E

ELEM_MATCH - Static variable in class com.mongodb.QueryOperators
 
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(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(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.
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
ensureOpen() - Method in class com.mongodb.DBPort
Deprecated.
makes sure that a connection to the server has been opened
entrySet() - Method in class org.bson.LazyBSONObject
This method will be more efficient than using a combination of keySet() and get(String key)
EOO - Static variable in class org.bson.BSON
 
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.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.MongoClientOptions
 
equals(Object) - Method in class com.mongodb.MongoClientURI
 
equals(Object) - Method in class com.mongodb.MongoCredential
 
equals(Object) - Method in class com.mongodb.MongoOptions
Deprecated.
 
equals(Object) - Method in class com.mongodb.ServerAddress
 
equals(Object) - Method in class com.mongodb.Tag
 
equals(Object) - Method in class com.mongodb.TaggableReadPreference
 
equals(Object) - Method in class com.mongodb.TagSet
 
equals(Object) - Method in class com.mongodb.WriteConcern
 
equals(Object) - Method in class com.mongodb.WriteConcernError
 
equals(Object) - Method in class 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
 
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
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.
exists(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $exists operand
EXISTS - Static variable in class com.mongodb.QueryOperators
 
explain() - Method in class com.mongodb.DBCursor
Returns an object containing basic information about the execution of the query that created this cursor.
EXPLAIN - Static variable in class com.mongodb.QueryOperators
 
explainAggregate(List<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
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.
fill(byte[]) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
fill(byte[], int) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
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) - 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(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, long, TimeUnit) - 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.
findAndRemove(DBObject) - Method in class com.mongodb.DBCollection
Atomically modify and return a single document.
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(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.
forceError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
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.

G

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.DBPortPool
Deprecated.
 
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get(String) - Method in class com.mongodb.LazyWriteableDBObject
Deprecated.
 
get() - Method in class com.mongodb.QueryBuilder
Creates a DBObject query to be used for the driver's find operations
get(String) - Method in class com.mongodb.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.util.FastStack
Deprecated.
 
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.ClassMap
Gets the value associated with either this Class or a superclass of this class.
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
getAddress() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getAddress() - Method in class com.mongodb.Mongo
Gets the address of the current master
getAliases() - Method in class com.mongodb.gridfs.GridFSFile
Gets the aliases from the metadata.
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.
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.
getAvailable() - Method in class com.mongodb.util.SimplePool
Deprecated.
 
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.
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() - 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.
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.
getCheckedOutCount() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the count of connections that are currently in use.
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.
getCode() - Method in class com.mongodb.BulkWriteError
Gets the code associated with this error.
getCode() - Method in exception com.mongodb.MongoException
Gets the exception code
getCode() - Method in class com.mongodb.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.
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
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.WriteConcernException
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.
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.
 
getContentType() - Method in class com.mongodb.gridfs.GridFSFile
Gets the content type.
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.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.
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
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.
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.
getData() - Method in class org.bson.types.Binary
Get a copy of the binary value.
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.
getDatabaseNames() - Method in class com.mongodb.Mongo
Gets a list of the names of all databases on the connected server.
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.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.
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
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.
 
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.
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.
 
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.
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.
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.
getException() - Method in class com.mongodb.CommandResult
Utility method to create an exception from a failed command.
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.
getFinalize() - Method in class com.mongodb.MapReduceCommand
Gets the Finalize JS Function
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.
getGeneration() - Method in class com.mongodb.DBPort
Deprecated.
Gets the generation of this connection.
getGenMachineId() - Static method in class org.bson.types.ObjectId
Deprecated. 
getGridFS() - Method in class com.mongodb.gridfs.GridFSFile
Gets the GridFS associated with this file
getHeartbeatConnectRetryFrequency() - Method in class com.mongodb.MongoClientOptions
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.
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 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
getHosts() - Method in class com.mongodb.MongoClientURI
Gets the list of hosts
getHosts() - Method in class com.mongodb.MongoURI
Gets the list of hosts.
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.
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.
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.gridfs.GridFSDBFile
Returns an InputStream from which data can be read.
getInsertedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents inserted by the write operation.
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.
 
getInternalClass(String) - Method in class com.mongodb.DBCollection
Gets the internal class for the given path in the document hierarchy
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.
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
getKeysWanted() - Method in class com.mongodb.DBCursor
Gets the fields to be returned.
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() - 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 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.
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.InUseConnectionBean
Deprecated.
 
getLocalThreshold() - Method in class com.mongodb.MongoClientOptions
Gets the local threshold.
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.
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.BulkWriteResult
Returns the number of documents matched by updates or replacements in the write operation.
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() - Method in class com.mongodb.MongoClientOptions
The maximum idle time of a pooled connection.
getMaxConnectionLifeTime() - Method in class com.mongodb.MongoClientOptions
The maximum life time of a pooled connection.
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.
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.
 
getMD5() - Method in class com.mongodb.gridfs.GridFSFile
Gets the observed MD5 during transfer
getMechanism() - Method in class com.mongodb.MongoCredential
Gets the mechanism
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.
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 interface com.mongodb.ConnectionPoolStatisticsMBean
Gets the minimum allowed size of the pool, including idle and in-use members.
getModifiedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents modified by the write operation.
getMongo() - Method in class com.mongodb.DB
Gets the Mongo instance
getMongoClientOptions() - Method in class com.mongodb.MongoClient
 
getMongoOptions() - Method in class com.mongodb.Mongo
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.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.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.util.SimplePool
Deprecated.
 
getNamespace() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getNumCursors() - Method in class com.mongodb.ParallelScanOptions
Gets the number of cursors requested.
getNumDocuments() - Method in class com.mongodb.InUseConnectionBean
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
 
getOpCode() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
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.
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.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.
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.
getPool() - Method in class com.mongodb.DBPort
Deprecated.
Gets the pool that this port belongs to.
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() - 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.
 
getPreviousError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
getQuery() - Method in class com.mongodb.DBCursor
Gets the query.
getQuery() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
 
getQuery() - Method in class com.mongodb.MapReduceCommand
Gets the query to run for this MapReduce job
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.
getReduce() - Method in class com.mongodb.MapReduceCommand
Gets the reduce function, as a JS String
getRef() - Method in class com.mongodb.DBRefBase
Deprecated.
getRemovedCount() - Method in class com.mongodb.BulkWriteResult
Returns the number of documents removed by the write operation.
getReplicaSetStatus() - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
getReplicaSetStatus() - Method in class com.mongodb.Mongo
Get the status of the replica set cluster.
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.
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.
getServerAddress() - Method in exception com.mongodb.BulkWriteException
The address of the server which performed the bulk write operation.
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 exception com.mongodb.WriteConcernException
Gets the address of the server that the write executed on.
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.
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
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 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
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.
 
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.
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.
 
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
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 org.bson.types.Binary
Get the binary sub type as a byte.
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.
getUpserts() - Method in class com.mongodb.BulkWriteResult
Gets an unmodifiable list of upserted items, or the empty list if there were none.
getURI() - Method in class com.mongodb.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.
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.
getUTF8String(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
getValue() - Method in class com.mongodb.Tag
Gets the value of the replica set tag.
getVersion() - Method in class com.mongodb.Mongo
Deprecated.
There is no replacement for this method.
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 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(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.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).
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).
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)
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
 
GridFSFile - Class in com.mongodb.gridfs
The abstract class representing a GridFS file.
GridFSFile() - Constructor for class com.mongodb.gridfs.GridFSFile
 
GridFSInputFile - Class in com.mongodb.gridfs
This class represents a GridFS file to be written to the database.
GridFSInputFile(GridFS, InputStream, String, boolean) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
GridFSInputFile(GridFS, InputStream, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
GridFSInputFile(GridFS, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Constructor that only provides a file name, but does not rely on the presence of an InputStream.
GridFSInputFile(GridFS) - Constructor for class com.mongodb.gridfs.GridFSInputFile
Minimal constructor that does not rely on the presence of an InputStream.
group(DBObject, DBObject, DBObject, String) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(DBObject, DBObject, DBObject, String, String) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(DBObject, DBObject, DBObject, String, String, ReadPreference) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(GroupCommand) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
group(GroupCommand, ReadPreference) - Method in class com.mongodb.DBCollection
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
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.
GSSAPI_MECHANISM - Static variable in class com.mongodb.MongoCredential
The GSSAPI mechanism.
GT - Static variable in class com.mongodb.QueryOperators
 
GTE - Static variable in class com.mongodb.QueryOperators
 

H

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.
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.
hasDecodeHooks() - Static method in class org.bson.BSON
Gets whether any decoding transformers have been registered for any classes.
hasErrorCode() - Method in exception org.bson.BSONException
Returns true if the error code is set (i.e., not null).
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.
 
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.
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.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.MongoClientOptions
 
hashCode() - Method in class com.mongodb.MongoClientURI
 
hashCode() - Method in class com.mongodb.MongoCredential
 
hashCode() - Method in class com.mongodb.MongoOptions
Deprecated.
 
hashCode() - Method in class com.mongodb.ServerAddress
 
hashCode() - Method in class com.mongodb.Tag
 
hashCode() - Method in class com.mongodb.TaggableReadPreference
 
hashCode() - Method in class com.mongodb.TagSet
 
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
 
hasNext() - Method in class com.mongodb.DBCursor
Checks if there is another object available.
hasNext() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
 
heartbeatConnectRetryFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
heartbeatConnectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat connect timeout.
heartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat frequency.
heartbeatSocketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the heartbeat connect socket timeout.
heartbeatThreadCount(int) - Method in class com.mongodb.MongoClientOptions.Builder
Deprecated.
this is no longer a configurable property
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.
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
 
Holder() - Constructor for class com.mongodb.Mongo.Holder
 
host() - Method in class com.mongodb.DBPort
Deprecated.
returns a String representation of the target host

I

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.
 
in(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $in operand
IN - Static variable in class com.mongodb.QueryOperators
 
indexOf(Object) - Method in class org.bson.LazyBSONList
 
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.
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.
InsertOptions - Class in com.mongodb
Options related to insertion of documents into MongoDB.
InsertOptions() - Constructor for class com.mongodb.InsertOptions
 
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.
is(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the find({key:value})
isAcknowledged() - Method in class com.mongodb.BulkWriteResult
Returns true if the write was acknowledged.
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.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() - Method in class com.mongodb.DBPort
Deprecated.
 
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.
 
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.LazyWriteableDBObject
Deprecated.
 
isEmpty() - Method in class org.bson.LazyBSONObject
Gets whether this is an empty BSONObject.
isEmpty() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
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.StringRangeSet
Deprecated.
 
isFsync() - Method in class com.mongodb.MongoOptions
Deprecated.
 
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.
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.BulkWriteResult
Returns true if the server was able to provide a count of modified documents.
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
isNotMasterError() - Method in class com.mongodb.ServerError
Deprecated.
returns true if the error is "not master", which usually happens when doing operation on slave
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.
 
isSafe() - Method in class com.mongodb.MongoOptions
Deprecated.
 
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.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.
 
isStackEmpty() - Method in class org.bson.BasicBSONCallback
Returns whether this is the top level or not
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.
isValid(String) - Static method in class org.bson.types.ObjectId
Checks if a string could be an ObjectId.
isVerbose() - Method in class com.mongodb.MapReduceCommand
Gets the verbosity of the MapReduce job.
itcount() - Method in class com.mongodb.DBCursor
For testing only! Iterates cursor and counts objects
iterator() - Method in class com.mongodb.DBCursor
Creates a copy of this cursor object that can be iterated.
iterator() - Method in class com.mongodb.TagSet
 
iterator() - Method in class 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.LazyBSONKeySet
Deprecated.
 
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.
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.
JSONSerializers - Class in com.mongodb.util
Defines static methods for getting ObjectSerializer instances that produce various flavors of JSON.

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
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
 

L

LANGUAGE - Static variable in class com.mongodb.QueryOperators
 
lastIndexOf(Object) - Method in class org.bson.LazyBSONList
 
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
 
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.LazyBSONKeySet - Class in org.bson
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
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
 
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
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.
 
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
legacyDefaults() - Method in class com.mongodb.MongoClientOptions.Builder
Sets defaults to be what they are in MongoOptions.
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.
listIterator(int) - Method in class org.bson.LazyBSONList
 
listIterator() - Method in class org.bson.LazyBSONList
 
localThreshold(int) - Method in class com.mongodb.MongoClientOptions.Builder
Deprecated.
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.
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.
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.
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.
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.
 
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.
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_DISTANCE - Static variable in class com.mongodb.QueryOperators
 
MAX_SCAN - Static variable in class com.mongodb.QueryOperators
 
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.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
maxConnectionIdleTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum idle time for a pooled connection.
maxConnectionLifeTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum life time for a pooled connection.
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
 
maxScan(int) - Method in class com.mongodb.DBCursor
Limits the number of documents a cursor will return for a query.
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.
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.MongoOptions
Deprecated.
The maximum wait time in milliseconds that a thread may wait for a connection to become available.
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.
memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
Deprecated.
 
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
 
minConnectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the minimum number of connections per host.
minHeartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the minimum heartbeat frequency.
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
 
MINOR_VERSION - Static variable in class com.mongodb.Mongo
Deprecated.
mod(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $mod operand
MOD - Static variable in class com.mongodb.QueryOperators
 
Mongo - Class in com.mongodb
A database connection with internal connection pooling.
Mongo() - Constructor for class com.mongodb.Mongo
Deprecated.
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
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
Mongo(List<ServerAddress>) - Constructor for class com.mongodb.Mongo
Mongo(List<ServerAddress>, MongoOptions) - Constructor for class com.mongodb.Mongo
Mongo(MongoURI) - Constructor for class com.mongodb.Mongo
Mongo.Holder - Class in com.mongodb
Mongo.Holder can be used as a static place to hold several instances of Mongo.
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.
MongoClientOptions - Class in com.mongodb
Various settings to control the behavior of a MongoClient.
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.
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.
MongoCursorNotFoundException - Exception in com.mongodb
Subclass of MongoException representing a cursor-not-found exception.
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.
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.
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.
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
MongoServerSelectionException - Exception in com.mongodb
Deprecated.
No longer thrown. Catch MongoTimeoutException instead
MongoServerSelectionException(String) - Constructor for exception com.mongodb.MongoServerSelectionException
Deprecated.
 
MongoSocketException - Exception in com.mongodb
Subclass of MongoException representing a network-related exception.
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.
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.
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.
 

N

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
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
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.
 
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 org.bson.LazyBSONList.LazyBSONListIterator
 
NIN - Static variable in class com.mongodb.QueryOperators
 
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.
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.
 
NULL - Static variable in class org.bson.BSON
 
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(int) - Method in class com.mongodb.ParallelScanOptions.Builder
Set the requested number of cursors to iterate in parallel.
numGetMores() - Method in class com.mongodb.DBCursor
Deprecated.
there is no replacement for this method
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.
numThreads() - Method in class com.mongodb.util.ThreadPool
Deprecated.
 

O

OBJECT - Static variable in class org.bson.BSON
 
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.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.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.ObjectId(byte[]) or ObjectId.createFromLegacyFormat(int, int, int) instead.
ObjectId() - Constructor for class org.bson.types.ObjectId
Create a new object id.
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(T) - Method in class com.mongodb.util.ThreadPool
Deprecated.
Adds a new object to the pool, if possible.
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(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.
 
one() - Method in class com.mongodb.DBCursor
Returns the first document that matches the query.
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.
 
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
 
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.
OutputBuffer - Class in org.bson.io
An abstract base class for classes implementing BsonOutput.
OutputBuffer() - Constructor for class org.bson.io.OutputBuffer
 
outputMode(AggregationOptions.OutputMode) - Method in class com.mongodb.AggregationOptions.Builder
The mode of output for this configuration.

P

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.
ParallelScanOptions - Class in com.mongodb
The options to use for a parallel collection scan.
ParallelScanOptions.Builder - Class in com.mongodb
A builder for the options
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.
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.
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(String, Number) - Static method in class com.mongodb.util.StringParseUtil
Deprecated.
Turns a string into a Number and returns a default value if unsuccessful.
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".
peek() - Method in class com.mongodb.util.FastStack
Deprecated.
 
pick(int, boolean) - Method in class com.mongodb.util.SimplePool
Deprecated.
Pick a member of _avail.
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.
POLYGON - Static variable in class com.mongodb.QueryOperators
 
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.
 
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.util.FastStack
Deprecated.
 
PORT - Static variable in class com.mongodb.DBPort
Deprecated.
the default port
position(int) - Method in class org.bson.io.BSONByteBuffer
Deprecated.
 
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.
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
printStackTrace() - Static method in class com.mongodb.util.ThreadUtil
Deprecated.
Creates an prints a stack trace
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(T) - Method in class com.mongodb.util.FastStack
Deprecated.
 
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(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(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.
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
 
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
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.
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 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.
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

QueryBuilder - Class in com.mongodb
Utility for creating DBObject queries
QueryBuilder() - Constructor for class com.mongodb.QueryBuilder
Creates a builder with an empty query
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.
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.
RawDBObject - Class in com.mongodb
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
read() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
readCStr() - Method in class org.bson.BasicBSONDecoder.BSONInput
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.
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.
 
readPreference(ReadPreference) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the read preference.
readPreference - Variable in class com.mongodb.MongoOptions
Deprecated.
Specifies the read preference.
readPreference(ReadPreference) - Method in class com.mongodb.ParallelScanOptions.Builder
The read preference to use.
ReadPreference - Class in com.mongodb
An abstract class that represents preferred replica set members to which a query or command can be sent.
ReadPreference.TaggedReadPreference - Class in com.mongodb
Deprecated.
readUTF8String() - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
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.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.
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.
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(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() - Method in class com.mongodb.DBCursor
Not implemented.
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(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(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
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) - 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.util.StringRangeSet
Deprecated.
 
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.
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
 
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.
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.
 
rename(String) - Method in class com.mongodb.DBCollection
rename(String, boolean) - Method in class com.mongodb.DBCollection
Renames of this collection to newName
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.
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.
ReplicaSetStatus - Class in com.mongodb
Keeps replica set status.
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
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
Deprecated.
 
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
Deprecated.
Start a "request".
requiredReplicaSetName(String) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the required replica set name for the cluster.
reset() - Method in class com.mongodb.DefaultDBCallback
 
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
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
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.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.

S

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.
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(DB, OutMessage, WriteConcern) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
say(DB, OutMessage, WriteConcern, ServerAddress) - Method in class com.mongodb.DBTCPConnector
Deprecated.
 
SCRAM_SHA_1_MECHANISM - Static variable in class com.mongodb.MongoCredential
The SCRAM-SHA-1 mechanism.
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
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.
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 interface com.mongodb.util.ObjectSerializer
Serializes obj into buf.
serialize(Object) - Method in interface com.mongodb.util.ObjectSerializer
Serializes obj.
serverAddress() - Method in class com.mongodb.DBPort
Deprecated.
 
ServerAddress - Class in com.mongodb
Represents the location of a Mongo server - i.e.
ServerAddress() - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default host and port
ServerAddress(String) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default port
ServerAddress(String, int) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddress(InetAddress) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress with default port
ServerAddress(InetAddress, int) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerAddress(InetSocketAddress) - Constructor for class com.mongodb.ServerAddress
Creates a ServerAddress
ServerError - Class in com.mongodb
Deprecated.
This is an internal class, and will likely be removed in the next major release.
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_id(Object) - Method in class com.mongodb.ReflectionDBObject
Sets the _id
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.
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.
setCursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoOptions
Deprecated.
 
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.
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
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.
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
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.
setVerbose(Boolean) - Method in class com.mongodb.MapReduceCommand
Sets the verbosity of the MapReduce job, defaults to 'true'
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.
 
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.
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.
 
singleton() - Static method in class com.mongodb.Mongo.Holder
 
size() - Method in class com.mongodb.DBCursor
Counts the number of objects matching the query this does take limit/skip into consideration
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.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.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.ClassMap
As per java.util.Map, returns the number of key-value mappings in this map.
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.
skip(int) - Method in class com.mongodb.DBCursor
Discards a given number of elements at the beginning of the cursor.
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 - Static variable in class com.mongodb.QueryOperators
 
socketFactory(SocketFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the socket factory.
socketFactory - Variable in class com.mongodb.MongoOptions
Deprecated.
sets the socket factory for creating sockets to mongod Default is SocketFactory.getDefault()
socketKeepAlive(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether socket keep alive is enabled.
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.
socketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the socket timeout.
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.
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
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.
 
subList(int, int) - Method in class org.bson.LazyBSONList
 
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.

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
TaggedReadPreference(Map<String, String>) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
TaggedReadPreference(DBObject) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
 
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.
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
 
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.
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.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.
 
throwOnError() - Method in class com.mongodb.CommandResult
Throws a CommandFailureException if the command failed.
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.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.LazyBSONKeySet
Deprecated.
 
toArray(T[]) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
Deprecated.
 
toArray() - Method in class org.bson.util.StringRangeSet
Deprecated.
 
toArray(T[]) - Method in class org.bson.util.StringRangeSet
Deprecated.
 
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.
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.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.
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.AggregationOptions
 
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.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
 
toString() - Method in class com.mongodb.DefaultDBEncoder
 
toString() - Method in class com.mongodb.gridfs.GridFSFile
 
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.MongoClientOptions
 
toString() - Method in class com.mongodb.MongoClientURI
 
toString() - Method in class com.mongodb.MongoCredential
 
toString() - Method in class com.mongodb.MongoOptions
Deprecated.
 
toString() - Method in class com.mongodb.MongoURI
 
toString() - Method in class com.mongodb.RawDBObject
Deprecated.
 
toString() - Method in class com.mongodb.ReplicaSetStatus
 
toString() - Method in class com.mongodb.ServerAddress
 
toString() - Method in class com.mongodb.ServerError
Deprecated.
 
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.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.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
 
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.
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.
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.
 
tryNext() - Method in class com.mongodb.DBCursor
Non blocking check for tailable cursors to see if another object is available.
TYPE - Static variable in class com.mongodb.QueryOperators
 

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.
UnacknowledgedWriteException - Exception in com.mongodb
Deprecated.
Catch instead
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.
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) - 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.
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.
updatePortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
Deprecated.
Assigns a new DBPortPool for a given ServerAddress.
upsert() - Method in class com.mongodb.BulkWriteRequestBuilder
Specifies that the request being built should be an upsert.
Util - Class in com.mongodb.util
Misc utility helpers.
Util() - Constructor for class com.mongodb.util.Util
 

V

validate() - Method in class com.mongodb.gridfs.GridFSFile
Verifies that the MD5 matches between the database and the local file.
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.MapReduceCommand.OutputType
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 class com.mongodb.WriteConcern
Gets the WriteConcern constants by name (matching is done case insensitively).
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.MapReduceCommand.OutputType
Returns an array containing the constants of this enum type, in the order they are declared.

W

w - Variable in class com.mongodb.MongoOptions
Deprecated.
The "w" value, (number of writes), of the global WriteConcern.
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.
WHERE - Static variable in class com.mongodb.QueryOperators
 
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) - Static method in class org.bson.io.BSONByteBuffer
Deprecated.
 
wrap(byte[]) - Static method in class org.bson.io.BSONByteBuffer
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.
 
writeConcern(WriteConcern) - Method in class com.mongodb.InsertOptions
Set the write concern to use for the insert.
writeConcern(WriteConcern) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the write concern.
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.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
WriteConcern(boolean) - Constructor for class com.mongodb.WriteConcern
Calls WriteConcern.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 - 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.
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
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.
writeDouble(double) - Method in class org.bson.io.OutputBuffer
Writes a BSON double to the stream.
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.
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.
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.
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
 
WriteResult - Class in com.mongodb
This class lets you access the results of the previous write.
writeString(String) - Method in class org.bson.io.OutputBuffer
Writes a BSON String to the stream.
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.
wtimeout - Variable in class com.mongodb.MongoOptions
Deprecated.
The "wtimeout" value of the global WriteConcern.

_

_avail - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_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.
_bucketName - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getBucketName() for access.
_buf - Variable in class org.bson.BasicBSONEncoder
Deprecated.
_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.
_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.
_chunkCollection - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getChunksCollection() for access.
_cmd - Variable in class com.mongodb.AggregationOutput
Deprecated.
Please use AggregationOutput.getCommand() instead.
_commandResult - Variable in class com.mongodb.AggregationOutput
Deprecated.
_db - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getDB() for access.
_doc_start_offset - Variable in class org.bson.LazyBSONObject
Deprecated.
Please use LazyBSONObject.getOffset() instead.
_filesCollection - Variable in class com.mongodb.gridfs.GridFS
Deprecated.
Please use GridFS.getFilesCollection() for access.
_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.
_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.
_fs - Variable in class com.mongodb.gridfs.GridFSFile
Deprecated.
_fullName - Variable in class com.mongodb.DBCollection
Deprecated.
Please use DBCollection.getFullName() instead.
_hintFields - Variable in class com.mongodb.DBCollection
_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() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.toByteArray() instead.
_input - Variable in class org.bson.LazyBSONObject
Deprecated.
Please use LazyBSONObject.getBytes() to access underlying bytes.
_isAscii(byte) - Method in class org.bson.BasicBSONDecoder.BSONInput
Deprecated.
 
_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.
_machine() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.toByteArray() instead.
_msDateFormat - Static variable in class com.mongodb.util.JSONCallback
 
_name - Variable in class com.mongodb.DBCollection
Deprecated.
Please use DBCollection.getName() instead.
_name - Variable in class com.mongodb.util.SimplePool
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
_objectClass - Variable in class com.mongodb.DBCollection
_out - Variable in class com.mongodb.util.SimplePool
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.
_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
_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).
_readOnly - Variable in class com.mongodb.DB
Deprecated.
_resultSet - Variable in class com.mongodb.AggregationOutput
Deprecated.
Please use AggregationOutput.results() instead.
_secDateFormat - Static variable in class com.mongodb.util.JSONCallback
 
_size - Variable in class com.mongodb.util.SimplePool
Deprecated.
 
_time() - Method in class org.bson.types.ObjectId
Deprecated.
Please use ObjectId.getTimestamp() ()} instead.
_utf8 - Static variable in class org.bson.BSON
Deprecated.
Use Charset.forName(String) to create UTF-8 charset.
A B C D E F G H I J K L M N O P Q R S T U V W _ 
Skip navigation links