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

A

add(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
 
add(T) - Method in class com.mongodb.util.IdentitySet
 
add(T) - Method in class com.mongodb.util.OrderedSet
 
add(TestCase) - Method in class com.mongodb.util.TestCase
 
add(T) - Method in class com.mongodb.util.UniqueList
 
add(T) - Method in class com.mongodb.util.WeakBag
Adds an element to the bag.
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
 
addDecodingHook(Class, Transformer) - Static method in class org.bson.BSON
 
addEncodingHook(Class, Transformer) - Static method in class org.bson.BSON
 
addOption(int) - Method in class com.mongodb.DB
 
addOption(int) - Method in class com.mongodb.DBCollection
 
addOption(int) - Method in class com.mongodb.DBCursor
adds an option - see Bytes.QUERYOPTION_* for list
addOption(int) - Method in class com.mongodb.Mongo
 
addSpecial(String, Object) - Method in class com.mongodb.DBCursor
add a special operator like $maxScan or $returnKey e.g.
addUser(String, char[]) - Method in class com.mongodb.DB
 
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).
append(String, Object) - Method in class com.mongodb.BasicDBObject
Add a key/value pair to this object
append(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
 
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
Adds the "private" fields _id to an object.
apply(DBObject, boolean) - Method in class com.mongodb.DBCollection
Adds the "private" fields _id to an object.
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
 
arrayDone() - Method in class org.bson.BasicBSONCallback
 
arrayDone() - Method in interface org.bson.BSONCallback
 
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
 
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(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
 
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
 
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() - Method in class org.bson.io.PoolOutputBuffer
 
asString(String) - Method in class org.bson.io.PoolOutputBuffer
 
authenticate(String, char[]) - Method in class com.mongodb.DB
Authenticates connection/db with given name and password
autoConnectRetry - Variable in class com.mongodb.MongoOptions
This controls whether the system retries automatically on connection errors.
available() - Method in class com.mongodb.util.SimplePool
 

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
 
BasicBSONCallback - Class in org.bson
 
BasicBSONCallback() - Constructor for class org.bson.BasicBSONCallback
 
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
 
BasicDBList() - Constructor for class com.mongodb.BasicDBList
 
BasicDBObject - Class in com.mongodb
A simple implementation of DBObject.
BasicDBObject() - Constructor for class com.mongodb.BasicDBObject
Creates an empty object.
BasicDBObject(int) - Constructor for class com.mongodb.BasicDBObject
 
BasicDBObject(String, Object) - Constructor for class com.mongodb.BasicDBObject
Convenience CTOR
BasicDBObject(Map) - Constructor for class com.mongodb.BasicDBObject
Creates a DBObject from a map.
BasicDBObjectBuilder - Class in com.mongodb
utility for building objects example: BasicDBObjectBuilder.start().add( "name" , "eliot" ).add( "number" , 17 ).get()
BasicDBObjectBuilder() - Constructor for class com.mongodb.BasicDBObjectBuilder
 
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, byte[]) - Constructor for class org.bson.types.Binary
 
Bits - Class in org.bson.io
 
Bits() - Constructor for class org.bson.io.Bits
 
BOOLEAN - Static variable in class org.bson.BSON
 
BSON - Class in org.bson
 
BSON() - Constructor for class org.bson.BSON
 
BSONCallback - Interface in org.bson
 
BSONDecoder - Class in org.bson
 
BSONDecoder() - Constructor for class org.bson.BSONDecoder
 
BSONEncoder - Class in org.bson
this is meant to be pooled or cached there is some per instance memory for string conversion, etc...
BSONEncoder() - Constructor for class org.bson.BSONEncoder
 
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_SIZE - Static variable in class org.bson.io.PoolOutputBuffer
 
Bytes - Class in com.mongodb
 
Bytes() - Constructor for class com.mongodb.Bytes
 

C

cacheContainsKey(Object) - Method in class org.bson.util.ClassMap
cacheContainsKey
call(DB, DBCollection, OutMessage) - Method in interface com.mongodb.DBConnector
 
call(DB, DBCollection, OutMessage, ServerAddress) - Method in interface com.mongodb.DBConnector
 
call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in interface com.mongodb.DBConnector
 
callGetLastError() - Method in class com.mongodb.WriteConcern
 
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.
cleanup(T) - Method in class com.mongodb.util.SimplePool
override this if you need to do any cleanup
cleanup() - Method in class com.mongodb.util.TestCase
 
cleanupDB - Variable in class com.mongodb.util.TestCase
 
cleanupMongo - Variable in class com.mongodb.util.TestCase
 
clear() - Method in class com.mongodb.util.FastStack
 
clear() - Method in class com.mongodb.util.IdentitySet
 
clear() - Method in class com.mongodb.util.SimplePool
Clears the pool of all objects.
clear() - Method in class com.mongodb.util.WeakBag
Removes all object from the bag.
clear() - Method in class org.bson.util.ClassMap
clear
clearAllHooks() - Static method in class org.bson.BSON
 
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
kill the current cursor on the server.
close() - Method in class com.mongodb.DBPort
 
close() - Method in class com.mongodb.Mongo
closes all open connections this Mongo cannot be re-used
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.util - package com.mongodb.util
 
command(DBObject) - Method in class com.mongodb.DB
Execute a database command directly.
command(DBObject, int) - Method in class com.mongodb.DB
Execute a database command directly.
command(String) - Method in class com.mongodb.DB
 
CommandResult - Class in com.mongodb
A simple wrapper for the result of getLastError() calls, and network (socket) errors.
compareTo(ObjectId) - Method in class org.bson.types.ObjectId
 
connect(DBAddress) - Static method in class com.mongodb.Mongo
 
connect(MongoURI) - Method in class com.mongodb.Mongo.Holder
 
connect() - Method in class com.mongodb.MongoURI
 
connectCollection(DB) - Method in class com.mongodb.MongoURI
 
connectCollection(Mongo) - Method in class com.mongodb.MongoURI
 
connectDB() - Method in class com.mongodb.MongoURI
 
connectDB(Mongo) - Method in class com.mongodb.MongoURI
 
connectionsPerHost - Variable in class com.mongodb.MongoOptions
The number of connections allowed per host (the pool size, per host)
connectTimeout - Variable in class com.mongodb.MongoOptions
The connection timeout in milliseconds; this is for establishing the socket connections (open).
contains(T) - Method in class com.mongodb.util.IdentitySet
 
contains(T) - Method in class com.mongodb.util.WeakBag
 
containsField(String) - Method in class com.mongodb.gridfs.GridFSFile
 
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.types.BasicBSONList
 
containsKey(String) - Method in class com.mongodb.gridfs.GridFSFile
 
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
 
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.types.BasicBSONList
Deprecated.  
containsKey(Object) - Method in class org.bson.util.ClassMap
containsKey
containsValue(Object) - Method in class org.bson.util.ClassMap
containsValue
copy() - Method in class com.mongodb.DBCursor
Creates a copy of an existing database cursor.
count() - Method in class com.mongodb.DBCollection
 
count(DBObject) - Method in class com.mongodb.DBCollection
 
count() - Method in class com.mongodb.DBCursor
Counts the number of elements matching the query this does not take limit/skip into consideration
create() - Method in class com.mongodb.DBCallback
 
create(boolean, List<String>) - Method in class com.mongodb.DBCallback
 
create(DBCollection) - Method in interface com.mongodb.DBCallback.Factory
 
create() - Method in class com.mongodb.util.JSONCallback
 
create(boolean, List<String>) - Method in class com.mongodb.util.JSONCallback
 
create() - Method in class org.bson.BasicBSONCallback
 
create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
 
createBSONCallback() - Method in class org.bson.BasicBSONCallback
 
createBSONCallback() - Method in interface org.bson.BSONCallback
 
createCollection(String, DBObject) - Method in class com.mongodb.DB
Creates a collection with a given name and options.
createFile(byte[]) - Method in class com.mongodb.gridfs.GridFS
after calling this method, you have to call save() on the GridFSInputFile file
createFile(File) - Method in class com.mongodb.gridfs.GridFS
after calling this method, you have to call save() on the GridFSInputFile file
createFile(InputStream) - Method in class com.mongodb.gridfs.GridFS
after calling this method, you have to call save() on the GridFSInputFile file
createFile(InputStream, String) - Method in class com.mongodb.gridfs.GridFS
after calling this method, you have to call save() on the GridFSInputFile file on that, you can call setFilename, setContentType and control meta data by modifying the result of getMetaData
createIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
 
createIndex(DBObject) - Method in class com.mongodb.DBCollection
Forces creation of an index on a set of fields, if one does not already exist.
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
 
cur() - Method in class org.bson.BasicBSONCallback
 
curr() - Method in class com.mongodb.DBCursor
Returns the element the cursor is at.

D

DATE - Static variable in class org.bson.BSON
 
DB - Class in com.mongodb
a logical database on a server
DB(Mongo, String) - Constructor for class com.mongodb.DB
 
DB.WriteConcern - Class in com.mongodb
Deprecated.  
DB.WriteConcern() - Constructor for class com.mongodb.DB.WriteConcern
Deprecated.  
DBAddress - Class in com.mongodb
Aquires the address of the database(s).
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
Connects to a given database using the host/port information from an existing DBAddress.
DBAddress(String, String) - Constructor for class com.mongodb.DBAddress
Connects to a database with a given name at a given host.
DBAddress(String, int, String) - Constructor for class com.mongodb.DBAddress
Connects to a database with a given host, port, and name
DBAddress(InetAddress, int, String) - Constructor for class com.mongodb.DBAddress
Connects to a database with a given host, port, and name
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
 
DBCallback - Class in com.mongodb
 
DBCallback(DBCollection) - Constructor for class com.mongodb.DBCallback
 
DBCallback.Factory - Interface in com.mongodb
 
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
 
DBCursor - Class in com.mongodb
An iterator over database results.
DBCursor(DBCollection, DBObject, DBObject) - Constructor for class com.mongodb.DBCursor
Initializes a new database cursor
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
 
DBPort(ServerAddress) - Constructor for class com.mongodb.DBPort
 
DBRef - Class in com.mongodb
Database reference class.
DBRef(DB, BSONObject) - Constructor for class com.mongodb.DBRef
 
DBRef(DB, String, Object) - Constructor for class com.mongodb.DBRef
 
DBRefBase - Class in com.mongodb
Base class for DBRefs.
DBRefBase(DB, String, Object) - Constructor for class com.mongodb.DBRefBase
 
debugString() - Method in class com.mongodb.Mongo
 
decode(byte[]) - Static method in class org.bson.BSON
 
decode(byte[], BSONCallback) - Method in class org.bson.BSONDecoder
 
decode(InputStream, BSONCallback) - Method in class org.bson.BSONDecoder
 
decode(BSONDecoder.Input, BSONCallback) - Method in class org.bson.BSONDecoder
 
DEFAULT_BUCKET - Static variable in class com.mongodb.gridfs.GridFS
 
DEFAULT_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
 
defaultHost() - Static method in class com.mongodb.ServerAddress
Returns the default database host.
defaultPort() - Static method in class com.mongodb.ServerAddress
Returns the default port that the database runs on.
distinct(String) - 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
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
 
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.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
 
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
 
dropIndex(String) - Method in class com.mongodb.DBCollection
 
dropIndexes() - Method in class com.mongodb.DBCollection
Drops all indices from this collection
dropIndexes(String) - Method in class com.mongodb.DBCollection
 

E

encode(BSONObject) - Static method in class org.bson.BSON
 
encode(BSONObject) - Method in class org.bson.BSONEncoder
 
ensureIndex(String) - Method in class com.mongodb.DBCollection
 
ensureIndex(DBObject) - Method in class com.mongodb.DBCollection
Creates an index on a set of fields, if one does not already exist.
ensureIndex(DBObject, String) - 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, String, boolean) - Method in class com.mongodb.DBCollection
Ensures an optionally unique index on this collection.
ensureIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
 
