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

A

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 appends
add(T) - Method in class com.mongodb.util.IdentitySet
 
add(T) - Method in class com.mongodb.util.UniqueList
 
add(T) - Method in class com.mongodb.util.WeakBag
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
 
add(String) - Method in class org.bson.util.StringRangeSet
 
addAll(Collection<T>) - Method in class com.mongodb.util.IdentitySet
 
addAll(IdentitySet<T>) - Method in class com.mongodb.util.IdentitySet
 
addAll(Collection<? extends T>) - Method in class com.mongodb.util.UniqueList
 
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
 
addDecodingHook(Class, Transformer) - Static method in class org.bson.BSON
 
addEncodingHook(Class, Transformer) - Static method in class org.bson.BSON
 
addExtraOption(String, Object) - Method in class com.mongodb.MapReduceCommand
 
addOption(int) - Method in class com.mongodb.DB
Adds the give option
addOption(int) - Method in class com.mongodb.DBCollection
adds a default query option
addOption(int) - Method in class com.mongodb.DBCursor
adds a query option - see Bytes.QUERYOPTION_* for list
addOption(int) - Method in class com.mongodb.Mongo
adds a default query option
addSpecial(String, Object) - Method in class com.mongodb.DBCursor
adds a special operator like $maxScan or $returnKey e.g.
addUser(String, char[]) - Method in class com.mongodb.DB
Adds a new user for this db
addUser(String, char[], boolean) - Method in class com.mongodb.DB
Adds a new user for this db
aggregate(DBObject, DBObject...) - Method in class com.mongodb.DBCollection
performs an aggregation operation
AggregationOutput - Class in com.mongodb
 
AggregationOutput(DBObject, CommandResult) - Constructor for class com.mongodb.AggregationOutput
 
