Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
com.mongodb.gridfs |
GridFS tools.
|
Modifier and Type | Method and Description |
---|---|
DBCollection |
MongoURI.connectCollection(DB db)
returns the URI's Collection from a given DB object
|
DBCollection |
MongoURI.connectCollection(Mongo m)
returns the URI's Collection from a given Mongo instance
|
DBCollection |
DB.createCollection(java.lang.String name,
DBObject options)
Creates a collection with a given name and options.
|
protected abstract DBCollection |
DB.doGetCollection(java.lang.String name)
Returns the collection represented by the string <dbName>.<collectionName>.
|
DBCollection |
DBCursor.getCollection()
gets the collection
|
DBCollection |
DBCollection.getCollection(java.lang.String n)
Finds a collection that is prefixed with this collection's name.
|
DBCollection |
DB.getCollection(java.lang.String name)
Gets a collection with a given name.
|
DBCollection |
DB.getCollectionFromString(java.lang.String s)
Returns a collection matching a given string.
|
DBCollection |
MapReduceOutput.getOutputCollection()
gets the collection that holds the results
(Will return null if results are Inline)
|
DBCollection |
DBCollection.rename(java.lang.String newName)
Calls {@link DBCollection#rename(java.lang.String, boolean) with dropTarget=false
|
DBCollection |
DBCollection.rename(java.lang.String newName,
boolean dropTarget)
renames of this collection to newName
|
Modifier and Type | Method and Description |
---|---|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m) |
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m)
does a read operation on the database
|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded) |
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded)
does a read operation on the database
|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries) |
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
does a read operation on the database
|
DBCallback |
DBCallbackFactory.create(DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(byte[] b,
DBCollection collection) |
DBObject |
DBDecoder.decode(byte[] b,
DBCollection collection) |
DBObject |
LazyDBDecoder.decode(byte[] b,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(java.io.InputStream in,
DBCollection collection) |
DBObject |
DBDecoder.decode(java.io.InputStream in,
DBCollection collection) |
DBObject |
LazyDBDecoder.decode(java.io.InputStream in,
DBCollection collection) |
DBCallback |
DefaultDBDecoder.getDBCallback(DBCollection collection) |
DBCallback |
DBDecoder.getDBCallback(DBCollection collection) |
DBCallback |
LazyDBDecoder.getDBCallback(DBCollection collection) |
Constructor and Description |
---|
DBCursor(DBCollection collection,
DBObject q,
DBObject k)
Initializes a new database cursor
|
DefaultDBCallback(DBCollection coll) |
GroupCommand(DBCollection inputCollection,
DBObject keys,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize) |
MapReduceCommand(DBCollection inputCollection,
java.lang.String map,
java.lang.String reduce,
java.lang.String outputCollection,
MapReduceCommand.OutputType type,
DBObject query)
Represents the command for a map reduce operation
Runs the command in REPLACE output type to a named collection
|
MapReduceOutput(DBCollection from,
DBObject cmd,
BasicDBObject raw) |
Modifier and Type | Field and Description |
---|---|
protected DBCollection |
GridFS._chunkCollection |
protected DBCollection |
GridFS._filesCollection |