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

A

add(String, Object) - Method in class com.mongodb.BasicDBObjectBuilder
 
addDecodingHook(byte, Transformer) - Static method in class com.mongodb.Bytes
 
addEncodingHook(Class, Transformer) - Static method in class com.mongodb.Bytes
 
addOption(int) - Method in class com.mongodb.DBCursor
adds an option - see Bytes.QUERYOPTION_* for list
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
 
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(byte, Object) - Static method in class com.mongodb.Bytes
 
applyEncodingHooks(Object) - Static method in class com.mongodb.Bytes
 
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 or not on a connect, the system retries automatically

B

babbleToMongod(String) - Static method in class com.mongodb.ObjectId
 
BasicDBList - Class in com.mongodb
Utility class to allow array DBObjects to be created.
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(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
 
batchSize(int) - Method in class com.mongodb.DBCursor
Limits the number of elements returned in one batch
ByteDecoder - Class in com.mongodb
Deserializes a string from the database into a DBObject.
ByteDecoder(ByteBuffer) - Constructor for class com.mongodb.ByteDecoder
 
ByteEncoder - Class in com.mongodb
Serializes a DBObject into a string that can be sent to the database.
Bytes - Class in com.mongodb
Handles byte functions for ByteEncoder and ByteDecoder.
Bytes() - Constructor for class com.mongodb.Bytes
 

C

call(DB, DBMessage, ByteDecoder) - Method in interface com.mongodb.DBConnector
 
call(DB, DBMessage, ByteDecoder, int) - Method in interface com.mongodb.DBConnector
 
checkReadOnly(boolean) - Method in class com.mongodb.DBCollection
Returns if this collection's database is read-only
clearAllHooks() - Static method in class com.mongodb.Bytes
 
CLI - Class in com.mongodb.gridfs
a simple CLI for Gridfs
CLI() - Constructor for class com.mongodb.gridfs.CLI
 
CodeWScope - Class in com.mongodb
for using the CodeWScope type
CodeWScope(String, DBObject) - Constructor for class com.mongodb.CodeWScope
 
com.mongodb - package com.mongodb
Main package with core files.
com.mongodb.gridfs - package com.mongodb.gridfs
GridFS tools.
command(DBObject) - Method in class com.mongodb.DB
Execute a database command directly.
command(String) - Method in class com.mongodb.DB
 
compareTo(ObjectId) - Method in class com.mongodb.ObjectId
 
connect(DBAddress) - Static method in class com.mongodb.Mongo
 
connectionsPerHost - Variable in class com.mongodb.MongoOptions
number of connections allowed per host will block if run out
connectTimeout - Variable in class com.mongodb.MongoOptions
connect timeout in milliseconds.
containsField(String) - Method in class com.mongodb.BasicDBList
 
containsField(String) - Method in class com.mongodb.BasicDBObject
Checks if this object contains a given field
containsField(String) - Method in interface com.mongodb.DBObject
Checks if this object contains a field with the given name.
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
 
containsKey(String) - Method in class com.mongodb.BasicDBList
Deprecated.  
containsKey(String) - Method in class com.mongodb.BasicDBObject
Deprecated.  
containsKey(String) - Method in interface com.mongodb.DBObject
Deprecated.  
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
 
copy() - Method in class com.mongodb.DBCursor
Creates a copy of an existing database cursor.
count() - Method in class com.mongodb.DBCursor
Counts the number of elements in this cursor.
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.
curr() - Method in class com.mongodb.DBCursor
Returns the element the cursor is at.

D

DB - Class in com.mongodb
a logical database on a server
DB(String) - Constructor for class com.mongodb.DB
 
DB.WriteConcern - Enum in com.mongodb
Settings for strictness of error checking on writes (inserts, updates, and removes).
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(String, DBConnector) - Constructor for class com.mongodb.DBApiLayer
 
DBBinary - Class in com.mongodb
generic binary holder
DBBinary(byte, byte[]) - Constructor for class com.mongodb.DBBinary
 
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
DBMessage - Class in com.mongodb
Creates a message to send to the database.
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(InetSocketAddress) - Constructor for class com.mongodb.DBPort
 
DBRef - Class in com.mongodb
Database reference class.
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
 
DBRegex - Class in com.mongodb
Deprecated.  
DBRegex(String, String) - Constructor for class com.mongodb.DBRegex
Deprecated.  
DBSymbol - Class in com.mongodb
Class to hold a BSON symbol object, which is an interned string in Ruby
DBSymbol(String) - Constructor for class com.mongodb.DBSymbol
 
DBTimestamp - Class in com.mongodb
this is used for internal increment values.
DBTimestamp() - Constructor for class com.mongodb.DBTimestamp
 
DBTimestamp(int, int) - Constructor for class com.mongodb.DBTimestamp
 
DBUndefined - Class in com.mongodb
Class to represent BSON 'undefined' type
DBUndefined() - Constructor for class com.mongodb.DBUndefined
 
debugString() - Method in class com.mongodb.Mongo
 
decode(byte[]) - Static method in class com.mongodb.Bytes
 
decodeNext(DBObject, String) - Method in class com.mongodb.ByteDecoder
Decodes the serialized object into the given DBObject.
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
 
doGetCollection(String) - Method in class com.mongodb.DBApiLayer
 
done() - Method in class com.mongodb.ByteDecoder
Returns this decoder to the pool.
done() - Method in class com.mongodb.ByteEncoder
Resets and returns this encoder to the pool.
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(DBObject) - Static method in class com.mongodb.Bytes
 
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
 
equals(Object) - Method in class com.mongodb.BasicDBObject
 
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.ObjectId
 
equals(Object) - Method in class com.mongodb.ServerAddress
 
eval(String, Object...) - Method in class com.mongodb.DB
 
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

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
 
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
 
flip() - Method in class com.mongodb.ByteEncoder
Switches the encoder from being write-only to being read-only.
forceError() - Method in class com.mongodb.DB
For testing purposes only - this method forces an error to help test error handling

G

geHost() - Method in class com.mongodb.ServerAddress
 
genIndexName(DBObject) - Static method in class com.mongodb.DBCollection
Generate an index name from the set of fields it is over.
get(String) - Method in class com.mongodb.BasicDBList
Gets a value at an index.
get(String) - Method in class com.mongodb.BasicDBObject
Gets a value from this object
get() - Method in class com.mongodb.BasicDBObjectBuilder
 
get(DB, DBCollection) - Static method in class com.mongodb.ByteDecoder
Gets a new ByteDecoder from the pool.
get() - Static method in class com.mongodb.ByteEncoder
Fetches a new ByteEncoder from the pool of available ByteEncoders.
get(String) - Method in interface com.mongodb.DBObject
Gets a field from this object by a given name.
get(String) - Method in class com.mongodb.gridfs.GridFSFile
 
get() - Static method in class com.mongodb.ObjectId
Gets a new object id.
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_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
 
getBucketName() - Method in class com.mongodb.gridfs.GridFS
 
getBytes() - Method in class com.mongodb.ByteEncoder
Returns the bytes in the bytebuffer.
getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
 
getCode() - Method in class com.mongodb.CodeWScope
 
getCode() - Method in exception com.mongodb.MongoException
 
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.
getCollectionFromFull(String) - Method in class com.mongodb.DB
Returns the collection represented by the string <dbName>.<collectionName>.
getCollectionFromFull(String) - Method in class com.mongodb.DBApiLayer
Get a collection from a <databaseName>.<collectionName>.
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.
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
getData() - Method in class com.mongodb.DBBinary
 
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
 
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
 
getFlag(char) - Static method in class com.mongodb.Bytes
 
getFullName() - Method in class com.mongodb.DBCollection
Returns the full name of this collection, with the database name as a prefix.
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 com.mongodb.DBTimestamp
 
getInc() - Method in class com.mongodb.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) - Method in class com.mongodb.BasicDBObject
Returns the value of a field as an int.
getInt(String, int) - Method in class com.mongodb.BasicDBObject
Returns the value of a field as an int.
getInternalClass(String) - Method in class com.mongodb.DBCollection
 