ensureOpen() - Method in class com.mongodb.DBPort
 
entrySet() - Method in class org.bson.util.ClassMap
entrySet
EOO - Static variable in class org.bson.BSON
 
equals(Object) - Method in class com.mongodb.DBAddress
 
equals(Object) - Method in class com.mongodb.DBCollection
Checks if this collection is equal to another object.
equals(Object) - Method in class com.mongodb.ServerAddress
 
equals(Object) - Method in class org.bson.BasicBSONObject
 
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.ObjectId
 
equals(Object) - Method in class org.bson.util.ClassMap
equals
eval(String, Object...) - Method in class com.mongodb.DB
 
everCreated() - Method in class com.mongodb.util.SimplePool
 
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 exectution 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

F

FACTORY - Static variable in class com.mongodb.DBCallback
 
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
 
fetch() - Method in class com.mongodb.DBRefBase
 
finalize() - Method in class com.mongodb.DBPort
 
find(DBObject, DBObject, int, int, int) - Method in class com.mongodb.DBCollection
Finds an object.
find(DBObject, DBObject, int, int) - Method in class com.mongodb.DBCollection
Finds an object.
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
 
find(String) - Method in class com.mongodb.gridfs.GridFS
 
find(DBObject) - Method in class com.mongodb.gridfs.GridFS
 
findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
Finds the first document in the query (sorted) and updates it.
findAndModify(DBObject, DBObject, DBObject) - Method in class com.mongodb.DBCollection
Finds the first document in the query (sorted) and updates it.
findAndModify(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Finds the first document in the query and updates it.
findAndRemove(DBObject) - Method in class com.mongodb.DBCollection
Finds the first document in the query and removes it.
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(ObjectId) - Method in class com.mongodb.gridfs.GridFS
 
findOne(String) - Method in class com.mongodb.gridfs.GridFS
 
findOne(DBObject) - Method in class com.mongodb.gridfs.GridFS
 
forceError() - Method in class com.mongodb.DB
For testing purposes only - this method forces an error to help test error handling
fsync() - Method in class com.mongodb.WriteConcern
 
FSYNC_SAFE - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors and the write operation waits for the server to flush the data to disk

G

genIndexName(DBObject) - Static method in class com.mongodb.DBCollection
Generate an index name from the set of fields it is over.
get() - Method in class com.mongodb.BasicDBObjectBuilder
 
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get() - Method in class com.mongodb.QueryBuilder
Creates a DBObject query to be used for the driver's find operations
get(String) - Method in class com.mongodb.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(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
get() - Method in class org.bson.util.SimplePool
 
get_id() - Method in class com.mongodb.ReflectionDBObject
 
getAddress() - Method in class com.mongodb.Mongo
Gets the address of this database.
getAliases() - Method in class com.mongodb.gridfs.GridFSFile
note: to set aliases, call put( "aliases" , List )
getAll() - Method in class com.mongodb.util.SimplePool
 
getAll() - Method in class com.mongodb.util.WeakBag
 
getAllAddress() - Method in class com.mongodb.Mongo
 
getAncestry(Class) - Static method in class org.bson.util.ClassMap
getAncestry Walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
getAttribute(String) - Method in class com.mongodb.util.SimplePool
 
getAttributes(String[]) - Method in class com.mongodb.util.SimplePool
 
getBoolean(String, boolean) - Method in class org.bson.BasicBSONObject
 
getBucketName() - Method in class com.mongodb.gridfs.GridFS
 
getCache() - Method in class org.bson.util.ClassMap
cache
getCachedLastError() - Method in class com.mongodb.WriteResult
 
getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
 
getCode() - Method in exception com.mongodb.MongoException
 
getCode() - Method in class com.mongodb.ServerError
 
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
Find a collection that is prefixed with this collection's name.
getCollection() - Method in class com.mongodb.MongoURI
 
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 of the names of collections in this database.
getCommand() - Method in class com.mongodb.WriteConcern
 
getConnectPoint() - Method in class com.mongodb.Mongo
 
getContentType() - Method in class com.mongodb.gridfs.GridFSFile
 
getCount() - Method in class com.mongodb.DBCollection
Returns the number of documents in the collection
getCount(DBObject) - Method in class com.mongodb.DBCollection
Returns the number of documents in the collection that match the specified query
getCount(DBObject, DBObject) - Method in class com.mongodb.DBCollection
Returns the number of documents in the collection that match the specified query
getCount(DBObject, DBObject, long, long) - Method in class com.mongodb.DBCollection
Returns the number of documents in the collection that match the specified query
getCursorId() - Method in class com.mongodb.DBCursor
The cursor (id) on the server; 0 = no cursor
getData() - Method in class org.bson.types.Binary
 
getDatabase() - Method in class com.mongodb.MongoURI
 
getDatabaseNames() - Method in class com.mongodb.Mongo
 
getDB() - Method in class com.mongodb.DBCollection
Returns the database this collection is a member of.
getDB() - Method in class com.mongodb.DBRefBase
Get this ref's database.
getDB() - Method in class com.mongodb.gridfs.GridFS
 
getDB(String) - Method in class com.mongodb.Mongo
 
getDBName() - Method in class com.mongodb.DBAddress
 
getDouble(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a double.
getError() - Method in class com.mongodb.ServerError
 
getError() - Method in class com.mongodb.WriteResult
 
getErrorMessage() - Method in class com.mongodb.CommandResult
 
getException() - Method in class com.mongodb.CommandResult
 
getField(String) - Method in class com.mongodb.WriteResult
 
getFileList() - Method in class com.mongodb.gridfs.GridFS
Returns a cursor for this filestore
getFileList(DBObject) - Method in class com.mongodb.gridfs.GridFS
Returns a cursor for this filestore
getFilename() - Method in class com.mongodb.gridfs.GridFSFile
 
getFullName() - Method in class com.mongodb.DBCollection
Returns the full name of this collection, with the database name as a prefix.
getHost() - Method in class com.mongodb.ServerAddress
 
getHosts() - Method in class com.mongodb.MongoURI
 
getId() - Method in class com.mongodb.DBPointer
Deprecated.  
getId() - Method in class com.mongodb.DBRefBase
Get this ref's $id.
getId() - Method in class com.mongodb.gridfs.GridFSFile
 
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.
getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
 
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.
getInternalClass(String) - Method in class com.mongodb.DBCollection
 
getInternalMap() - Method in class org.bson.util.ClassMap
internalMap
getKeysWanted() - Method in class com.mongodb.DBCursor
 
getLastConcern() - Method in class com.mongodb.WriteResult
 
getLastError() - Method in class com.mongodb.DB
Gets the the error (if there is one) from the previous operation.
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
Calling this will either return the cache result if getLastError has been called, or execute a new getLastError command on the sever.
getLastError(WriteConcern) - Method in class com.mongodb.WriteResult
 
getLength() - Method in class com.mongodb.gridfs.GridFSFile
 
getLong(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a long.
getMachine() - Method in class org.bson.types.ObjectId
 
getMBeanInfo() - Method in class com.mongodb.util.SimplePool
 
getMD5() - Method in class com.mongodb.gridfs.GridFSFile
 
getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
 
getMetaData() - Method in class com.mongodb.gridfs.GridFSInputFile
 
getMongo() - Method in class com.mongodb.DB
 
getN() - Method in class com.mongodb.WriteResult
 
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.
getObjectClass() - Method in class com.mongodb.DBCollection
Gets the default class for objects in the collection
getOption(String) - Method in class com.mongodb.util.Args
 
getOptions() - Method in class com.mongodb.DB
 
getOptions() - Method in class com.mongodb.DBCollection
 
getOptions() - Method in class com.mongodb.Mongo
 
getOptions() - Method in class com.mongodb.MongoURI
 
getOutputCollection() - Method in class com.mongodb.MapReduceOutput
 
getPassword() - Method in class com.mongodb.MongoURI
 
getPort() - Method in class com.mongodb.ServerAddress
 
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
 
getRef() - Method in class com.mongodb.DBRefBase
Get this ref's $ref (the collection name).
getScope() - Method in class org.bson.types.CodeWScope
 
getSister(String) - Method in class com.mongodb.DBAddress
 
getSisterDB(String) - Method in class com.mongodb.DB
 
getSizes() - Method in class com.mongodb.DBCursor
 
getSocketAddress() - Method in class com.mongodb.ServerAddress
 
getStats() - Method in class com.mongodb.DB
 
getStats() - Method in class com.mongodb.DBCollection
 
getStatus() - Static method in class com.mongodb.util.ThreadUtil
 
getStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
 
getString(String) - Method in class org.bson.BasicBSONObject
Returns the value of a field as a string
getSymbol() - Method in class org.bson.types.Symbol
 
getTime() - Method in class org.bson.types.BSONTimestamp
 
getTime() - Method in class org.bson.types.ObjectId
 
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
 
getUsername() - Method in class com.mongodb.MongoURI
 
getVersion() - Method in class com.mongodb.Mongo
 
getW() - Method in class com.mongodb.WriteConcern
 
getWrapper(Class) - Static method in class com.mongodb.ReflectionDBObject
 
getWrapperIfReflectionObject(Class) - Static method in class com.mongodb.ReflectionDBObject
 
getWriteConcern() - Method in class com.mongodb.DB
Get 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
Get the write concern for this database.
getWtimeout() - Method in class com.mongodb.WriteConcern
 
gotBinary(String, byte, byte[]) - Method in class org.bson.BasicBSONCallback
 
gotBinary(String, byte, byte[]) - Method in interface org.bson.BSONCallback
 
gotBinaryArray(String, byte[]) - Method in class org.bson.BasicBSONCallback
 
gotBinaryArray(String, byte[]) - Method in interface org.bson.BSONCallback
subtype 2
gotBoolean(String, boolean) - Method in class org.bson.BasicBSONCallback
 
gotBoolean(String, boolean) - Method in interface org.bson.BSONCallback
 
gotCode(String, String) - Method in class org.bson.BasicBSONCallback
 
gotCode(String, String) - Method in interface org.bson.BSONCallback
 
gotCodeWScope(String, String, Object) - Method in class org.bson.BasicBSONCallback
 
gotCodeWScope(String, String, Object) - Method in interface org.bson.BSONCallback
 
gotDate(String, long) - Method in class org.bson.BasicBSONCallback
 
gotDate(String, long) - Method in interface org.bson.BSONCallback
 
gotDBRef(String, String, ObjectId) - Method in class com.mongodb.DBCallback
 
gotDBRef(String, String, ObjectId) - Method in class org.bson.BasicBSONCallback
 
gotDBRef(String, String, ObjectId) - Method in interface org.bson.BSONCallback
 
gotDouble(String, double) - Method in class org.bson.BasicBSONCallback
 
gotDouble(String, double) - Method in interface org.bson.BSONCallback
 
gotInt(String, int) - Method in class org.bson.BasicBSONCallback
 
gotInt(String, int) - Method in interface org.bson.BSONCallback
 
gotLong(String, long) - Method in class org.bson.BasicBSONCallback
 
gotLong(String, long) - Method in interface org.bson.BSONCallback
 
gotMaxKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMaxKey(String) - Method in interface org.bson.BSONCallback
 
gotMinKey(String) - Method in class org.bson.BasicBSONCallback
 
gotMinKey(String) - Method in interface org.bson.BSONCallback
 
gotNull(String) - Method in class org.bson.BasicBSONCallback
 
gotNull(String) - Method in interface org.bson.BSONCallback
 
gotObjectId(String, ObjectId) - Method in class org.bson.BasicBSONCallback
 
gotObjectId(String, ObjectId) - Method in interface org.bson.BSONCallback
 
gotRegex(String, String, String) - Method in class org.bson.BasicBSONCallback
 
gotRegex(String, String, String) - Method in interface org.bson.BSONCallback
 
gotString(String, String) - Method in class org.bson.BasicBSONCallback
 
gotString(String, String) - Method in interface org.bson.BSONCallback
 
gotSymbol(String, String) - Method in class org.bson.BasicBSONCallback
 
gotSymbol(String, String) - Method in interface org.bson.BSONCallback
 
gotTimestamp(String, int, int) - Method in class org.bson.BasicBSONCallback
 
gotTimestamp(String, int, int) - Method in interface org.bson.BSONCallback
 
gotUndefined(String) - Method in class org.bson.BasicBSONCallback
 
gotUndefined(String) - Method in interface org.bson.BSONCallback
 
gotUUID(String, long, long) - Method in class org.bson.BasicBSONCallback
 
gotUUID(String, long, long) - Method in interface org.bson.BSONCallback
subtype 3
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
 
GridFSDBFile() - Constructor for class com.mongodb.gridfs.GridFSDBFile
 
GridFSFile - Class in com.mongodb.gridfs
 
GridFSFile() - Constructor for class com.mongodb.gridfs.GridFSFile
 
GridFSInputFile - Class in com.mongodb.gridfs
 
group(DBObject, DBObject, DBObject, String) - Method in class com.mongodb.DBCollection
 
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
Handles a given object.
handleError(T, Exception) - Method in class com.mongodb.util.ThreadPool
Handles a given object and exception.
handleSpecialObjects(String, BSONObject) - Method in class org.bson.BSONEncoder
 
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
Calculates the hash code for this collection.
hashCode() - Method in class com.mongodb.DBPort
 
hashCode() - Method in class com.mongodb.ServerAddress
 
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 org.bson.types.ObjectId
 
hashCode() - Method in class org.bson.util.ClassMap
hashCode
hasNext() - Method in class com.mongodb.DBCursor
Checks if there is another element.
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.
host() - Method in class com.mongodb.DBPort
 

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
 
initCache() - Method in class org.bson.util.ClassMap
initCache
inProgress() - Method in class com.mongodb.util.ThreadPool
 
insert(DBObject[], WriteConcern) - 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(List<DBObject>) - Method in class com.mongodb.DBCollection
Saves document(s) to the database.
inUse() - Method in class com.mongodb.util.SimplePool
 
invoke(String, Object[], String[]) - Method in class com.mongodb.util.SimplePool
 
is(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the find({key:value})
isAuthenticated() - Method in class com.mongodb.DB
Returns true iff this DB is authenticated
isCapped() - Method in class com.mongodb.DBCollection
 
isClose(String, String) - Static method in class com.mongodb.util.MyAsserts
 
isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
 
isEmpty() - Method in class org.bson.util.ClassMap
isEmpty
isLazy() - Method in class com.mongodb.WriteResult
 
isNew() - Method in class org.bson.types.ObjectId
 
isNotMasterError() - Method in class com.mongodb.ServerError
 
isPartialObject() - Method in class com.mongodb.BasicDBList
 
isPartialObject() - Method in class com.mongodb.BasicDBObject
Checks if this object is ready to be saved.
isPartialObject() - Method in interface com.mongodb.DBObject
whether markAsPartialObject was ever called only matters if you are going to upsert and dont' want to risk losing fields
isPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
 
isPartialObject() - Method in class com.mongodb.RawDBObject
 
isPartialObject() - Method in class com.mongodb.ReflectionDBObject
 
isStackEmpty() - Method in class org.bson.BasicBSONCallback
 
isValid(String) - Static method in class org.bson.types.ObjectId
Checks if a string could be an ObjectId.
itcount() - Method in class com.mongodb.DBCursor
for testing only! iterates cursor and counts objects very slow
iterator() - Method in class com.mongodb.DBCursor
 
iterator() - Method in class com.mongodb.util.IdentitySet
 
iterator() - Method in class com.mongodb.util.OrderedSet
 
iterator() - Method in class com.mongodb.util.WeakBag
 

J

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
 

K

keySet() - Method in class com.mongodb.gridfs.GridFSFile
 
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.types.BasicBSONList
 
keySet() - Method in class org.bson.util.ClassMap
keySet

L

length() - Method in class com.mongodb.DBCursor
pulls back all items into an array this is slow
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.
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.util.TestCase
 
MAJOR_VERSION - Static variable in class com.mongodb.Mongo
 
mapReduce(String, String, String, DBObject) - Method in class com.mongodb.DBCollection
performs a map reduce operation
mapReduce(DBObject) - Method in class com.mongodb.DBCollection
 
MapReduceOutput - Class in com.mongodb
 
markAsPartialObject() - Method in class com.mongodb.BasicDBList
 
markAsPartialObject() - Method in class com.mongodb.BasicDBObject
Sets that this object is incomplete and should not be saved.
markAsPartialObject() - Method in interface com.mongodb.DBObject
if this object was loaded with only some fields (using a field filter) this method will be called to notify
markAsPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
 
markAsPartialObject() - Method in class com.mongodb.RawDBObject
 
markAsPartialObject() - Method in class com.mongodb.ReflectionDBObject
 
massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
Turn an object into an ObjectId, if possible.
MAXKEY - Static variable in class org.bson.BSON
 
maxToKeep() - Method in class com.mongodb.util.SimplePool
 
maxWaitTime - Variable in class com.mongodb.MongoOptions
The max wait time for a blocking thread for a connection from the pool
md5() - Method in class org.bson.io.OutputBuffer
 
memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
 
MINKEY - Static variable in class org.bson.BSON
 
MINOR_VERSION - Static variable in class com.mongodb.Mongo
 
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 pooling.
Mongo() - Constructor for class com.mongodb.Mongo
 
Mongo(String) - Constructor for class com.mongodb.Mongo
Connects to a (single) mongodb node (default port)
Mongo(String, MongoOptions) - Constructor for class com.mongodb.Mongo
Connects to a (single) mongodb node (default port)
Mongo(String, int) - Constructor for class com.mongodb.Mongo
Connects to a (single) mongodb node
Mongo(ServerAddress) - Constructor for class com.mongodb.Mongo
Connects to a (single) mongodb node
Mongo(ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Connects to a (single) mongo node using a given ServerAddress
Mongo(ServerAddress, ServerAddress) - Constructor for class com.mongodb.Mongo
Creates a Mongo connection in paired mode.
Mongo(ServerAddress, ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Creates a Mongo connection in paired mode.
Mongo(List<ServerAddress>) - Constructor for class com.mongodb.Mongo
Creates a Mongo connection.
Mongo(List<ServerAddress>, MongoOptions) - Constructor for class com.mongodb.Mongo
Creates a Mongo connection.
Mongo(MongoURI) - Constructor for class com.mongodb.Mongo
Creates a Mongo connection.
Mongo.Holder - Class in com.mongodb
Mongo.Holder is if you want to have a static place to hold instances of Mongo security is not enforced at this level, so need to do on your side
Mongo.Holder() - Constructor for class com.mongodb.Mongo.Holder
 
MongoException - Exception in com.mongodb
 
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
 
MongoException.CursorNotFound - Exception in com.mongodb
 
MongoException.DuplicateKey - Exception in com.mongodb
 
MongoException.Network - Exception in com.mongodb
 
MongoInternalException - Exception in com.mongodb
 
MongoInternalException(String) - Constructor for exception com.mongodb.MongoInternalException
 
MongoInternalException(String, Throwable) - Constructor for exception com.mongodb.MongoInternalException
 
MongoOptions - Class in com.mongodb
Various settings for the driver
MongoOptions() - Constructor for class com.mongodb.MongoOptions
 
MongoURI - Class in com.mongodb
 
MongoURI(String) - Constructor for class com.mongodb.MongoURI
examples mongodb://localhost mongodb://fred:foobar@localhost/
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
 
near(double, double, double) - Method in class com.mongodb.QueryBuilder
 
NEAR - Static variable in class com.mongodb.QueryOperators
 
next() - Method in class com.mongodb.DBCursor
Returns the element the cursor is at and moves the cursor ahead by one.
NIN - Static variable in class com.mongodb.QueryOperators
 
NONE - Static variable in class com.mongodb.DB.WriteConcern
Deprecated. Don't check for or report any errors on writes.
NONE - Static variable in class com.mongodb.WriteConcern
No exceptions are raised, even for network issues
NORMAL - Static variable in class com.mongodb.DB.WriteConcern
Deprecated. Use the default level of error checking on writes.
NORMAL - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, but not server errors
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)
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
 
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
 
numGetMores() - Method in class com.mongodb.DBCursor
 
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
 

O

OBJECT - Static variable in class org.bson.BSON
 
objectDone() - Method in class com.mongodb.DBCallback
 
objectDone() - Method in class com.mongodb.util.JSONCallback
 
objectDone() - Method in class org.bson.BasicBSONCallback
 
objectDone() - Method in interface org.bson.BSONCallback
 
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
 
ObjectId() - Constructor for class org.bson.types.ObjectId
Create a new object id.
objectStart(boolean, String) - Method in class com.mongodb.DBCallback
 
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
 
offer(T) - Method in class com.mongodb.util.ThreadPool
Adds a new object to the pool, if possible.
OID - Static variable in class org.bson.BSON
 
ok() - Method in class com.mongodb.CommandResult
 
ok(T) - Method in class com.mongodb.util.SimplePool
callback to determine if an object is ok to be added back to the pool or used will be called when something is put back into the queue and when it comes out
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
 
onConfigurationFailure(ITestResult) - Method in class com.mongodb.util.TestNGListener
 
onFinish(ITestContext) - Method in class com.mongodb.util.TestNGListener
 
onTestFailure(ITestResult) - Method in class com.mongodb.util.TestNGListener
 
onTestSkipped(ITestResult) - Method in class com.mongodb.util.TestNGListener
 
onTestSuccess(ITestResult) - Method in class com.mongodb.util.TestNGListener
 
OptionMap - Class in com.mongodb.util
 
OptionMap() - Constructor for class com.mongodb.util.OptionMap
 
or(DBObject...) - Method in class com.mongodb.QueryBuilder
 
ORDER - Static variable in class com.mongodb.Bytes
Little-endian
OrderedSet<T> - Class in com.mongodb.util
 
OrderedSet(Collection<T>) - Constructor for class com.mongodb.util.OrderedSet
 
OrderedSet() - Constructor for class com.mongodb.util.OrderedSet
 
org.bson - package org.bson
 
org.bson.io - package org.bson.io
 
org.bson.types - package org.bson.types
 
org.bson.util - package org.bson.util
 
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 into a DBObject.
parse(String, BSONCallback) - Static method in class com.mongodb.util.JSON
Parses a JSON string into a DBObject.
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.util.SimplePool
 
pipe(OutputStream) - 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
 
PoolOutputBuffer - Class in org.bson.io
 
PoolOutputBuffer() - Constructor for class org.bson.io.PoolOutputBuffer
 
pop() - Method in class com.mongodb.BasicDBObjectBuilder
 
pop() - Method in class com.mongodb.util.FastStack
 
PORT - Static variable in class com.mongodb.DBPort
 
printStackTrace() - Static method in class com.mongodb.util.ThreadUtil
Creates an prints a stack trace
push(String) - Method in class com.mongodb.BasicDBObjectBuilder
 
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) - Method in class com.mongodb.QueryBuilder
Adds a new key to the query or sets an existing key to as current for chaining
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.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
put
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.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
 
putAll(Map) - Method in interface org.bson.BSONObject
 
putAll(Map) - Method in class org.bson.types.BasicBSONList
 
putAll(BSONObject) - Method in class org.bson.types.BasicBSONList
 
putAll(Map) - Method in class org.bson.util.ClassMap
putAll
putBinary(String, byte[]) - Method in class org.bson.BSONEncoder
 
putBinary(String, Binary) - Method in class org.bson.BSONEncoder
 
putBoolean(String, Boolean) - Method in class org.bson.BSONEncoder
 
putCode(String, Code) - Method in class org.bson.BSONEncoder
 
putCodeWScope(String, CodeWScope) - Method in class org.bson.BSONEncoder
 
putDate(String, Date) - Method in class org.bson.BSONEncoder
 
putNull(String) - Method in class org.bson.BSONEncoder
 
putNumber(String, Number) - Method in class org.bson.BSONEncoder
 
putObject(BSONObject) - Method in class org.bson.BSONEncoder
Encodes a BSONObject.
putObjectId(String, ObjectId) - Method in class org.bson.BSONEncoder
 
putSpecial(String, Object) - Method in class org.bson.BSONEncoder
 
putString(String, String) - Method in class org.bson.BSONEncoder
 
putSymbol(String, Symbol) - Method in class org.bson.BSONEncoder
 
putTimestamp(String, BSONTimestamp) - Method in class org.bson.BSONEncoder
 
putUndefined(String) - Method in class org.bson.BSONEncoder
 
putUUID(String, UUID) - Method in class org.bson.BSONEncoder
 

Q

QueryBuilder - Class in com.mongodb
Utility for creating DBObject queries
QueryBuilder() - Constructor for class com.mongodb.QueryBuilder
 
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
 
QUERYOPTION_NOTIMEOUT - Static variable in class com.mongodb.Bytes
 
QUERYOPTION_OPLOGREPLAY - Static variable in class com.mongodb.Bytes
 
QUERYOPTION_SLAVEOK - Static variable in class com.mongodb.Bytes
 
QUERYOPTION_TAILABLE - Static variable in class com.mongodb.Bytes
 
queueSize() - Method in class com.mongodb.util.ThreadPool
Returns the size of the pool's queue.

R

raiseNetworkErrors() - Method in class com.mongodb.WriteConcern
 
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.
readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
 
readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
 
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
 
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
 
readObject(byte[]) - Method in class org.bson.BSONDecoder
 
readObject(InputStream) - Method in class org.bson.BSONDecoder
 
REF - Static variable in class org.bson.BSON
 
ReflectionDBObject - Class in com.mongodb
 
ReflectionDBObject() - Constructor for class com.mongodb.ReflectionDBObject
 
ReflectionDBObject.JavaWrapper - Class in com.mongodb
 
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) - Method in class com.mongodb.DBCollection
Removes objects from the database collection.
remove() - Method in class com.mongodb.DBCursor
Unimplemented.
remove(ObjectId) - Method in class com.mongodb.gridfs.GridFS
 
remove(String) - Method in class com.mongodb.gridfs.GridFS
 
remove(DBObject) - Method in class com.mongodb.gridfs.GridFS
 
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(Object) - Method in class org.bson.util.ClassMap
remove
removeall(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
 
removeAll(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
 
removeField(String) - Method in class com.mongodb.gridfs.GridFSFile
 
removeField(String) - Method in class com.mongodb.RawDBObject
 
removeField(String) - Method in class com.mongodb.ReflectionDBObject
 
removeField(String) - Method in class org.bson.BasicBSONObject
Deletes a field from this object.
removeField(String) - Method in interface org.bson.BSONObject
Remove a field with a given name from this object.
removeField(String) - Method in class org.bson.types.BasicBSONList
 
rename(String) - Method in class com.mongodb.DBCollection
does a rename of this collection to newName
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
requestDone() - Method in class com.mongodb.DB
 
requestDone() - Method in class com.mongodb.DBApiLayer
 
requestDone() - Method in interface com.mongodb.DBConnector
 
requestEnsureConnection() - Method in class com.mongodb.DB
 
requestEnsureConnection() - Method in class com.mongodb.DBApiLayer
 
requestEnsureConnection() - Method in interface com.mongodb.DBConnector
 
requestStart() - Method in class com.mongodb.DB
 
requestStart() - Method in class com.mongodb.DBApiLayer
 
requestStart() - Method in interface com.mongodb.DBConnector
 
reset() - Method in class com.mongodb.DBCallback
 
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.io.PoolOutputBuffer
 
resetError() - Method in class com.mongodb.DB
Resets the error memory for this database.
resetIndexCache() - Method in class com.mongodb.DB
Clears any indices that have not yet been applied to the collections in 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
 
resetOptions() - Method in class com.mongodb.DBCollection
 
resetOptions() - Method in class com.mongodb.Mongo
 
RESULTFLAG_AWAITCAPABLE - Static variable in class com.mongodb.Bytes
 
RESULTFLAG_CURSORNOTFOUND - Static variable in class com.mongodb.Bytes
 
RESULTFLAG_ERRSET - Static variable in class com.mongodb.Bytes
 
RESULTFLAG_SHARDCONFIGSTALE - Static variable in class com.mongodb.Bytes
 
results() - Method in class com.mongodb.MapReduceOutput
 
run(String[]) - Static method in class com.mongodb.util.TestCase
 
runConsole() - Method in class com.mongodb.util.TestCase
 

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 - Static variable in class com.mongodb.WriteConcern
Exceptions are raised for network issues, and server errors; waits on a server for the write operation
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
Saves an object to this collection.
save(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
Saves an object to this collection.
save() - Method in class com.mongodb.gridfs.GridFSFile
 
save() - Method in class com.mongodb.gridfs.GridFSInputFile
 
save(int) - Method in class com.mongodb.gridfs.GridFSInputFile
 
saveChunks() - Method in class com.mongodb.gridfs.GridFSInputFile
 
saveChunks(int) - Method in class com.mongodb.gridfs.GridFSInputFile
 
say(DB, OutMessage, WriteConcern) - Method in interface com.mongodb.DBConnector
 
say(DB, OutMessage, WriteConcern, ServerAddress) - Method in interface com.mongodb.DBConnector
 
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 it's JSON form
serialize(Object, StringBuilder) - Static method in class com.mongodb.util.JSON
 
ServerAddress - Class in com.mongodb
mongo server address
ServerAddress() - Constructor for class com.mongodb.ServerAddress
 
ServerAddress(String) - Constructor for class com.mongodb.ServerAddress
 
ServerAddress(String, int) - Constructor for class com.mongodb.ServerAddress
 
ServerAddress(InetAddress) - Constructor for class com.mongodb.ServerAddress
 
ServerAddress(InetAddress, int) - Constructor for class com.mongodb.ServerAddress
 
ServerAddress(InetSocketAddress) - Constructor for class com.mongodb.ServerAddress
 
ServerError - Class in com.mongodb
 
set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
 
set(OutputBuffer) - Method in class org.bson.BSONEncoder
 
set_id(Object) - Method in class com.mongodb.ReflectionDBObject
 
setAttribute(Attribute) - Method in class com.mongodb.util.SimplePool
 
setAttributes(AttributeList) - Method in class com.mongodb.util.SimplePool
 
setContentType(String) - Method in class com.mongodb.gridfs.GridFSInputFile
 
setFilename(String) - Method in class com.mongodb.gridfs.GridFSInputFile
 
setGridFS(GridFS) - Method in class com.mongodb.gridfs.GridFSFile
 
setHintFields(List<DBObject>) - Method in class com.mongodb.DBCollection
Set hint fields for this collection.
setInternalClass(String, Class) - Method in class com.mongodb.DBCollection
 
setObjectClass(Class) - Method in class com.mongodb.DBCollection
Set a default class for objects in this collection
setOptions(int) - Method in class com.mongodb.DB
 
setOptions(int) - Method in class com.mongodb.DBCollection
 
setOptions(int) - Method in class com.mongodb.Mongo
 
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
setRoot(Object) - Method in class org.bson.BasicBSONCallback
 
setWriteConcern(WriteConcern) - Method in class com.mongodb.DB
Set 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
Set the write concern for this database.
SimplePool<T> - Class in com.mongodb.util
 
SimplePool(String, int, int) - Constructor for class com.mongodb.util.SimplePool
See full constructor docs
SimplePool(String, int, int, boolean, boolean) - 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
 
size() - Method in class com.mongodb.DBCursor
Counts the number of elements matching the query that would be returned 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.OrderedSet
 
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.OutputBuffer
 
size() - Method in class org.bson.io.PoolOutputBuffer
 
size() - Method in class org.bson.util.ClassMap
size
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
makes this query ok to run on a slave node
slaveOk() - Method in class com.mongodb.DBCollection
makes this query ok to run on a slave node
slaveOk() - Method in class com.mongodb.DBCursor
makes this query ok to run on a slave node
slaveOk() - Method in class com.mongodb.Mongo
makes this query ok to run on a slave node
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.
socketTimeout - Variable in class com.mongodb.MongoOptions
The socket timeout; this value is passed to Socket.setSoTimeout.
sort(DBObject) - Method in class com.mongodb.DBCursor
Sorts this cursor's elements.
start() - Static method in class com.mongodb.BasicDBObjectBuilder
 
start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
 
start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
Creates an object builder from an existing map.
start() - Static method in class com.mongodb.QueryBuilder
 
start(String) - Static method in class com.mongodb.QueryBuilder
Creates a new query with a document key
STRICT - Static variable in class com.mongodb.DB.WriteConcern
Deprecated. Send a getLastError command following all writes.
STRICT - Static variable in class com.mongodb.WriteConcern
Deprecated. 
STRING - Static variable in class org.bson.BSON
 
StringBuilderPool - Class in com.mongodb.util
 
StringBuilderPool(String, int, 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
 
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

TestCase - Class in com.mongodb.util
 
TestCase() - Constructor for class com.mongodb.util.TestCase
this is for normal class tests
TestCase(String) - Constructor for class com.mongodb.util.TestCase
 
TestCase(Object, String) - Constructor for class com.mongodb.util.TestCase
 
TestCase(Object, Method) - Constructor for class com.mongodb.util.TestCase
 
TestNGListener - Class in com.mongodb.util
 
TestNGListener() - Constructor for class com.mongodb.util.TestNGListener
 
ThreadPool<T> - Class in com.mongodb.util
 
ThreadPool(String, int) - Constructor for class com.mongodb.util.ThreadPool
Initializes a new thread pool with a given name and number of threads.
ThreadPool(String, int, int) - Constructor for class com.mongodb.util.ThreadPool
Initializes a new thread pool with a given name, number of threads, and queue size.
threadsAllowedToBlockForConnectionMultiplier - Variable in class com.mongodb.MongoOptions
multiplier for connectionsPerHost for # of threads that can block if connectionsPerHost is 10, and threadsAllowedToBlockForConnectionMultiplier is 5, then 50 threads can block more than that and an exception will be throw
ThreadUtil - Class in com.mongodb.util
 
ThreadUtil() - Constructor for class com.mongodb.util.ThreadUtil
 
throwOnError() - Method in class com.mongodb.CommandResult
 
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.
toByteArray() - Method in class org.bson.io.OutputBuffer
mostly for testing
toByteArray() - Method in class org.bson.types.ObjectId
 
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.types.BasicBSONList
 
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
String representation of address as host:port/dbname.
toString() - Method in class com.mongodb.DBCollection
Returns name of the collection.
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.MongoOptions
 
toString() - Method in class com.mongodb.MongoURI
 
toString() - Method in class com.mongodb.RawDBObject
 
toString() - Method in class com.mongodb.ServerAddress
 
toString() - Method in class com.mongodb.ServerError
 
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.util.TestCase
 
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.OutputBuffer
 
toString() - Method in class org.bson.types.BSONTimestamp
 
toString() - Method in class org.bson.types.ObjectId
 
toString() - Method in class org.bson.types.Symbol
 
toString() - Method in class org.bson.util.ClassMap
toString
toStringBabble() - Method in class org.bson.types.ObjectId
 
toStringMongod() - Method in class org.bson.types.ObjectId
 
total() - Method in class com.mongodb.util.SimplePool
 
transform(Object) - Method in interface org.bson.Transformer
 
Transformer - Interface in org.bson
 

U

UNDEFINED - Static variable in class org.bson.BSON
 
UniqueList<T> - Class in com.mongodb.util
 
UniqueList() - Constructor for class com.mongodb.util.UniqueList
 
update(DBObject, DBObject, boolean, boolean, WriteConcern) - Method in class com.mongodb.DBCollection
Performs an update operation.
update(DBObject, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
Performs an update operation.
update(DBObject, DBObject) - Method in class com.mongodb.DBCollection
 
updateMulti(DBObject, DBObject) - Method in class com.mongodb.DBCollection
 
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
 
valueOf(String) - Static method in class com.mongodb.WriteConcern
Get the WriteConcern constants by name: NONE, NORMAL, SAFE, FSYNC_SAFE, REPLICA_SAFE.
values() - Method in class org.bson.util.ClassMap
values

W

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
 
withinCenter(double, double, double) - Method in class com.mongodb.QueryBuilder
 
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 - Class in com.mongodb
WriteConcern control the write behavior for with various options, as well as exception raising on error conditions.
WriteConcern() - Constructor for class com.mongodb.WriteConcern
 
WriteConcern(int) - Constructor for class com.mongodb.WriteConcern
Specifies the number of servers to wait for on the write operation, and exception raising behavior
WriteConcern(int, int) - Constructor for class com.mongodb.WriteConcern
Specifies the number of servers to wait for on the write operation, and the amount of time (ms) to wait.
WriteConcern(boolean) - Constructor for class com.mongodb.WriteConcern
 
WriteConcern(int, int, boolean) - Constructor for class com.mongodb.WriteConcern
Specifies the number of servers to wait for on the write operation, and the amount of time (ms) to wait.
writeCString(String) - Method in class org.bson.BSONEncoder
 
writeDouble(double) - Method in class org.bson.io.OutputBuffer
 
writeInt(int) - Method in class org.bson.BSONEncoder
 
writeInt(int) - Method in class org.bson.io.OutputBuffer
 
writeInt(int, int) - Method in class org.bson.io.OutputBuffer
 
writeLong(long) - Method in class org.bson.BSONEncoder
 
writeLong(long) - Method in class org.bson.io.OutputBuffer
 
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
 
writeTo(File) - Method in class com.mongodb.gridfs.GridFSDBFile
 
writeTo(OutputStream) - Method in class com.mongodb.gridfs.GridFSDBFile
 

_

_assertEquals(Object, Object) - Static method in class com.mongodb.util.MyAsserts
 
_availSafe - Variable in class com.mongodb.util.SimplePool
 
_bucketName - Variable in class com.mongodb.gridfs.GridFS
 
_buf - Variable in class org.bson.BSONEncoder
 
_chunkCollection - Variable in class com.mongodb.gridfs.GridFS
 
_db - Variable in class com.mongodb.gridfs.GridFS
 
_debug - Variable in class com.mongodb.util.SimplePool
 
_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
 
_inc() - Method in class org.bson.types.ObjectId
 
_machine() - Method in class org.bson.types.ObjectId
 
_maxToKeep - Variable in class com.mongodb.util.SimplePool
 
_maxTotal - Variable in class com.mongodb.util.SimplePool
 
_name - Variable in class com.mongodb.DBCollection
 
_name - Variable in class com.mongodb.util.SimplePool
 
_objectClass - Variable in class com.mongodb.DBCollection
 
_put(String, Object) - Method in class org.bson.BasicBSONCallback
 
_put(byte, String) - Method in class org.bson.BSONEncoder
Encodes the type and key.
_put(String) - Method in class org.bson.BSONEncoder
puts as utf-8 string
_putObjectField(String, Object) - Method in class org.bson.BSONEncoder
 
_putValueString(String) - Method in class org.bson.BSONEncoder
 
_readOnly - Variable in class com.mongodb.DB
 
_time() - Method in class org.bson.types.ObjectId
 
_trackLeaks - Variable in class com.mongodb.util.SimplePool
 
_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 _