all(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $all operand
ALL - Static variable in class com.mongodb.QueryOperators
 
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
calls DBCollection.apply(com.mongodb.DBObject, boolean) with ensureID=true
apply(DBObject, boolean) - Method in class com.mongodb.DBCollection
calls DBCollection.doapply(com.mongodb.DBObject), optionally adding an automatic _id field
applyDecodingHooks(Object) - Static method in class org.bson.BSON
 
applyEncodingHooks(Object) - Static method in class org.bson.BSON
 
Args - Class in com.mongodb.util
 
Args(String[]) - Constructor for class com.mongodb.util.Args
 
ARRAY - Static variable in class org.bson.BSON
 
array() - Method in class org.bson.io.BSONByteBuffer
 
arrayDone() - Method in class org.bson.BasicBSONCallback
 
arrayDone() - Method in interface org.bson.BSONCallback
 
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
 
arrayStart(String) - Method in interface org.bson.BSONCallback
 
arrayStart() - Method in class org.bson.EmptyBSONCallback
 
arrayStart(String) - Method in class org.bson.EmptyBSONCallback
 
asAscii() - Method in class org.bson.io.PoolOutputBuffer
 
assertArrayEquals(byte[], byte[]) - Static method in class com.mongodb.util.MyAsserts
 
assertClose(String, Object) - Static method in class com.mongodb.util.MyAsserts
 
assertClose(String, String) - Static method in class com.mongodb.util.MyAsserts
 
assertClose(String, String, String) - Static method in class com.mongodb.util.MyAsserts
 
assertEmptyString(String) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(int, int) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(long, long) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(char, char) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(short, short) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(byte, byte) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(double, double, double) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(String, Object) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(Object, Object) - Static method in class com.mongodb.util.MyAsserts
 
assertEquals(String, String, String) - Static method in class com.mongodb.util.MyAsserts
 
assertFalse(boolean) - Static method in class com.mongodb.util.MyAsserts
 
Assertions - Class in org.bson.util
Design by contract assertions.
assertLess(long, long) - Static method in class com.mongodb.util.MyAsserts
 
assertLess(double, double) - Static method in class com.mongodb.util.MyAsserts
 
assertNotEquals(Object, Object) - Static method in class com.mongodb.util.MyAsserts
 
assertNotNull(Object) - Static method in class com.mongodb.util.MyAsserts
 
assertNull(Object) - Static method in class com.mongodb.util.MyAsserts
 
assertSame(Object, Object) - Static method in class com.mongodb.util.MyAsserts
 
assertTrue(boolean) - Static method in class com.mongodb.util.MyAsserts
 
assertTrue(boolean, String) - Static method in class com.mongodb.util.MyAsserts
 
asString() - Method in class org.bson.io.BasicOutputBuffer
 
asString(String) - Method in class org.bson.io.BasicOutputBuffer
 
asString() - Method in class org.bson.io.OutputBuffer
 
asString(String) - Method in class org.bson.io.OutputBuffer
 
asString(String) - Method in class org.bson.io.PoolOutputBuffer
 
authenticate(String, char[]) - Method in class com.mongodb.DB
Authenticates to db with the given credentials.
authenticateCommand(String, char[]) - Method in class com.mongodb.DB
Authenticates to db with the given credentials.
autoConnectRetry(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether auto connect retry is enabled.
autoConnectRetry - Variable in class com.mongodb.MongoOptions
If true, the driver will keep trying to connect to the same server in case that the socket cannot be established.

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
 
Base64Codec - Class in com.mongodb.util
Provides Base64 encoding and decoding .
Base64Codec() - Constructor for class com.mongodb.util.Base64Codec
 
BasicBSONCallback - Class in org.bson
 
BasicBSONCallback() - Constructor for class org.bson.BasicBSONCallback
 
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
 
BasicBSONDecoder.BSONInput(InputStream) - Constructor for class org.bson.BasicBSONDecoder.BSONInput
 
BasicBSONEncoder - Class in org.bson
this is meant to be pooled or cached there is some per instance memory for string conversion, etc...
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
 
BasicBSONObject(String, Object) - Constructor for class org.bson.BasicBSONObject
Convenience CTOR
BasicBSONObject(Map) - Constructor for class org.bson.BasicBSONObject
Creates a DBObject from a map.
BasicDBList - Class in com.mongodb
a basic implementation of bson list that is mongo specific
BasicDBList() - Constructor for class com.mongodb.BasicDBList
 
BasicDBObject - Class in com.mongodb
a basic implementation of bson object that is mongo 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 example: BasicDBObjectBuilder.start().add( "name" , "eliot" ).add( "number" , 17 ).get()
BasicDBObjectBuilder() - Constructor for class com.mongodb.BasicDBObjectBuilder
creates an empty object
BasicOutputBuffer - Class in org.bson.io
 
BasicOutputBuffer() - Constructor for class org.bson.io.BasicOutputBuffer
 
batchSize(int) - Method in class com.mongodb.DBCursor
Limits the number of elements returned in one batch.
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 object
Bits - Class in org.bson.io
 
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
 
BSON() - Constructor for class org.bson.BSON
 
BSONByteBuffer - Class in org.bson.io
Pseudo byte buffer, delegates as it is too hard to properly override / extend the ByteBuffer API
BSONCallback - Interface in org.bson
 
BSONDecoder - Interface in org.bson
 
BSONEncoder - Interface in org.bson
 
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
 
BSONLazyDecoder - Class in org.bson
 
BSONLazyDecoder() - Constructor for class org.bson.BSONLazyDecoder
 
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
 
BSONTimestamp(int, int) - Constructor for class org.bson.types.BSONTimestamp
 
buf - Variable in class org.bson.io.BSONByteBuffer
 
BUF_SIZE - Static variable in class org.bson.io.PoolOutputBuffer
 
build() - Method in class com.mongodb.MongoClientOptions.Builder
Build an instance of MongoClientOptions.
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
does a read operation on the database
call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in interface com.mongodb.DBConnector
does a read operation on the database
call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in interface com.mongodb.DBConnector
does a read operation on the database
call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in class com.mongodb.DBTCPConnector
 
call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in class com.mongodb.DBTCPConnector
 
call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBTCPConnector
 
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
Returns if this collection's database is read-only
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
Removes any null objects from the bag.
cleanCursors(boolean) - Method in class com.mongodb.DB
 
cleanCursors(boolean) - Method in class com.mongodb.DBApiLayer
 
cleanup(DBPort) - Method in class com.mongodb.DBPortPool
 
cleanup(T) - Method in class com.mongodb.util.SimplePool
override this if you need to do any cleanup
clear() - Method in class com.mongodb.util.FastStack
 
clear() - Method in class com.mongodb.util.IdentitySet
 
clear() - Method in class com.mongodb.util.WeakBag
Removes all object from the bag.
clear() - Method in class org.bson.LazyBSONList
 
clear() - Method in class org.bson.util.ClassMap
 
clear() - Method in class org.bson.util.StringRangeSet
 
clearAllHooks() - Static method in class org.bson.BSON
 
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
 
clearStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
 
CLI - Class in com.mongodb.gridfs
a simple CLI for Gridfs
CLI() - Constructor for class com.mongodb.gridfs.CLI
 
close() - Method in class com.mongodb.DBCursor
kills the current cursor on the server.
close() - Method in class com.mongodb.DBPort
closes the underlying connection and streams
close() - Method in class com.mongodb.DBTCPConnector
 
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
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
 
CODE_W_SCOPE - Static variable in class org.bson.BSON
 
CodeWScope - Class in org.bson.types
for using the CodeWScope type
CodeWScope(String, BSONObject) - Constructor for class org.bson.types.CodeWScope
 
collectionExists(String) - Method in class com.mongodb.DB
Checks to see if a collection by name %lt;name> exists.
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
Executes a database command.
command(DBObject, int, ReadPreference) - Method in class com.mongodb.DB
Executes a database command.
command(DBObject, int, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
Executes a database command.
command(DBObject, int) - Method in class com.mongodb.DB
Executes a database command.
command(String) - Method in class com.mongodb.DB
Executes a database command.
command(String, int) - Method in class com.mongodb.DB
Executes a database command.
CommandResult - Class in com.mongodb
A simple wrapper for the result of getLastError() calls and other commands
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
returns a database object
connect(MongoURI) - Method in class com.mongodb.Mongo.Holder
Attempts to find an existing Mongo 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
A simple class that formats Mongo Java driver connection pool statistics in an easily-accessible JSON format.
ConnectionPoolStat(MBeanServerConnection) - Constructor for class com.mongodb.tools.ConnectionPoolStat
Use the given MBean server connection to access statistics for connection pools.
ConnectionPoolStat() - Constructor for class com.mongodb.tools.ConnectionPoolStat
Use the platform MBean server.
ConnectionPoolStatisticsBean - Class in com.mongodb.util
A bean representing connection pool statistics.
ConnectionPoolStatisticsBean(int, int, InUseConnectionBean[]) - Constructor for class com.mongodb.util.ConnectionPoolStatisticsBean
 
connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the maximum number of connections per host.
connectionsPerHost - Variable in class com.mongodb.MongoOptions
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
The connection timeout in milliseconds.
contains(T) - Method in class com.mongodb.util.IdentitySet
 
contains(T) - Method in class com.mongodb.util.WeakBag
 
contains(Object) - Method in class org.bson.LazyBSONList
 
contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
 
contains(Object) - Method in class org.bson.util.StringRangeSet
 
containsAll(Collection) - Method in class org.bson.LazyBSONList
 
containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
 
containsAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
 
containsField(String) - Method in class com.mongodb.gridfs.GridFSFile
 
containsField(String) - Method in class com.mongodb.LazyWriteableDBObject
 
containsField(String) - Method in class com.mongodb.RawDBObject
 
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
 
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.  
continueOnErrorForInsert(boolean) - Method in class com.mongodb.WriteConcern
Toggles the "continue inserts on error" mode.
copy() - Method in class com.mongodb.BasicDBList
 
copy() - Method in class com.mongodb.BasicDBObject
 
copy() - Method in class com.mongodb.DBCursor
Creates a copy of an existing database cursor.
copy() - Method in class com.mongodb.MongoOptions
 
count() - Method in class com.mongodb.DBCollection
returns the number of documents in this collection.
count(DBObject) - Method in class com.mongodb.DBCollection
returns the number of documents that match a query.
count(DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
returns the number of documents that match a query.
count() - Method in class com.mongodb.DBCursor
Counts the number of objects matching the query This does not take limit/skip into consideration
create(DBCollection) - Method in interface com.mongodb.DBCallbackFactory
 
create() - Method in interface com.mongodb.DBDecoderFactory
 
create() - Method in interface com.mongodb.DBEncoderFactory
 
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
 
create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
 
createArray(byte[], int) - Method in class org.bson.LazyBSONCallback
 
createBSONCallback() - Method in class org.bson.BasicBSONCallback
 
createBSONCallback() - Method in interface org.bson.BSONCallback
 
createBSONCallback() - Method in class org.bson.EmptyBSONCallback
 
createChunk(Object, int, byte[]) - Method in class com.mongodb.gridfs.GridFSInputFile
 
createCollection(String, DBObject) - Method in class com.mongodb.DB
Creates a collection with a given name and options.
createDBRef(String, ObjectId) - Method in class com.mongodb.LazyDBCallback
 
createDBRef(String, ObjectId) - Method in class org.bson.LazyBSONCallback
 
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
 
createFile() - Method in class com.mongodb.gridfs.GridFS
This method creates an empty GridFSInputFile instance.
createIndex(DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.createIndex(com.mongodb.DBObject, com.mongodb.DBObject) with default index options
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, DBObject, DBEncoder) - Method in class com.mongodb.DBCollection
Forces creation of an index on a set of fields, if one does not already exist.
createList() - Method in class com.mongodb.util.JSONCallback
 
createList() - Method in class org.bson.BasicBSONCallback
 
createNew() - Method in class com.mongodb.DBPortPool
 
createNew() - Method in class com.mongodb.util.SimplePool
Creates a new object of this pool's type.
createNew() - Method in class com.mongodb.util.StringBuilderPool
Create a new string builder.
createNew() - Method in class org.bson.util.SimplePool
 
createObject(byte[], int) - Method in class com.mongodb.LazyDBCallback
 
createObject(byte[], int) - Method in class com.mongodb.LazyWriteableDBCallback
 
createObject(byte[], int) - Method in class org.bson.LazyBSONCallback
 
cur() - Method in class org.bson.BasicBSONCallback
 
curName() - Method in class org.bson.BasicBSONCallback
 
curr() - Method in class com.mongodb.DBCursor
Returns the element the cursor is at.
cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
Sets whether cursor finalizers are enabled.
cursorFinalizerEnabled - Variable in class com.mongodb.MongoOptions
Sets whether there is a a finalize method created that cleans up instances of DBCursor that the client does not close.

D

DATE - Static variable in class org.bson.BSON
 
DB - Class in com.mongodb
an abstract class that represents a logical database on a server
DB(Mongo, String) - Constructor for class com.mongodb.DB
 
DBAddress - Class in com.mongodb
Represents a database address
DBAddress(String) - Constructor for class com.mongodb.DBAddress
Creates a new address Accepts as the parameter format: name "mydb" <host>/name "127.0.0.1/mydb" <host>:<port>/name "127.0.0.1:8080/mydb"
DBAddress(DBAddress, String) - Constructor for class com.mongodb.DBAddress
 
DBAddress(String, String) - Constructor for class com.mongodb.DBAddress
 
DBAddress(String, int, String) - Constructor for class com.mongodb.DBAddress
 
DBAddress(InetAddress, int, String) - Constructor for class com.mongodb.DBAddress
 
DBApiLayer - Class in com.mongodb
Database API This cannot be directly instantiated, but the functions are available through instances of Mongo.
DBApiLayer(Mongo, String, DBConnector) - Constructor for class com.mongodb.DBApiLayer
 
DBApiLayer(Mongo, String, DBTCPConnector, String, char[]) - Constructor for class com.mongodb.DBApiLayer
 
DBCallback - Interface in com.mongodb
The DB callback interface.
DBCallbackFactory - Interface in com.mongodb
The DBCallback factory interface.
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
Interface that provides the ability to exchange request/response with the database
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
 
DBDecoderFactory - Interface in com.mongodb
 
dbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the decoder factory.
dbDecoderFactory - Variable in class com.mongodb.MongoOptions
Override the DBCallback factory.
DBEncoder - Interface in com.mongodb
 
DBEncoderFactory - Interface in com.mongodb
 
dbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the encoder factory.
dbEncoderFactory - Variable in class com.mongodb.MongoOptions
Override the encoding factory.
DBObject - Interface in com.mongodb
A key-value map that can be saved to the database.
DBPointer - Class in com.mongodb
Deprecated.  
DBPointer(String, ObjectId) - Constructor for class com.mongodb.DBPointer
Deprecated. CTOR used for testing BSON encoding.
DBPort - Class in com.mongodb
represents a Port to the database, which is effectively a single connection to a server Methods implemented at the port level should throw the raw exceptions like IOException, so that the connector above can make appropriate decisions on how to handle.
DBPort(ServerAddress) - Constructor for class com.mongodb.DBPort
creates a new DBPort
DBPortPool - Class in com.mongodb
This class is NOT part of the public API.
DBPortPool.ConnectionWaitTimeOut - Exception in com.mongodb
 
DBPortPool.NoMoreConnection - Exception in com.mongodb
 
DBPortPool.SemaphoresOut - Exception in com.mongodb
 
DBRef - Class in com.mongodb
overrides DBRefBase to understand a BSONObject representation of a reference.
DBRef(DB, BSONObject) - Constructor for class com.mongodb.DBRef
Creates a DBRef
DBRef(DB, String, Object) - Constructor for class com.mongodb.DBRef
Creates a DBRef
DBRefBase - Class in com.mongodb
represents a database reference, which points to an object stored in the database
DBRefBase(DB, String, Object) - Constructor for class com.mongodb.DBRefBase
Creates a DBRefBase
DBTCPConnector - Class in com.mongodb
 
DBTCPConnector(Mongo, ServerAddress) - Constructor for class com.mongodb.DBTCPConnector
 
DBTCPConnector(Mongo, ServerAddress...) - Constructor for class com.mongodb.DBTCPConnector
 
DBTCPConnector(Mongo, List<ServerAddress>) - Constructor for class com.mongodb.DBTCPConnector
 
debugString() - Method in class com.mongodb.DBTCPConnector
 
debugString() - Method in class com.mongodb.Mongo
returns a string representing the hosts used in this Mongo instance
decode(byte[], DBCollection) - Method in interface com.mongodb.DBDecoder
 
decode(InputStream, DBCollection) - Method in interface com.mongodb.DBDecoder
 
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(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
 
decode(byte[], BSONCallback) - Method in interface org.bson.BSONDecoder
 
decode(InputStream, BSONCallback) - Method in interface org.bson.BSONDecoder
 
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
 
decode(InputStream, BSONCallback) - Method in class org.bson.NewBSONDecoder
 
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
 
DefaultDBDecoder - Class in com.mongodb
 
DefaultDBDecoder() - Constructor for class com.mongodb.DefaultDBDecoder
 
DefaultDBEncoder - Class in com.mongodb
 
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
The description for Mongo instances created with these options.
distinct(String) - Method in class com.mongodb.DBCollection
find distinct values for a key
distinct(String, ReadPreference) - Method in class com.mongodb.DBCollection
find distinct values for a key
distinct(String, DBObject) - Method in class com.mongodb.DBCollection
find distinct values for a key
distinct(String, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
find distinct values for a key
doapply(DBObject) - Method in class com.mongodb.DBCollection
Adds any necessary fields to a given object before saving it to the collection.
doEval(String, Object...) - Method in class com.mongodb.DB
evaluates a function on the database.
doGetCollection(String) - Method in class com.mongodb.DB
Returns the collection represented by the string <dbName>.<collectionName>.
doGetCollection(String) - Method in class com.mongodb.DBApiLayer
 
done(T) - Method in class com.mongodb.util.SimplePool
call done when you are done with an object form the pool if there is room and the object is ok will get added
done() - Method in class org.bson.BasicBSONEncoder
 
done() - Method in interface org.bson.BSONEncoder
 
done(T) - Method in class org.bson.util.SimplePool
 
drop() - Method in class com.mongodb.DBCollection
Drops (deletes) this collection.
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 an index from this collection
dropIndexes() - Method in class com.mongodb.DBCollection
Drops all indices from this collection
dropIndexes(String) - Method in class com.mongodb.DBCollection
Drops an index from this collection

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
 
EmptyBSONCallback() - Constructor for class org.bson.EmptyBSONCallback
 
encode(byte[]) - Method in class com.mongodb.util.Base64Codec
 
encode(BSONObject) - Method in class org.bson.BasicBSONEncoder
 
encode(BSONObject) - Static method in class org.bson.BSON
 
encode(BSONObject) - Method in interface org.bson.BSONEncoder
 
ensureIndex(String) - Method in class com.mongodb.DBCollection
Creates an ascending index on a field with default options, if one does not already exist.
ensureIndex(DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.ensureIndex(com.mongodb.DBObject, com.mongodb.DBObject) with default options
ensureIndex(DBObject, String) - Method in class com.mongodb.DBCollection
calls DBCollection.ensureIndex(com.mongodb.DBObject, java.lang.String, boolean) with unique=false
ensureIndex(DBObject, String, boolean) - Method in class com.mongodb.DBCollection
Ensures an index on this collection (that is, the index will be created if it does not exist).
ensureIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Creates an index on a set of fields, if one does not already exist.
ensureOpen() - Method in class com.mongodb.DBPort
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.DBAddress
 
equals(Object) - Method in class com.mongodb.DBCollection
 
equals(Object) - Method in class com.mongodb.DBRefBase
 
equals(Object) - Method in class com.mongodb.MongoOptions
 
equals(Object) - Method in class com.mongodb.ServerAddress
 
equals(Object) - Method in class com.mongodb.TaggableReadPreference
 
equals(Object) - Method in class com.mongodb.WriteConcern
 
equals(Object) - Method in class org.bson.BasicBSONObject
 
equals(Object) - Method in class org.bson.io.BSONByteBuffer
 
equals(Object) - Method in class org.bson.LazyBSONObject
 
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
Will compare equal to a String that is equal to the String that this holds
ERRORS_IGNORED - Static variable in class com.mongodb.WriteConcern
No exceptions are raised, even for network issues.
eval(String, Object...) - Method in class com.mongodb.DB
calls DB.doEval(java.lang.String, java.lang.Object[]).
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 This creates a DBObject with the key/value pairs: "cursor" : cursor type "nScanned" : number of records examined by the database for this query "n" : the number of records that the database returned "millis" : how long it took the database to execute the query
EXPLAIN - Static variable in class com.mongodb.QueryOperators
 

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
 
FACTORY - Static variable in class com.mongodb.LazyWriteableDBDecoder
 
fail(String) - Static method in class com.mongodb.util.MyAsserts
 
FastStack<T> - Class in com.mongodb.util
 
FastStack() - Constructor for class com.mongodb.util.FastStack
 
fetch(DB, DBObject) - Static method in class com.mongodb.DBRef
fetches a referenced object from the database
fetch() - Method in class com.mongodb.DBRefBase
fetches the object referenced from the database
fill(byte[]) - Method in class org.bson.BasicBSONDecoder.BSONInput
 
fill(byte[], int) - Method in class org.bson.BasicBSONDecoder.BSONInput
 
finalize() - Method in class com.mongodb.DBPort
 
find(DBObject, DBObject, int, int, int) - Method in class com.mongodb.DBCollection
Deprecated. 
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 id.
find(String) - 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
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
Finds the first document in the query and updates it.
findAndModify(DBObject, DBObject, DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.findAndModify(com.mongodb.DBObject, com.mongodb.DBObject, com.mongodb.DBObject, boolean, com.mongodb.DBObject, boolean, boolean) with fields=null, remove=false, returnNew=false, upsert=false
findAndModify(DBObject, DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.findAndModify(com.mongodb.DBObject, com.mongodb.DBObject, com.mongodb.DBObject, boolean, com.mongodb.DBObject, boolean, boolean) with fields=null, sort=null, remove=false, returnNew=false, upsert=false
findAndRemove(DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.findAndModify(com.mongodb.DBObject, com.mongodb.DBObject, com.mongodb.DBObject, boolean, com.mongodb.DBObject, boolean, boolean) with fields=null, sort=null, remove=true, returnNew=false, upsert=false
findOne(Object) - Method in class com.mongodb.DBCollection
Finds an object by its id.
findOne(Object, DBObject) - Method in class com.mongodb.DBCollection
Finds an object by its 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 obejct from this collection matching the query.
findOne(DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Returns a single object from this collection matching the query.
findOne(DBObject, DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
Returns a single object from this collection matching the query.
findOne(ObjectId) - Method in class com.mongodb.gridfs.GridFS
finds one file matching the given id.
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
For testing purposes only - this method forces an error to help test error handling
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
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
Convenience method to generate an index name from the set of fields it is over.
get() - Method in class com.mongodb.BasicDBObjectBuilder
gets the base object
get() - Method in class com.mongodb.DBPortPool
 
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get(String) - Method in class com.mongodb.LazyWriteableDBObject
 
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
 
get(String) - Method in class com.mongodb.ReflectionDBObject
 
get(ReflectionDBObject, String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
 
get(int) - Method in class com.mongodb.util.FastStack
 
get() - Method in class com.mongodb.util.SimplePool
Gets an object from the pool - will block if none are available
get(long) - Method in class com.mongodb.util.SimplePool
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
 
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
 
get(byte[], int, int) - Method in class org.bson.io.BSONByteBuffer
 
get(byte[]) - Method in class org.bson.io.BSONByteBuffer
 
get(String) - Method in class org.bson.KeyCachingLazyBSONObject
 
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
 
get() - Method in class org.bson.util.SimplePool
 
get_id() - Method in class com.mongodb.ReflectionDBObject
Gets the _id
getAddress() - Method in class com.mongodb.DBTCPConnector
 
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
 
getAllAddress() - Method in class com.mongodb.DBTCPConnector
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
getAncestry(Class<T>) - Static method in class org.bson.util.ClassMap
Walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
getAvailable() - Method in class com.mongodb.util.SimplePool
 
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
 
getBucketName() - Method in class com.mongodb.gridfs.GridFS
gets the bucket name used in the collection's namespace
getCachedLastError() - Method in class com.mongodb.WriteResult
Gets the last result from getLastError()
getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
Gets the size of a chunk
getCode() - Method in exception com.mongodb.MongoException
Gets the exception code
getCode() - Method in class com.mongodb.ServerError
Gets the error code
getCode() - Method in class org.bson.types.Code
 
getCollection(String) - Method in class com.mongodb.DB
Gets a collection with a given name.
getCollection(String) - Method in class com.mongodb.DBCollection
Finds 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.
getCollectionNames() - Method in class com.mongodb.DB
Returns a set containing the names of all collections in this database.
getCommand() - Method in class com.mongodb.AggregationOutput
returns the original aggregation command
getCommand() - Method in class com.mongodb.MapReduceOutput
 
getCommand() - Method in class com.mongodb.WriteConcern
Gets the getlasterror command for this write concern.
getCommandResult() - Method in class com.mongodb.AggregationOutput
returns the command result of the aggregation
getCommandResult() - Method in class com.mongodb.MapReduceOutput
 
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
 
getConnector() - Method in class com.mongodb.Mongo
Gets the underlying TCP connector
getConnectPoint() - Method in class com.mongodb.DBTCPConnector
 
getConnectPoint() - Method in class com.mongodb.Mongo
Gets the current master's hostname
getConnectTimeout() - Method in class com.mongodb.MongoClientOptions
The connection timeout in milliseconds.
getConnectTimeout() - Method in class com.mongodb.MongoOptions
 
getContentType() - Method in class com.mongodb.gridfs.GridFSFile
Gets the content type
getContinueOnErrorForInsert() - Method in class com.mongodb.WriteConcern
Gets the "continue inserts on error" mode
getCount() - Method in class com.mongodb.DBCollection
calls DBCollection.getCount(com.mongodb.DBObject, com.mongodb.DBObject) with an empty query and null fields.
getCount(ReadPreference) - Method in class com.mongodb.DBCollection
calls DBCollection.getCount(com.mongodb.DBObject, com.mongodb.DBObject, com.mongodb.ReadPreference) with empty query and null fields.
getCount(DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.getCount(com.mongodb.DBObject, com.mongodb.DBObject) with null fields.
getCount(DBObject, DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.getCount(com.mongodb.DBObject, com.mongodb.DBObject, long, long) with limit=0 and skip=0
getCount(DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
calls DBCollection.getCount(com.mongodb.DBObject, com.mongodb.DBObject, long, long, com.mongodb.ReadPreference) with limit=0 and skip=0
getCount(DBObject, DBObject, long, long) - Method in class com.mongodb.DBCollection
calls DBCollection.getCount(com.mongodb.DBObject, com.mongodb.DBObject, long, long, com.mongodb.ReadPreference) with the DBCollection's ReadPreference
getCount(DBObject, DBObject, long, long, ReadPreference) - Method in class com.mongodb.DBCollection
Returns the number of documents in the collection that match the specified query
getCString(int) - Method in class org.bson.io.BSONByteBuffer
 
getCurrentInc() - Static method in class org.bson.types.ObjectId
Gets the current value of the auto increment
getCursorId() - Method in class com.mongodb.DBCursor
gets the cursor id.
getCursorId() - Method in exception com.mongodb.MongoException.CursorNotFound
Get the cursor id that wasn't found.
getData() - Method in class org.bson.types.Binary
 
getDatabase() - Method in class com.mongodb.MongoClientURI
Gets the database name
getDatabase() - Method in class com.mongodb.MongoURI
Gets the database name
getDatabaseNames() - Method in class com.mongodb.Mongo
gets a list of all database names present on the 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.
getDB() - Method in class com.mongodb.DBCollection
Returns the database this collection is a member of.
getDB() - Method in class com.mongodb.DBRefBase
Gets the database
getDB() - Method in class com.mongodb.gridfs.GridFS
gets the db used
getDB(String) - Method in class com.mongodb.Mongo
gets a database object
getDBCallback(DBCollection) - Method in interface com.mongodb.DBDecoder
 
getDBCallback(DBCollection) - Method in class com.mongodb.DefaultDBDecoder
 
getDBCallback(DBCollection) - Method in class com.mongodb.LazyDBDecoder
 
getDBCallback(DBCollection) - Method in class com.mongodb.LazyWriteableDBDecoder
 
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
 
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
 
getDBName() - Method in class com.mongodb.DBAddress
gets the database name
getDBPortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
Gets the DBPortPool associated with a ServerAddress.
getDecoderFactory() - Method in class com.mongodb.DBCursor
 
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
 
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.
getDurationMS() - Method in class com.mongodb.InUseConnectionBean
 
getElementBSONSize(int) - Method in class org.bson.LazyBSONObject
 
getElementType(int) - Method in class org.bson.LazyBSONObject
 
getElementValue(LazyBSONObject.ElementRecord) - Method in class org.bson.LazyBSONObject
 
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
Gets the error String
getError() - Method in class com.mongodb.WriteResult
Gets the error String ("err" field)
getErrorCode() - Method in exception org.bson.BSONException
Returns the error code.
getErrorMessage() - Method in class com.mongodb.CommandResult
gets the "errmsg" field which holds the error message
getException() - Method in class com.mongodb.CommandResult
utility method to create an exception with the command name
getExtraOptions() - Method in class com.mongodb.MapReduceCommand
 
getField(String) - Method in class com.mongodb.WriteResult
Gets a field
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
getFilename() - Method in class com.mongodb.gridfs.GridFSFile
Gets the filename
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
Returns the full name of this collection, with the database name as a prefix.
getGenMachineId() - Static method in class org.bson.types.ObjectId
Gets the generated machine ID, identifying the machine / process / class loader
getHost() - Method in class com.mongodb.DBPortPool
 
getHost() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Gets the host that this connection pool is connecting to.
getHost() - Method in interface com.mongodb.MongoConnectionPoolMXBean
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.DBPointer
Deprecated.  
getId() - Method in class com.mongodb.DBRefBase
Gets the object's id
getId() - Method in class com.mongodb.gridfs.GridFSFile
Gets the id
getInc() - Method in class org.bson.types.BSONTimestamp
 
getInc() - Method in class org.bson.types.ObjectId
 
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
getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
Returns an InputStream from which data can be read
getInt(String, int) - Method in class com.mongodb.util.OptionMap
 
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
Gets a Little Endian Integer
getIntBE(int) - Method in class org.bson.io.BSONByteBuffer
 
getInternalClass(String) - Method in class com.mongodb.DBCollection
gets the internal class
getIntLE(int) - Method in class org.bson.io.BSONByteBuffer
 
getInUse() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Gets the number of pool members that are currently in use.
getInUse() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
Gets the number of pool members that are currently in use.
getInUse() - Method in class com.mongodb.util.SimplePool
 
getInUseConnections() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
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)
getKeysWanted() - Method in class com.mongodb.DBCursor
gets the fields to be returned
getLastConcern() - Method in class com.mongodb.WriteResult
Gets the last WriteConcern used when calling getLastError()
getLastError() - Method in class com.mongodb.DB
Gets the the error (if there is one) from the previous operation on this connection.
getLastError(WriteConcern) - Method in class com.mongodb.DB
 
getLastError(int, int, boolean) - Method in class com.mongodb.DB
 
getLastError() - Method in class com.mongodb.WriteResult
calls WriteResult.getLastError(com.mongodb.WriteConcern) with concern=null
getLastError(WriteConcern) - Method in class com.mongodb.WriteResult
This method does following: - returns the existing CommandResult if concern is null or less strict than the concern it was obtained with - otherwise attempts to obtain a CommandResult by calling getLastError with the concern
getLegacy() - Static method in class com.mongodb.util.JSONSerializers
Returns an ObjectSerializer that mostly conforms to the strict JSON format defined in getLength() - Method in class com.mongodb.gridfs.GridFSFile
Gets the file's length
getLimit() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) limit on input
getLocalPort() - Method in class com.mongodb.InUseConnectionBean
 
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
 
getMachine() - Method in class org.bson.types.ObjectId
 
getMajorVersion() - Static method in class com.mongodb.Mongo
Gets the major version of this library
getMap() - Method in class com.mongodb.MapReduceCommand
Get the map function, as a JS String
getMaster() - Method in class com.mongodb.ReplicaSetStatus
 
getMax() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoClientOptions
The maximum amount of time in MS to spend retrying to open connection to the same server.
getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoOptions
 
getMaxBsonObjectSize() - Method in class com.mongodb.DBTCPConnector
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.
getMaxSize() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxSize() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Gets the maximum allowed size of the pool, including idle and in-use members.
getMaxSize() - Method in class com.mongodb.util.SimplePool
 
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
 
getMD5() - Method in class com.mongodb.gridfs.GridFSFile
Gets the observed MD5 during transfer
getMessage() - Method in exception com.mongodb.util.JSONParseException
 
getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
Gets the file metadata
getMinorVersion() - Static method in class com.mongodb.Mongo
Gets the minor version of this library
getMongo() - Method in class com.mongodb.DB
Gets the Mongo instance
getMongoOptions() - Method in class com.mongodb.Mongo
Returns the mongo options.
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
Returns the name of this collection.
getName() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Gets the name of the pool.
getName() - Method in interface com.mongodb.MongoConnectionPoolMXBean
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
 
getName() - Method in class com.mongodb.util.SimplePool
 
getNamespace() - Method in class com.mongodb.InUseConnectionBean
 
getNumDocuments() - Method in class com.mongodb.InUseConnectionBean
 
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.
getOpCode() - Method in class com.mongodb.InUseConnectionBean
 
getOption(String) - Method in class com.mongodb.util.Args
 
getOptions() - Method in class com.mongodb.DB
Gets the query options
getOptions() - Method in class com.mongodb.DBCollection
gets the default query options
getOptions() - Method in class com.mongodb.DBCursor
gets the query options
getOptions() - Method in class com.mongodb.Mongo
gets the default query options
getOptions() - Method in class com.mongodb.MongoClientURI
Gets the options
getOptions() - Method in class com.mongodb.MongoURI
Gets the options.
getOutputCollection() - Method in class com.mongodb.MapReduceOutput
gets the collection that holds the results (Will return null if results are Inline)
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.MongoURI
Gets the password
getPool() - Method in class com.mongodb.DBPort
Gets the pool that this port belongs to
getPort() - Method in class com.mongodb.DBPortPool
 
getPort() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Gets the port that this connection pool is connecting to.
getPort() - Method in interface com.mongodb.MongoConnectionPoolMXBean
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
 
getPosition() - Method in class org.bson.io.BasicOutputBuffer
 
getPosition() - Method in class org.bson.io.OutputBuffer
 
getPosition() - Method in class org.bson.io.PoolOutputBuffer
 
getPreviousError() - Method in class com.mongodb.DB
Returns the last error that occurred since start of database or a call to resetError() The return object will look like
getQuery() - Method in class com.mongodb.DBCursor
gets the query
getQuery() - Method in class com.mongodb.InUseConnectionBean
 
getQuery() - Method in class com.mongodb.MapReduceCommand
Gets the query to run for this MapReduce job
getRaw() - Method in class com.mongodb.MapReduceOutput
Deprecated. 
getReadPreference() - Method in class com.mongodb.DB
Gets the default read preference
getReadPreference() - Method in class com.mongodb.DBCollection
Gets the read preference
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
 
getReduce() - Method in class com.mongodb.MapReduceCommand
Gets the reduce function, as a JS String
getRef() - Method in class com.mongodb.DBRefBase
Gets the object's namespace (collection name)
getReplicaSetStatus() - Method in class com.mongodb.DBTCPConnector
 
getReplicaSetStatus() - Method in class com.mongodb.Mongo
Gets the replica set status object
getScope() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) JavaScript scope
getScope() - Method in class org.bson.types.CodeWScope
 
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
 
getServerAddress() - Method in exception com.mongodb.MongoException.CursorNotFound
The server address where the cursor is.
getServerAddressList() - Method in class com.mongodb.DBTCPConnector
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 the connector.
getServerUsed() - Method in class com.mongodb.AggregationOutput
returns the address of the server used to execute the aggregation
getServerUsed() - Method in class com.mongodb.CommandResult
 
getServerUsed() - Method in class com.mongodb.MapReduceOutput
 
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
getSizes() - Method in class com.mongodb.DBCursor
gets a list containing the number of items received in each batch
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
 
getSocketTimeout() - Method in class com.mongodb.MongoClientOptions
The socket timeout in milliseconds.
getSocketTimeout() - Method in class com.mongodb.MongoOptions
 
getSort() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) sort specification object
getStatistics() - Method in class com.mongodb.DBPortPool
 
getStatistics() - Method in interface com.mongodb.MongoConnectionPoolMXBean
Gets the statistics for this connection pool.
getStats() - Method in class com.mongodb.DB
Returns the result of "dbstats" command
getStats() - Method in class com.mongodb.DBCollection
gets the collections statistics ("collstats" command)
getStats() - Method in class com.mongodb.tools.ConnectionPoolStat
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
 
getStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
 
getStrict() - Static method in class com.mongodb.util.JSONSerializers
Returns an ObjectSerializer that conforms to the strict JSON format defined in 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
 
getTags() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.  
getTagSets() - Method in class com.mongodb.TaggableReadPreference
 
getThreadName() - Method in class com.mongodb.InUseConnectionBean
 
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
 
getTime() - Method in class org.bson.types.BSONTimestamp
 
getTime() - Method in class org.bson.types.ObjectId
Gets the time of this ID, in milliseconds
getTimeSecond() - Method in class org.bson.types.ObjectId
Gets the time of this ID, in seconds
getTotal() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
Gets the total number of pool members, including idle and and in-use members.
getTotal() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
Gets the total number of pool members, including idle and and in-use members.
getTotal() - Method in class com.mongodb.util.SimplePool
 
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
 
getUploadDate() - Method in class com.mongodb.gridfs.GridFSFile
Gets the upload date
getURI() - Method in class com.mongodb.MongoClientURI
Get the unparsed URI.
getUsedDatabases() - Method in class com.mongodb.Mongo
gets a collection of DBs 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.MongoURI
Gets the username
getUTF8String(int) - Method in class org.bson.io.BSONByteBuffer
 
getVersion() - Method in class com.mongodb.Mongo
gets this driver version
getW() - Method in class com.mongodb.MongoOptions
 
getW() - Method in class com.mongodb.WriteConcern
Gets the w parameter (the write strategy)
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 write concern for this collection.
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
Helper method to return the appropriate WriteConcern instance based on the current related options settings.
getWString() - Method in class com.mongodb.WriteConcern
Gets the w parameter (the write strategy) in String format
getWtimeout() - Method in class com.mongodb.MongoOptions
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
gotMaxKey(String) - Method in class org.bson.EmptyBSONCallback
 
gotMinKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMinKey(String) - Method in interface org.bson.BSONCallback
 
gotMinKey(String) - Method in class org.bson.EmptyBSONCallback
 
gotNull(String) - Method in class org.bson.BasicBSONCallback
 
gotNull(String) - Method in interface org.bson.BSONCallback
 
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
 
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
 
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
 
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
 
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
 
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
 
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
subtype 3
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 v1.0 GridFS 1.0 spec
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 to retrieve 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 Operations include: - writing data obtained from an InputStream - getting an OutputStream to stream the data out
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
calls DBCollection.group(com.mongodb.DBObject, com.mongodb.DBObject, com.mongodb.DBObject, java.lang.String, java.lang.String) with finalize=null
group(DBObject, DBObject, DBObject, String, String) - Method in class com.mongodb.DBCollection
Applies a group operation
group(DBObject, DBObject, DBObject, String, String, ReadPreference) - Method in class com.mongodb.DBCollection
Applies a group operation
group(GroupCommand) - Method in class com.mongodb.DBCollection
Applies a group operation
group(GroupCommand, ReadPreference) - Method in class com.mongodb.DBCollection
Applies a group operation
group(DBObject) - Method in class com.mongodb.DBCollection
Deprecated. prefer the DBCollection.group(com.mongodb.GroupCommand) which is more standard Applies a group operation
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
 
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
 
hasDecodeHooks() - Static method in class org.bson.BSON
 
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
 
Hash() - Constructor for class com.mongodb.util.Hash
 
hashBackward(String) - Static method in class com.mongodb.util.Hash
Creates a hash for a string.
hashBackwardLong(String) - Static method in class com.mongodb.util.Hash
Creates a long hash for a string.
hashCode() - Method in class com.mongodb.DBAddress
 
hashCode() - Method in class com.mongodb.DBCollection
 
hashCode() - Method in class com.mongodb.DBPort
 
hashCode() - Method in class com.mongodb.DBRefBase
 
hashCode() - Method in class com.mongodb.MongoOptions
 
hashCode() - Method in class com.mongodb.ServerAddress
 
hashCode() - Method in class com.mongodb.TaggableReadPreference
 
hashCode(CharSequence, int, int) - Static method in class com.mongodb.util.Hash
Creates a hash code of a string from [start-end)
hashCode(String...) - Static method in class com.mongodb.util.Hash
Calculate the hashcode for a series of strings combined as one.
hashCode() - Method in class com.mongodb.WriteConcern
 
hashCode() - Method in class org.bson.io.BSONByteBuffer
 
hashCode() - Method in class org.bson.LazyBSONObject
 
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
 
hex() - Method in class org.bson.io.OutputBuffer
 
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
 
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
 
host() - Method in class com.mongodb.DBPort
returns a String representation of the target host

I

IdentitySet<T> - Class in com.mongodb.util
 
IdentitySet() - Constructor for class com.mongodb.util.IdentitySet
 
IdentitySet(Iterable<T>) - Constructor for class com.mongodb.util.IdentitySet
 
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
 
inProgress() - Method in class com.mongodb.util.ThreadPool
Deprecated.  
insert(DBObject[], WriteConcern) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
insert(DBObject[], WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
insert(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Inserts a document into the database.
insert(DBObject...) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
insert(WriteConcern, DBObject...) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
insert(List<DBObject>) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
insert(List<DBObject>, WriteConcern) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
insert(List<DBObject>, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
InUseConnectionBean - Class in com.mongodb
This class is NOT part of the public API.
is(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the find({key:value})
isAuthenticated() - Method in class com.mongodb.DB
Returns true if a user has been authenticated
isAutoConnectRetry() - Method in class com.mongodb.MongoClientOptions
If true, the driver will keep trying to connect to the same server in case that the socket cannot be established.
isAutoConnectRetry() - Method in class com.mongodb.MongoOptions
 
isCapped() - Method in class com.mongodb.DBCollection
returns whether or not this is a capped collection
isClose(String, String) - Static method in class com.mongodb.util.MyAsserts
 
isCursorFinalizerEnabled() - Method in class com.mongodb.MongoClientOptions
Sets 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
 
isElementEmpty(int) - Method in class org.bson.LazyBSONObject
 
isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
returns true if no key/value was inserted into base object
isEmpty() - Method in class com.mongodb.LazyWriteableDBObject
 
isEmpty() - Method in class org.bson.LazyBSONObject
 
isEmpty() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
 
isEmpty() - Method in class org.bson.util.ClassMap
 
isEmpty() - Method in class org.bson.util.StringRangeSet
 
isFsync() - Method in class com.mongodb.MongoOptions
 
isJ() - Method in class com.mongodb.MongoOptions
 
isLazy() - Method in class com.mongodb.WriteResult
Returns whether or not the result is lazy, meaning that getLastError was not called automatically
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
 
isNew() - Method in class org.bson.types.ObjectId
 
isNotMasterError() - Method in class com.mongodb.ServerError
returns true if the error is "not master", which usually happens when doing operation on slave
isOpen() - Method in interface com.mongodb.DBConnector
returns true if the connector is in a usable state
isOpen() - Method in class com.mongodb.DBTCPConnector
 
isPartialObject() - Method in class com.mongodb.BasicDBList
 
isPartialObject() - Method in class com.mongodb.BasicDBObject
 
isPartialObject() - Method in interface com.mongodb.DBObject
whether 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
 
isPartialObject() - Method in class com.mongodb.ReflectionDBObject
 
isPartialObject() - Method in class org.bson.LazyDBList
 
isSafe() - Method in class com.mongodb.MongoOptions
 
isSlaveOk() - Method in class com.mongodb.ReadPreference
 
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
 
isStackEmpty() - Method in class org.bson.BasicBSONCallback
 
isTrue(String, boolean) - Static method in class org.bson.util.Assertions
 
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.util.IdentitySet
 
iterator() - Method in class com.mongodb.util.WeakBag
 
iterator() - Method in class org.bson.LazyBSONList
 
iterator() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
 
iterator() - Method in class org.bson.util.StringRangeSet
 

J

j - Variable in class com.mongodb.MongoOptions
The "j" value of the global WriteConcern.
Java5MongoConnectionPoolMBean - Interface in com.mongodb
A standard MBean interface for a Mongo connection pool, for use on Java 5 virtual machines.
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
 
JSONCallback() - Constructor for class com.mongodb.util.JSONCallback
 
JSONParseException - Exception in com.mongodb.util
Exception throw when invalid JSON is passed to JSONParser.
JSONParseException(String, int) - Constructor for exception com.mongodb.util.JSONParseException
 
JSONParseException(String, int, Throwable) - Constructor for exception com.mongodb.util.JSONParseException
 
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
 
KeyCachingLazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
 
KeyCachingLazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
 
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
 
keySet() - Method in class com.mongodb.RawDBObject
 
keySet() - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
 
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

lastIndexOf(Object) - Method in class org.bson.LazyBSONList
 
LazyBSONCallback - Class in org.bson
 
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
 
LazyBSONList - Class in org.bson
 
LazyBSONList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
 
LazyBSONList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
 
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
 
LazyBSONList.LazyBSONListIterator() - Constructor for class org.bson.LazyBSONList.LazyBSONListIterator
 
LazyBSONObject - Class in org.bson
 
LazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
 
LazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
 
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
 
LazyBSONObject.LazyBSONKeySet() - Constructor for class org.bson.LazyBSONObject.LazyBSONKeySet
 
LazyDBCallback - Class in com.mongodb
 
LazyDBCallback(DBCollection) - Constructor for class com.mongodb.LazyDBCallback
 
LazyDBDecoder - Class in com.mongodb
 
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 org.bson
 
LazyDBList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyDBList
 
LazyDBList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
 
LazyDBList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
 
LazyDBList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
 
LazyDBObject - Class in com.mongodb
 
LazyDBObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
 
LazyDBObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
 
LazyDBObject(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
 
LazyDBObject(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
 
LazyWriteableDBCallback - Class in com.mongodb
 
LazyWriteableDBCallback(DBCollection) - Constructor for class com.mongodb.LazyWriteableDBCallback
 
LazyWriteableDBDecoder - Class in com.mongodb
 
LazyWriteableDBDecoder() - Constructor for class com.mongodb.LazyWriteableDBDecoder
 
LazyWriteableDBObject - Class in com.mongodb
 
LazyWriteableDBObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
 
LazyWriteableDBObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
 
LazyWriteableDBObject(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
 
LazyWriteableDBObject(byte[], 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
 
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
 
longHash(String) - Static method in class com.mongodb.util.Hash
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
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
Adds a character to an existing hash code.
longLowerHash(String) - Static method in class com.mongodb.util.Hash
Same as longHash(String), using only lower-case values of letters.
longLowerHash(String, int, int) - Static method in class com.mongodb.util.Hash
Long (64-bit) hash, lower-cased, from [start-end)
longLowerHash(String, int, int, long) - Static method in class com.mongodb.util.Hash
Long (64-bit) hash, lower-cased, from [start-end)
longLowerHashAppend(long, char) - Static method in class com.mongodb.util.Hash
Adds the lower-case equivalent of a character to an existing hash code.
lowerCaseHash(String) - Static method in class com.mongodb.util.Hash
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
Creates a hash code of a lowercase string from [start-end)
lowerCaseSpaceTrimHash(String) - Static method in class com.mongodb.util.Hash
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
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
Command line interface for displaying connection pool stats.
MAJOR_VERSION - Static variable in class com.mongodb.Mongo
Deprecated. Replaced by Mongo.getMajorVersion()
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.
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
performs a map reduce operation Runs the command in REPLACE output mode (saves to named collection)
mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject) - Method in class com.mongodb.DBCollection
performs a map reduce operation Specify an outputType to control job execution * INLINE - Return results inline * REPLACE - Replace the output collection with the job output * MERGE - Merge the job output with the existing contents of outputTarget * REDUCE - Reduce the job output with the existing contents of outputTarget
mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
performs a map reduce operation Specify an outputType to control job execution * INLINE - Return results inline * REPLACE - Replace the output collection with the job output * MERGE - Merge the job output with the existing contents of outputTarget * REDUCE - Reduce the job output with the existing contents of outputTarget
mapReduce(MapReduceCommand) - Method in class com.mongodb.DBCollection
performs a map reduce operation
mapReduce(DBObject) - Method in class com.mongodb.DBCollection
performs a map reduce operation
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
INLINE - Return results inline, no result is written to the DB server REPLACE - Save the job output to a collection, replacing its previous content MERGE - Merge the job output with the existing contents of outputTarget collection REDUCE - Reduce the job output with the existing contents of outputTarget collection
MapReduceOutput - Class in com.mongodb
Represents the result of a map/reduce operation
MapReduceOutput(DBCollection, DBObject, CommandResult) - Constructor for class com.mongodb.MapReduceOutput
 
markAsPartialObject() - Method in class com.mongodb.BasicDBList
 
markAsPartialObject() - Method in class com.mongodb.BasicDBObject
 
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
 
markAsPartialObject() - Method in class com.mongodb.ReflectionDBObject
ReflectionDBObjects can't be partial
markAsPartialObject() - Method in class org.bson.LazyDBList
 
massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
Turn an object into an ObjectId, if possible.
MAX - Static variable in class com.mongodb.QueryOperators
 
MAX_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
file's max chunk size
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
Sets the maximum auto connect retry time.
maxAutoConnectRetryTime - Variable in class com.mongodb.MongoOptions
The maximum amount of time in MS to spend retrying to open connection to the same server.
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
 
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
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
 
memSize(DBPort) - Method in class com.mongodb.DBPortPool
 
memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
 
MIN - Static variable in class com.mongodb.QueryOperators
 
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. Replaced by Mongo.getMinorVersion()
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
Creates a Mongo instance based on a (single) mongodb node (localhost, default port)
Mongo(String) - Constructor for class com.mongodb.Mongo
Creates a Mongo instance based on a (single) mongodb node (default port)
Mongo(String, MongoOptions) - Constructor for class com.mongodb.Mongo
Creates a Mongo instance based on a (single) mongodb node (default port)
Mongo(String, int) - Constructor for class com.mongodb.Mongo
Creates a Mongo instance based on a (single) mongodb node
Mongo(ServerAddress) - Constructor for class com.mongodb.Mongo
Creates a Mongo instance based on a (single) mongodb node
Mongo(ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress
Mongo(ServerAddress, ServerAddress) - Constructor for class com.mongodb.Mongo
Deprecated. 
Mongo(ServerAddress, ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Deprecated. 
Mongo(List<ServerAddress>) - Constructor for class com.mongodb.Mongo
Creates a Mongo based on a list of replica set members or a list of mongos.
Mongo(List<ServerAddress>, MongoOptions) - Constructor for class com.mongodb.Mongo
Creates a Mongo based on a list of replica set members or a list of mongos.
Mongo(MongoURI) - Constructor for class com.mongodb.Mongo
Creates a Mongo described by a URI.
Mongo.Holder - Class in com.mongodb
Mongo.Holder can be used as a static place to hold several instances of Mongo.
Mongo.Holder() - Constructor for class com.mongodb.Mongo.Holder
 
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, 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>, 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.
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.
MongoClientOptions.Builder() - Constructor for class com.mongodb.MongoClientOptions.Builder
 
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.
MongoConnectionPoolMXBean - Interface in com.mongodb
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
MONGODB_PREFIX - Static variable in class com.mongodb.MongoURI
The prefix for mongodb URIs.
MongoException - Exception in com.mongodb
A general exception raised in Mongo
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
Creates a MongoException from a BSON object representing an error
MongoException.CursorNotFound - Exception in com.mongodb
Subclass of MongoException representing a cursor-not-found exception
MongoException.CursorNotFound(long, ServerAddress) - Constructor for exception com.mongodb.MongoException.CursorNotFound
 
MongoException.DuplicateKey - Exception in com.mongodb
Subclass of MongoException representing a duplicate key exception
MongoException.DuplicateKey(int, String) - Constructor for exception com.mongodb.MongoException.DuplicateKey
 
MongoException.Network - Exception in com.mongodb
Subclass of MongoException representing a network-related exception
MongoException.Network(String, IOException) - Constructor for exception com.mongodb.MongoException.Network
 
MongoException.Network(IOException) - Constructor for exception com.mongodb.MongoException.Network
 
MongoInternalException - Exception in com.mongodb
An 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
 
MongoInterruptedException(String, InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
 
MongoOptions - Class in com.mongodb
Various settings for a Mongo instance.
MongoOptions() - Constructor for class com.mongodb.MongoOptions
 
MongoOptions(MongoClientOptions) - Constructor for class com.mongodb.MongoOptions
 
MongoURI - Class in com.mongodb
Represents a URI which can be used to create a Mongo instance.
MongoURI(String) - Constructor for class com.mongodb.MongoURI
Creates a MongoURI from a string.
MongoURI(MongoClientURI) - Constructor for class com.mongodb.MongoURI
 
MS_DAY - Static variable in class com.mongodb.util.TimeConstants
 
MS_HOUR - Static variable in class com.mongodb.util.TimeConstants
 
MS_MILLISECOND - Static variable in class com.mongodb.util.TimeConstants
 
MS_MINUTE - Static variable in class com.mongodb.util.TimeConstants
 
MS_MONTH - Static variable in class com.mongodb.util.TimeConstants
 
MS_SECOND - Static variable in class com.mongodb.util.TimeConstants
 
MS_WEEK - Static variable in class com.mongodb.util.TimeConstants
 
MS_YEAR - Static variable in class com.mongodb.util.TimeConstants
 
MyAsserts - Class in com.mongodb.util
 
MyAsserts() - Constructor for class com.mongodb.util.MyAsserts
 
MyAsserts.MyAssert - Exception in com.mongodb.util
 

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
 
nearest(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
 
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
NewBSONDecoder - Class in org.bson
A new implementation of the bson decoder.
NewBSONDecoder() - Constructor for class org.bson.NewBSONDecoder
 
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
 
NONE - Static variable in class com.mongodb.WriteConcern
No exceptions are raised, even for network issues.
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
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
 
notNull(String, T) - Static method in class org.bson.util.Assertions
 
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
numGetMores() - Method in class com.mongodb.DBCursor
gets the number of times, so far, that the cursor retrieved a batch from the database
numRead() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
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
 
objectDone() - Method in class org.bson.EmptyBSONCallback
 
objectDone() - Method in class org.bson.LazyBSONCallback
 
ObjectId - Class in org.bson.types
A globally unique identifier for objects.
ObjectId(Date) - Constructor for class org.bson.types.ObjectId
 
ObjectId(Date, int) - Constructor for class org.bson.types.ObjectId
 
ObjectId(Date, int, int) - Constructor for class org.bson.types.ObjectId
 
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
 
ObjectId(byte[]) - Constructor for class org.bson.types.ObjectId
 
ObjectId(int, int, int) - Constructor for class org.bson.types.ObjectId
Creates an ObjectId
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
 
objectStart(boolean, String) - Method in class com.mongodb.util.JSONCallback
 
objectStart() - Method in class org.bson.BasicBSONCallback
 
objectStart(boolean) - Method in class org.bson.BasicBSONCallback
 
objectStart(String) - Method in class org.bson.BasicBSONCallback
 
objectStart(boolean, String) - Method in class org.bson.BasicBSONCallback
 
objectStart() - Method in interface org.bson.BSONCallback
 
objectStart(String) - Method in interface org.bson.BSONCallback
 
objectStart(boolean) - Method in interface org.bson.BSONCallback
 
objectStart() - Method in class org.bson.EmptyBSONCallback
 
objectStart(String) - Method in class org.bson.EmptyBSONCallback
 
objectStart(boolean) - Method in class org.bson.EmptyBSONCallback
 
objectStart() - Method in class org.bson.LazyBSONCallback
 
objectStart(String) - Method in class org.bson.LazyBSONCallback
 
objectStart(boolean) - Method in class org.bson.LazyBSONCallback
 
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 the result of the command
ok(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
Checks that the given string builder is within the size limit.
ok(T) - Method in class org.bson.util.SimplePool
 
OptionMap - Class in com.mongodb.util
 
OptionMap() - Constructor for class com.mongodb.util.OptionMap
 
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
 
OutputBuffer() - Constructor for class org.bson.io.OutputBuffer
 

P

parse(String) - Static method in class com.mongodb.util.JSON
Parses a JSON string representing a JSON value
parse(String, BSONCallback) - Static method in class com.mongodb.util.JSON
Parses a JSON string representing a JSON value
parseBoolean(String, boolean) - Static method in class com.mongodb.util.StringParseUtil
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
 
parseInt(String, int) - Static method in class com.mongodb.util.StringParseUtil
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
Turns a string into an int and returns a default value if unsuccessful.
parseIntRadix(String, int) - Static method in class com.mongodb.util.StringParseUtil
Turns a string into an int using a given radix.
parseNumber(String, Number) - Static method in class com.mongodb.util.StringParseUtil
Turns a string into a Number and returns a default value if unsuccessful.
parseStrict(String) - Static method in class com.mongodb.util.StringParseUtil
Use Java's "strict parsing" methods Integer.parseInt and Double.parseDouble to parse s "strictly".
peek() - Method in class com.mongodb.util.FastStack
 
pick(int, boolean) - Method in class com.mongodb.DBPortPool
 
pick(int, boolean) - Method in class com.mongodb.util.SimplePool
Pick a member of _avail.
pipe(OutputStream) - Method in class org.bson.io.BasicOutputBuffer
 
pipe(DataOutput) - Method in class org.bson.io.BasicOutputBuffer
 
pipe(OutputStream) - Method in class org.bson.io.OutputBuffer
 
pipe(OutputStream) - Method in class org.bson.io.PoolOutputBuffer
 
pipe(OutputStream) - Method in class org.bson.LazyBSONObject
 
POLYGON - Static variable in class com.mongodb.QueryOperators
 
PoolOutputBuffer - Class in org.bson.io
 
PoolOutputBuffer() - Constructor for class org.bson.io.PoolOutputBuffer
 
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
 
PORT - Static variable in class com.mongodb.DBPort
the default port
position(int) - Method in class org.bson.io.BSONByteBuffer
 
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
 
primaryPreferred() - Static method in class com.mongodb.ReadPreference
 
primaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
 
printStackTrace() - Static method in class com.mongodb.util.ThreadUtil
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
 
pushStatus(String) - Static method in class com.mongodb.util.ThreadUtil
 
pushStatus(Thread, String) - Static method in class com.mongodb.util.ThreadUtil
 
put(String, Object) - Method in class com.mongodb.gridfs.GridFSFile
 
put(String, Object) - Method in class com.mongodb.LazyWriteableDBObject
 
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
 
put(String, Object) - Method in class com.mongodb.ReflectionDBObject
 
put(String, Object) - Method in class org.bson.BasicBSONObject
Add a key/value pair to this object
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
 
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
 
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
 
putAll(Map) - Method in class com.mongodb.LazyWriteableDBObject
 
putAll(BSONObject) - Method in class com.mongodb.RawDBObject
 
putAll(Map) - Method in class com.mongodb.RawDBObject
 
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
 
putAll(Map) - Method in class org.bson.LazyBSONObject
 
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
 
putBinary(String, Binary) - Method in class org.bson.BasicBSONEncoder
 
putBoolean(String, Boolean) - Method in class org.bson.BasicBSONEncoder
 
putCode(String, Code) - Method in class org.bson.BasicBSONEncoder
 
putCodeWScope(String, CodeWScope) - Method in class org.bson.BasicBSONEncoder
 
putDate(String, Date) - Method in class org.bson.BasicBSONEncoder
 
putDBPointer(String, String, ObjectId) - Method in class com.mongodb.DefaultDBEncoder
 
putDBRef(String, DBRefBase) - Method in class com.mongodb.DefaultDBEncoder
 
putNull(String) - Method in class org.bson.BasicBSONEncoder
 
putNumber(String, Number) - Method in class org.bson.BasicBSONEncoder
 
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
 
putObjectId(String, ObjectId) - Method in class org.bson.BasicBSONEncoder
 
putSpecial(String, Object) - Method in class com.mongodb.DefaultDBEncoder
 
putSpecial(String, Object) - Method in class org.bson.BasicBSONEncoder
 
putString(String, String) - Method in class org.bson.BasicBSONEncoder
 
putSymbol(String, Symbol) - Method in class org.bson.BasicBSONEncoder
 
putTimestamp(String, BSONTimestamp) - Method in class org.bson.BasicBSONEncoder
 
putUndefined(String) - Method in class org.bson.BasicBSONEncoder
 
putUUID(String, UUID) - Method in class org.bson.BasicBSONEncoder
 

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
 
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
Returns whether network error may be raised (w >= 0)
RawDBObject - Class in com.mongodb
This object wraps the binary object format ("BSON") used for the transport of serialized objects to / from the Mongo database.
read() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
readCStr() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
readDouble() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
 
readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
 
readFully(InputStream, byte[], int, int) - Static method in class org.bson.io.Bits
 
readInt() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
readInt(InputStream) - Static method in class org.bson.io.Bits
 
readInt(InputStream, byte[]) - Static method in class org.bson.io.Bits
 
readInt(byte[]) - Static method in class org.bson.io.Bits
 
readInt(byte[], int) - Static method in class org.bson.io.Bits
 
readIntBE() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
readIntBE(byte[], int) - Static method in class org.bson.io.Bits
 
readLong() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
readLong(InputStream) - Static method in class org.bson.io.Bits
 
readLong(InputStream, byte[]) - Static method in class org.bson.io.Bits
 
readLong(byte[]) - Static method in class org.bson.io.Bits
 
readLong(byte[], int) - Static method in class org.bson.io.Bits
 
readObject(byte[]) - Method in class org.bson.BasicBSONDecoder
 
readObject(InputStream) - Method in class org.bson.BasicBSONDecoder
 
readObject(byte[]) - Method in interface org.bson.BSONDecoder
 
readObject(InputStream) - Method in interface org.bson.BSONDecoder
 
readObject(byte[]) - Method in class org.bson.LazyBSONDecoder
 
readObject(InputStream) - Method in class org.bson.LazyBSONDecoder
 
readObject(byte[]) - Method in class org.bson.NewBSONDecoder
 
readObject(InputStream) - Method in class org.bson.NewBSONDecoder
 
readPreference(ReadPreference) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the read preference.
readPreference - Variable in class com.mongodb.MongoOptions
Specifies the read preference.
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. As of release 2.9, replaced by ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
ReadPreference.TaggedReadPreference(Map<String, String>) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.  
ReadPreference.TaggedReadPreference(DBObject) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.  
readUTF8String() - Method in class org.bson.BasicBSONDecoder.BSONInput
 
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
 
regexFlags(String) - Static method in class org.bson.BSON
Converts a string of regular expression flags from the database in Java regular expression flags.
regexFlags(int) - Static method in class org.bson.BSON
Converts Java regular expression flags into a string of flags for the database
remove(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Removes objects from the database collection.
remove(DBObject, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Removes objects from the database collection.
remove(DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.remove(com.mongodb.DBObject, com.mongodb.WriteConcern) with the default WriteConcern
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
 
remove(T) - Method in class com.mongodb.util.SimplePool
 
remove(T) - Method in class com.mongodb.util.WeakBag
 
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
 
remove(Object) - Method in class org.bson.util.ClassMap
 
remove(Object) - Method in class org.bson.util.StringRangeSet
 
removeall(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
 
removeAll(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
 
removeAll(Collection) - Method in class org.bson.LazyBSONList
 
removeAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
 
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
 
removeField(String) - Method in class com.mongodb.RawDBObject
 
removeField(String) - Method in class com.mongodb.ReflectionDBObject
can't remove from a ReflectionDBObject
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
 
removeField(String) - Method in class org.bson.types.BasicBSONList
 
removeUser(String) - Method in class com.mongodb.DB
Removes a user for this db
rename(String) - Method in class com.mongodb.DBCollection
Calls DBCollection.rename(java.lang.String, boolean) with dropTarget=false
rename(String, boolean) - Method in class com.mongodb.DBCollection
renames of this collection to newName
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
ends the current "consistent request"
requestDone() - Method in class com.mongodb.DBApiLayer
 
requestDone() - Method in interface com.mongodb.DBConnector
terminates the "consistent request".
requestDone() - Method in class com.mongodb.DBTCPConnector
End the current "request", if this thread is in one.
requestEnsureConnection() - Method in class com.mongodb.DB
ensure that a connection is assigned to the current "consistent request" (from primary pool, if connected to a replica set)
requestEnsureConnection() - Method in class com.mongodb.DBApiLayer
 
requestEnsureConnection() - Method in interface com.mongodb.DBConnector
Ensures that a connection exists for the "consistent request"
requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector
 
requestStart() - Method in class com.mongodb.DB
starts a new "consistent request".
requestStart() - Method in class com.mongodb.DBApiLayer
 
requestStart() - Method in interface com.mongodb.DBConnector
initiates a "consistent request" on the thread.
requestStart() - Method in class com.mongodb.DBTCPConnector
Start a "request".
reset() - Method in class com.mongodb.DefaultDBCallback
 
reset() - Method in class com.mongodb.MongoOptions
 
reset() - Method in class org.bson.BasicBSONCallback
 
reset() - Method in interface org.bson.BSONCallback
 
reset() - Method in class org.bson.EmptyBSONCallback
 
reset() - Method in class org.bson.io.BSONByteBuffer
 
reset() - Method in class org.bson.io.PoolOutputBuffer
 
reset() - Method in class org.bson.LazyBSONCallback
 
resetError() - Method in class com.mongodb.DB
Resets the error memory for this database.
resetIndexCache() - Method in class com.mongodb.DBCollection
Clears all indices that have not yet been applied to this collection.
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 a cursor to the results of the operation
retainAll(Collection) - Method in class org.bson.LazyBSONList
 
retainAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
 
RETURN_KEY - Static variable in class com.mongodb.QueryOperators
 

S

S_DAY - Static variable in class com.mongodb.util.TimeConstants
 
S_HOUR - Static variable in class com.mongodb.util.TimeConstants
 
S_MINUTE - Static variable in class com.mongodb.util.TimeConstants
 
S_MONTH - Static variable in class com.mongodb.util.TimeConstants
 
S_SECOND - Static variable in class com.mongodb.util.TimeConstants
 
S_WEEK - Static variable in class com.mongodb.util.TimeConstants
 
S_YEAR - Static variable in class com.mongodb.util.TimeConstants
 
safe - Variable in class com.mongodb.MongoOptions
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
calls DBCollection.save(com.mongodb.DBObject, com.mongodb.WriteConcern) with default WriteConcern
save(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Saves an object to this collection (does insert or update based on the object _id).
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
 
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
does a write operation
say(DB, OutMessage, WriteConcern, ServerAddress) - Method in interface com.mongodb.DBConnector
does a write operation
say(DB, OutMessage, WriteConcern) - Method in class com.mongodb.DBTCPConnector
 
say(DB, OutMessage, WriteConcern, ServerAddress) - Method in class com.mongodb.DBTCPConnector
 
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
 
secondary(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
 
secondaryPreferred() - Static method in class com.mongodb.ReadPreference
 
secondaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
 
seekEnd() - Method in class org.bson.io.BasicOutputBuffer
 
seekEnd() - Method in class org.bson.io.OutputBuffer
 
seekEnd() - Method in class org.bson.io.PoolOutputBuffer
 
seekStart() - Method in class org.bson.io.BasicOutputBuffer
 
seekStart() - Method in class org.bson.io.OutputBuffer
 
seekStart() - Method in class org.bson.io.PoolOutputBuffer
 
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
 
ServerAddress - Class in com.mongodb
mongo server address
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
Represents a server error
set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
 
set(OutputBuffer) - Method in class org.bson.BasicBSONEncoder
 
set(OutputBuffer) - Method in interface org.bson.BSONEncoder
 
set(int, Object) - Method in class org.bson.LazyBSONList
 
set_id(Object) - Method in class com.mongodb.ReflectionDBObject
Sets the _id
setAutoConnectRetry(boolean) - Method in class com.mongodb.MongoOptions
 
setChunkSize(long) - Method in class com.mongodb.gridfs.GridFSInputFile
Set the chunk size.
setConnectionsPerHost(int) - Method in class com.mongodb.MongoOptions
 
setConnectTimeout(int) - Method in class com.mongodb.MongoOptions
 
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
 
setDBDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCollection
Set a customer decoder factory for this collection.
setDbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoOptions
 
setDBEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.DBCollection
Set a customer encoder factory for this collection.
setDbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoOptions
 
setDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCursor
 
setDescription(String) - Method in class com.mongodb.MongoOptions
 
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
 
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
Set hint fields for this collection (to optimize queries).
setId(Object) - Method in class com.mongodb.gridfs.GridFSInputFile
 
setInternalClass(String, Class) - Method in class com.mongodb.DBCollection
sets the internal class
setJ(boolean) - Method in class com.mongodb.MongoOptions
 
setLimit(int) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) limit on input
setMax(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
 
setMaxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoOptions
 
setMaxWaitTime(int) - Method in class com.mongodb.MongoOptions
 
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 query options
setOptions(int) - Method in class com.mongodb.DBCollection
sets the default query options
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
sets 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
 
setPosition(int) - Method in class org.bson.io.OutputBuffer
 
setPosition(int) - Method in class org.bson.io.PoolOutputBuffer
 
setReadOnly(Boolean) - Method in class com.mongodb.DB
Makes this database read-only.
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 read preference 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
 
setRoot(Object) - Method in class org.bson.BasicBSONCallback
 
setRootObject(Object) - Method in class org.bson.LazyBSONCallback
 
setSafe(boolean) - Method in class com.mongodb.MongoOptions
 
setScope(Map<String, Object>) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) JavaScript scope
setSocketFactory(SocketFactory) - Method in class com.mongodb.MongoOptions
 
setSocketKeepAlive(boolean) - Method in class com.mongodb.MongoOptions
 
setSocketTimeout(int) - Method in class com.mongodb.MongoOptions
 
setSort(DBObject) - Method in class com.mongodb.MapReduceCommand
Sets the (optional) sort specification object
setThreadsAllowedToBlockForConnectionMultiplier(int) - Method in class com.mongodb.MongoOptions
 
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
 
setWObject(Object) - Method in class com.mongodb.WriteConcern
Sets the w value (the write strategy)
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 write concern 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
 
setWtimeout(int) - Method in class com.mongodb.MongoOptions
 
SHOW_DISK_LOC - Static variable in class com.mongodb.QueryOperators
 
SimplePool<T> - Class in com.mongodb.util
This class is NOT part of the public API.
SimplePool(String, int) - Constructor for class com.mongodb.util.SimplePool
Initializes a new pool of objects.
SimplePool<T> - Class in org.bson.util
 
SimplePool(int) - Constructor for class org.bson.util.SimplePool
 
SimplePool() - Constructor for class org.bson.util.SimplePool
 
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
 
size() - Method in class com.mongodb.util.IdentitySet
 
size() - Method in class com.mongodb.util.WeakBag
Returns the size of the bag.
size() - Method in class org.bson.io.BasicOutputBuffer
 
size() - Method in class org.bson.io.BSONByteBuffer
 
size() - Method in class org.bson.io.OutputBuffer
 
size() - Method in class org.bson.io.PoolOutputBuffer
 
size() - Method in class org.bson.LazyBSONList
 
size() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
This method runs in time linear to the total size of all keys in the document.
size() - Method in class org.bson.util.ClassMap
 
size() - Method in class org.bson.util.StringRangeSet
 
sizeCString(int) - Method in class org.bson.LazyBSONObject
Returns the size of the BSON cstring at the given offset in the buffer
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. Replaced with ReadPreference.secondaryPreferred()
slaveOk() - Method in class com.mongodb.DBCursor
Deprecated. Replaced with ReadPreference.secondaryPreferred()
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
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
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
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
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 an empty object
start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
creates an object with the given key/value
start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
Creates an object builder from an existing map.
start() - Method in class com.mongodb.DBTCPConnector
 
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
 
StringBuilderPool(String, int) - Constructor for class com.mongodb.util.StringBuilderPool
Initializes a pool of a given number of StringBuilders, each of a certain size.
StringParseUtil - Class in com.mongodb.util
 
StringParseUtil() - Constructor for class com.mongodb.util.StringParseUtil
 
StringRangeSet - Class in org.bson.util
 
StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
 
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 a BSON symbol object, which is an interned string in Ruby
Symbol(String) - Constructor for class org.bson.types.Symbol
 

T

TaggableReadPreference - Class in com.mongodb
Abstract base class for all preference which can be combined with tags
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
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
 
ThreadUtil() - Constructor for class com.mongodb.util.ThreadUtil
 
throwOnError() - Method in class com.mongodb.CommandResult
throws an exception containing the cmd name, in case the command failed, or the "err/code" information
TimeConstants - Class in com.mongodb.util
 
TimeConstants() - Constructor for class com.mongodb.util.TimeConstants
 
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
 
toArray(T[]) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
 
toArray() - Method in class org.bson.util.StringRangeSet
 
toArray(T[]) - Method in class org.bson.util.StringRangeSet
 
toByteArray() - Method in class org.bson.io.OutputBuffer
mostly for testing
toByteArray() - Method in class org.bson.types.ObjectId
 
toDBObject() - Method in class com.mongodb.GroupCommand
 
toDBObject() - Method in class com.mongodb.MapReduceCommand
 
toDBObject() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.  
toDBObject() - Method in class com.mongodb.ReadPreference
 
toDBObject() - Method in class com.mongodb.TaggableReadPreference
 
toHex(byte[]) - Static method in class com.mongodb.util.Util
 
toInt(Object) - Static method in class org.bson.BSON
 
toMap() - Method in class com.mongodb.gridfs.GridFSFile
 
toMap() - Method in class com.mongodb.RawDBObject
 
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.AggregationOutput
string representation of the aggregation command
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.DB
Returns the name of this database.
toString() - Method in class com.mongodb.DBAddress
gets a String representation of address as host:port/dbname.
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
 
toString() - Method in class com.mongodb.DBRefBase
 
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.MongoClientURI
 
toString() - Method in class com.mongodb.MongoOptions
 
toString() - Method in class com.mongodb.MongoURI
 
toString() - Method in class com.mongodb.RawDBObject
 
toString() - Method in class com.mongodb.ReplicaSetStatus
 
toString() - Method in class com.mongodb.ServerAddress
 
toString() - Method in class com.mongodb.ServerError
 
toString() - Method in class com.mongodb.TaggableReadPreference
 
toString() - Method in class com.mongodb.util.Args
 
toString() - Method in class com.mongodb.util.FastStack
 
toString() - Method in exception com.mongodb.util.MyAsserts.MyAssert
 
toString() - Method in class com.mongodb.util.SimplePool
 
toString() - Method in class com.mongodb.WriteConcern.Majority
 
toString() - Method in class com.mongodb.WriteConcern
 
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
 
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
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
 
toStringMongod() - Method in class org.bson.types.ObjectId
 
transform(Object) - Method in interface org.bson.Transformer
 
Transformer - Interface in org.bson
 
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.
UNDEFINED - Static variable in class org.bson.BSON
 
UNIQUE_DOCS - Static variable in class com.mongodb.QueryOperators
 
UniqueList<T> - Class in com.mongodb.util
 
UniqueList() - Constructor for class com.mongodb.util.UniqueList
 
unlock() - Method in class com.mongodb.Mongo
Unlocks the database, allowing the write operations to go through.
update(DBObject, DBObject, boolean, boolean, WriteConcern) - Method in class com.mongodb.DBCollection
Performs an update operation.
update(DBObject, DBObject, boolean, boolean, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
Performs an update operation.
update(DBObject, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
calls DBCollection.update(com.mongodb.DBObject, com.mongodb.DBObject, boolean, boolean, com.mongodb.WriteConcern) with default WriteConcern.
update(DBObject, DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.update(com.mongodb.DBObject, com.mongodb.DBObject, boolean, boolean) with upsert=false and multi=false
updateMulti(DBObject, DBObject) - Method in class com.mongodb.DBCollection
calls DBCollection.update(com.mongodb.DBObject, com.mongodb.DBObject, boolean, boolean) with upsert=false and multi=true
updatePortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
Assigns a new DBPortPool for a given ServerAddress.
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.MapReduceCommand.OutputType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.mongodb.ReadPreference
 
valueOf(String, DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
 
valueOf(String) - Static method in class com.mongodb.WriteConcern
Gets the WriteConcern constants by name: NONE, NORMAL, SAFE, FSYNC_SAFE, REPLICA_SAFE.
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
The "w" value, (number of writes), of the global WriteConcern.
WeakBag<T> - Class in com.mongodb.util
if its not obvious what a weak bag should do, then, well...
WeakBag() - Constructor for class com.mongodb.util.WeakBag
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
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
 
wrap(byte[]) - Static method in class org.bson.io.BSONByteBuffer
 
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
 
write(byte[], int, int) - Method in class org.bson.io.PoolOutputBuffer
 
write(int) - Method in class org.bson.io.PoolOutputBuffer
 
writeConcern(WriteConcern) - Method in class com.mongodb.MongoClientOptions.Builder
Sets the write concern.
writeConcern - Variable in class com.mongodb.MongoOptions
Sets the write concern.
WriteConcern - Class in com.mongodb
WriteConcern control 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
Calls WriteConcern.WriteConcern(int, int, boolean) with fsync=false
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
Creates a WriteConcern object.
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
Creates a WriteConcern object.
WriteConcern.Majority - Class in com.mongodb
 
WriteConcern.Majority() - Constructor for class com.mongodb.WriteConcern.Majority
 
WriteConcern.Majority(int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern.Majority
 
writeCString(String) - Method in class org.bson.BasicBSONEncoder
 
writeDouble(double) - Method in class org.bson.io.OutputBuffer
 
writeInt(int) - Method in class org.bson.BasicBSONEncoder
 
writeInt(int) - Method in class org.bson.io.OutputBuffer
 
writeInt(int, int) - Method in class org.bson.io.OutputBuffer
 
writeIntBE(int) - Method in class org.bson.io.OutputBuffer
 
writeLong(long) - Method in class org.bson.BasicBSONEncoder
 
writeLong(long) - Method in class org.bson.io.OutputBuffer
 
writeObject(OutputBuffer, BSONObject) - Method in interface com.mongodb.DBEncoder
 
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.
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
The "wtimeout" value of the global WriteConcern.

_

_assertEquals(Object, Object) - Static method in class com.mongodb.util.MyAsserts
 
_avail - Variable in class com.mongodb.util.SimplePool
 
_binary(String) - Method in class org.bson.BasicBSONDecoder
 
_bucketName - Variable in class com.mongodb.gridfs.GridFS
 
_buf - Variable in class org.bson.BasicBSONEncoder
 
_callback - Variable in class org.bson.BasicBSONDecoder
 
_callback - Variable in class org.bson.LazyBSONObject
 
_checkObject(DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
 
_chunkCollection - Variable in class com.mongodb.gridfs.GridFS
 
_cmd - Variable in class com.mongodb.AggregationOutput
 
_commandResult - Variable in class com.mongodb.AggregationOutput
 
_db - Variable in class com.mongodb.gridfs.GridFS
 
_doc_start_offset - Variable in class org.bson.LazyBSONObject
 
_filesCollection - Variable in class com.mongodb.gridfs.GridFS
 
_flip(int) - Static method in class org.bson.types.ObjectId
 
_fs - Variable in class com.mongodb.gridfs.GridFSFile
 
_fullName - Variable in class com.mongodb.DBCollection
 
_hintFields - Variable in class com.mongodb.DBCollection
 
_in - Variable in class org.bson.BasicBSONDecoder
 
_inc() - Method in class org.bson.types.ObjectId
 
_input - Variable in class org.bson.LazyBSONObject
 
_isAscii(byte) - Method in class org.bson.BasicBSONDecoder.BSONInput
 
_len - Variable in class org.bson.BasicBSONDecoder
 
_machine() - Method in class org.bson.types.ObjectId
 
_msDateFormat - Static variable in class com.mongodb.util.JSONCallback
 
_name - Variable in class com.mongodb.DBCollection
 
_name - Variable in class com.mongodb.util.SimplePool
 
_need(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
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
 
_pos - Variable in class org.bson.BasicBSONDecoder
 
_put(String, Object) - Method in class org.bson.BasicBSONCallback
 
_put(byte, String) - Method in class org.bson.BasicBSONEncoder
Encodes the type and key.
_put(String) - Method in class org.bson.BasicBSONEncoder
puts as utf-8 string
_putObjectField(String, Object) - Method in class org.bson.BasicBSONEncoder
 
_putValueString(String) - Method in class org.bson.BasicBSONEncoder
 
_readOnly - Variable in class com.mongodb.DB
 
_resultSet - Variable in class com.mongodb.AggregationOutput
 
_secDateFormat - Static variable in class com.mongodb.util.JSONCallback
 
_size - Variable in class com.mongodb.util.SimplePool
 
_time() - Method in class org.bson.types.ObjectId
 
_utf8 - Static variable in class org.bson.BSON
 

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