getKeysWanted() - Method in class com.mongodb.DBCursor
 
getLastError() - Method in class com.mongodb.DB
Gets the the error (if there is one) from the previous operation.
getLength() - Method in class com.mongodb.gridfs.GridFSFile
 
getLong(String) - Method in class com.mongodb.BasicDBObject
Returns the value of a field as a long.
getMachine() - Method in class com.mongodb.ObjectId
 
getMD5() - Method in class com.mongodb.gridfs.GridFSFile
 
getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
 
getMetaData() - Method in class com.mongodb.gridfs.GridFSInputFile
 
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
getOptions() - Method in class com.mongodb.DBRegex
Deprecated.  
getOutputCollection() - Method in class com.mongodb.MapReduceOutput
 
getPattern() - Method in class com.mongodb.DBRegex
Deprecated.  
getPort() - Method in class com.mongodb.ServerAddress
 
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
getRef() - Method in class com.mongodb.DBRefBase
Get this ref's $ref (the collection name).
getScope() - Method in class com.mongodb.CodeWScope
 
getSister(String) - Method in class com.mongodb.DBAddress
 
getSisterDB(String) - Method in class com.mongodb.DB
 
getSisterDB(String) - Method in class com.mongodb.DBApiLayer
 
getSizes() - Method in class com.mongodb.DBCursor
 
getSocketAddress() - Method in class com.mongodb.ServerAddress
 
getString(String) - Method in class com.mongodb.BasicDBObject
Returns the value of a field as a string
getSymbol() - Method in class com.mongodb.DBSymbol
 
getTime() - Method in class com.mongodb.DBTimestamp
 
getTime() - Method in class com.mongodb.ObjectId
 
getType(Object) - Static method in class com.mongodb.Bytes
Gets the type byte for a given object.
getType() - Method in class com.mongodb.DBBinary
 
getUploadDate() - Method in class com.mongodb.gridfs.GridFSFile
 
getVersion() - Method in class com.mongodb.Mongo
 
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.
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

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.ObjectId
 
hashCode() - Method in class com.mongodb.ServerAddress
 
hasNext() - Method in class com.mongodb.DBCursor
Checks if there is another element.
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

in(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $in operand
IN - Static variable in class com.mongodb.QueryOperators
 
insert(DBObject) - Method in class com.mongodb.DBCollection
Saves an document to the database.
insert(DBObject[]) - Method in class com.mongodb.DBCollection
Saves an array of documents to the database.
insert(List<DBObject>) - Method in class com.mongodb.DBCollection
Saves an array of documents to the database.
is(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the find({key:value})
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
 
isValid(String) - Static method in class com.mongodb.ObjectId
Checks if a string could be an ObjectId.
itcount() - Method in class com.mongodb.DBCursor
for testing only! iterates cursor and counts objects
iterator() - Method in class com.mongodb.DBCursor
 

K

keySet() - Method in class com.mongodb.BasicDBList
 
keySet() - Method in interface com.mongodb.DBObject
Returns this object's fields' names
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
 

L

length() - Method in class com.mongodb.DBCursor
Finds the number of elements in the array.
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.
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.ObjectId
 
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 com.mongodb.ObjectId
Turn an object into an ObjectId, if possible.
MAX_STRING - Static variable in class com.mongodb.Bytes
The maximum number of bytes allowed to be sent to the db at a time
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 the local mongo instance on default port.
Mongo(String, MongoOptions) - Constructor for class com.mongodb.Mongo
Connects to the local mongo instance on default port.
Mongo(String, int) - Constructor for class com.mongodb.Mongo
Connects to Mongo using a given host, port, and database.
Mongo(ServerAddress) - Constructor for class com.mongodb.Mongo
Connects to Mongo using a given DBAddress
Mongo(ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
Connects to Mongo using a given DBAddress
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
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.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
 

N

NE - Static variable in class com.mongodb.QueryOperators
 
near(double, double) - Method in class com.mongodb.QueryBuilder
 
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
 
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
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.

O

ObjectId - Class in com.mongodb
A globally unique identifier for objects.
ObjectId(Date) - Constructor for class com.mongodb.ObjectId
 
ObjectId(Date, int) - Constructor for class com.mongodb.ObjectId
 
ObjectId(String) - Constructor for class com.mongodb.ObjectId
Creates a new instance from a string.
ObjectId(String, boolean) - Constructor for class com.mongodb.ObjectId
 
ObjectId(byte[]) - Constructor for class com.mongodb.ObjectId
 
ObjectId() - Constructor for class com.mongodb.ObjectId
Create a new object id.
ORDER - Static variable in class com.mongodb.Bytes
Little-endian

P

patternFlags(String) - Static method in class com.mongodb.Bytes
Converts a string of regular expression flags from the database in Java regular expression flags.
patternFlags(int) - Static method in class com.mongodb.Bytes
Converts Java regular expression flags into a string of flags for the database
pop() - Method in class com.mongodb.BasicDBObjectBuilder
 
PORT - Static variable in class com.mongodb.DBPort
 
push(String) - Method in class com.mongodb.BasicDBObjectBuilder
 
put(String, Object) - Method in class com.mongodb.BasicDBList
Puts a value at an index.
put(int, Object) - Method in class com.mongodb.BasicDBList
Puts a value at an index.
put(String, Object) - Method in class com.mongodb.BasicDBObject
Add a key/value pair to this object
put(String, Object) - Method in interface com.mongodb.DBObject
Sets a name/value pair in this object.
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
 
putAll(Map) - Method in class com.mongodb.BasicDBList
 
putAll(DBObject) - Method in class com.mongodb.BasicDBList
 
putAll(Map) - Method in class com.mongodb.BasicDBObject
 
putAll(DBObject) - Method in class com.mongodb.BasicDBObject
 
putAll(DBObject) - Method in interface com.mongodb.DBObject
 
putAll(Map) - Method in interface com.mongodb.DBObject
 
putAll(DBObject) - Method in class com.mongodb.gridfs.GridFSFile
 
putAll(Map) - Method in class com.mongodb.gridfs.GridFSFile
 
putAll(DBObject) - Method in class com.mongodb.RawDBObject
 
putAll(Map) - Method in class com.mongodb.RawDBObject
 
putAll(Map) - Method in class com.mongodb.ReflectionDBObject
 
putAll(DBObject) - Method in class com.mongodb.ReflectionDBObject
 
putBinary(String, byte[]) - Method in class com.mongodb.ByteEncoder
 
putBinary(String, DBBinary) - Method in class com.mongodb.ByteEncoder
 
putBoolean(String, Boolean) - Method in class com.mongodb.ByteEncoder
 
putCodeWScope(String, CodeWScope) - Method in class com.mongodb.ByteEncoder
 
putDate(String, Date) - Method in class com.mongodb.ByteEncoder
 
putDBPointer(String, String, ObjectId) - Method in class com.mongodb.ByteEncoder
 
putDBRef(String, DBRefBase) - Method in class com.mongodb.ByteEncoder
 
putNull(String) - Method in class com.mongodb.ByteEncoder
 
putNumber(String, Number) - Method in class com.mongodb.ByteEncoder
 
putObject(DBObject) - Method in class com.mongodb.ByteEncoder
Encodes a DBObject.
putObjectId(String, ObjectId) - Method in class com.mongodb.ByteEncoder
 
putString(String, String) - Method in class com.mongodb.ByteEncoder
 
putSymbol(String, DBSymbol) - Method in class com.mongodb.ByteEncoder
 
putTimestamp(String, DBTimestamp) - Method in class com.mongodb.ByteEncoder
 
putUndefined(String) - Method in class com.mongodb.ByteEncoder
 

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

R

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.
readObject() - Method in class com.mongodb.ByteDecoder
Decode an object.
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
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
 
removeField(String) - Method in class com.mongodb.BasicDBList
 
removeField(String) - Method in class com.mongodb.BasicDBObject
Deletes a field from this object.
removeField(String) - Method in interface com.mongodb.DBObject
Remove a field with a given name from this object.
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
 
rename(String) - Method in class com.mongodb.DBCollection
does a rename of this collection to newName
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(ByteBuffer) - Method in class com.mongodb.ByteDecoder
Returns this decoder to its starting state with a new ByteBuffer to decode.
reset() - Method in class com.mongodb.ByteEncoder
Returns encoder to its starting state, ready to encode an object.
reset() - Method in class com.mongodb.MongoOptions
 
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.
results() - Method in class com.mongodb.MapReduceOutput
 

S

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() - Method in class com.mongodb.gridfs.GridFSFile
 
save() - Method in class com.mongodb.gridfs.GridFSInputFile
 
saveChunks() - Method in class com.mongodb.gridfs.GridFSInputFile
 
say(DB, DBMessage, DB.WriteConcern) - Method in interface com.mongodb.DBConnector
 
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
 
set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
 
set_id(Object) - Method in class com.mongodb.ReflectionDBObject
 
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
setReadOnly(Boolean) - Method in class com.mongodb.DB
Makes this database read-only
setWriteConcern(DB.WriteConcern) - Method in class com.mongodb.DB
Set the write concern for this database.
setWriteConcern(DB.WriteConcern) - Method in class com.mongodb.DBCollection
Set the write concern for this collection.
size(Object) - Method in class com.mongodb.QueryBuilder
Equivalent of the $size operand
SIZE - Static variable in class com.mongodb.QueryOperators
 
skip(int) - Method in class com.mongodb.DBCursor
Discards a given number of elements at the beginning of the cursor.
snapshot() - Method in class com.mongodb.DBCursor
Use snapshot mode for the query.
socketTimeout - Variable in class com.mongodb.MongoOptions
socket timeout.
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(String) - Static method in class com.mongodb.QueryBuilder
Creates a new query with a document key

T

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
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 com.mongodb.ObjectId
 
toMap() - Method in class com.mongodb.BasicDBList
 
toMap() - Method in class com.mongodb.BasicDBObject
Converts a DBObject to a map.
toMap() - Method in interface com.mongodb.DBObject
Returns a map representing this DBObject.
toMap() - Method in class com.mongodb.gridfs.GridFSFile
 
toMap() - Method in class com.mongodb.RawDBObject
 
toMap() - Method in class com.mongodb.ReflectionDBObject
 
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.DBMessage
 
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.DBTimestamp
 
toString() - Method in class com.mongodb.gridfs.GridFSFile
 
toString() - Method in class com.mongodb.ObjectId
 
toString() - Method in class com.mongodb.RawDBObject
 
toString() - Method in class com.mongodb.ServerAddress
 
toStringBabble() - Method in class com.mongodb.ObjectId
 
toStringMongod() - Method in class com.mongodb.ObjectId
 
transform(Object) - Method in interface com.mongodb.Transformer
 
Transformer - Interface in com.mongodb
 

U

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
 

V

validate() - Method in class com.mongodb.gridfs.GridFSFile
 
valueOf(String) - Static method in enum com.mongodb.DB.WriteConcern
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mongodb.DB.WriteConcern
Returns an array containing the constants of this enum type, in the order they are declared.

W

WHERE - Static variable in class com.mongodb.QueryOperators
 
withinCenter(double, double, double) - Method in class com.mongodb.QueryBuilder
 
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
 

_

_bucketName - Variable in class com.mongodb.gridfs.GridFS
 
_chunkCollection - Variable in class com.mongodb.gridfs.GridFS
 
_db - Variable in class com.mongodb.gridfs.GridFS
 
_filesCollection - Variable in class com.mongodb.gridfs.GridFS
 
_fs - Variable in class com.mongodb.gridfs.GridFSFile
 
_fullName - Variable in class com.mongodb.DBCollection
 
_hintFields - Variable in class com.mongodb.DBCollection
 
_name - Variable in class com.mongodb.DBCollection
 
_objectClass - Variable in class com.mongodb.DBCollection
 
_readOnly - Variable in class com.mongodb.DB
 
_utf8 - Static variable in class com.mongodb.Bytes
 

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