| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| com.mongodb.gridfs |
GridFS tools.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
DBCollectionImpl |
| Modifier and Type | Field and Description |
|---|---|
(package private) DBCollection |
MapReduceOutput._coll |
private DBCollection |
QueryResultIterator._collection |
(package private) DBCollection |
LazyDBCallback._collection |
private DBCollection |
OutMessage._collection |
(package private) DBCollection |
DefaultDBCallback._collection |
private DBCollection |
DBCursor._collection |
private DBCollection |
BulkWriteOperation.collection |
| 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 mongo)
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)
Gets a collection with a given name.
|
DBCollection |
DBCursor.getCollection()
Gets the collection.
|
DBCollection |
DBCollection.getCollection(java.lang.String n)
Find 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
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 |
|---|---|
Response |
DBConnector.call(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
Deprecated.
does a read operation on the database
|
Response |
DBTCPConnector.call(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
Deprecated.
|
Response |
DBConnector.call(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
int retries)
Deprecated.
does a read operation on the database
|
Response |
DBTCPConnector.call(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
int retries)
Deprecated.
|
Response |
DBConnector.call(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
Deprecated.
does a read operation on the database
|
Response |
DBTCPConnector.call(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
Deprecated.
|
(package private) Response |
DBPort.call(OutMessage msg,
DBCollection coll)
Deprecated.
|
(package private) Response |
DBPort.call(OutMessage msg,
DBCollection coll,
DBDecoder decoder)
Deprecated.
|
DBCallback |
DBCallbackFactory.create(DBCollection collection)
Creates a DBCallback for the given collection.
|
DBCallback |
DefaultDBCallback.DefaultFactory.create(DBCollection collection) |
DBObject |
LazyDBDecoder.decode(byte[] b,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(byte[] b,
DBCollection collection) |
DBObject |
DBDecoder.decode(byte[] bytes,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given array of bytes.
|
DBObject |
LazyDBDecoder.decode(java.io.InputStream in,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(java.io.InputStream in,
DBCollection collection) |
DBObject |
DBDecoder.decode(java.io.InputStream input,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given input stream.
|
DBCallback |
LazyWriteableDBDecoder.getDBCallback(DBCollection collection)
Deprecated.
|
DBCallback |
LazyDBDecoder.getDBCallback(DBCollection collection) |
DBCallback |
DefaultDBDecoder.getDBCallback(DBCollection collection) |
DBCallback |
DBDecoder.getDBCallback(DBCollection collection)
Get a callback for the given collection.
|
(package private) static OutMessage |
OutMessage.getMore(DBCollection collection,
long cursorId,
int batchSize) |
private Response |
DBTCPConnector.innerCall(DB db,
DBCollection coll,
OutMessage m,
ServerAddress hostNeeded,
int remainingRetries,
ReadPreference readPref,
DBDecoder decoder)
Deprecated.
|
static OutMessage |
OutMessage.insert(DBCollection collection,
DBEncoder encoder,
WriteConcern concern) |
(package private) static OutMessage |
OutMessage.query(DBCollection collection,
int options,
int numToSkip,
int batchSize,
DBObject query,
DBObject fields,
int maxBSONObjectSize) |
(package private) static OutMessage |
OutMessage.query(DBCollection collection,
int options,
int numToSkip,
int batchSize,
DBObject query,
DBObject fields,
ReadPreference readPref,
DBEncoder enc) |
(package private) static OutMessage |
OutMessage.query(DBCollection collection,
int options,
int numToSkip,
int batchSize,
DBObject query,
DBObject fields,
ReadPreference readPref,
DBEncoder enc,
int maxBSONObjectSize) |
static OutMessage |
OutMessage.remove(DBCollection collection,
DBEncoder encoder,
DBObject query,
boolean multi) |
private boolean |
DBTCPConnector.shouldRetryQuery(ReadPreference readPreference,
DBCollection coll,
java.io.IOException ioe,
int remainingRetries)
Deprecated.
|
static OutMessage |
OutMessage.update(DBCollection collection,
DBEncoder encoder,
boolean upsert,
boolean multi,
DBObject query,
DBObject o) |
| Constructor and Description |
|---|
BulkWriteOperation(boolean ordered,
DBCollection collection) |
DBCursor(DBCollection collection,
DBObject q,
DBObject k,
ReadPreference preference)
Initializes a new database cursor.
|
DefaultDBCallback(DBCollection coll)
Creates a new DefaultDBCallback.
|
GroupCommand(DBCollection collection,
DBObject keys,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize)
Creates a new group command.
|
GroupCommand(DBCollection collection,
java.lang.String keyf,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize)
Creates a new group command.
|
LazyDBCallback(DBCollection collection)
Construct an instance.
|
LazyWriteableDBCallback(DBCollection collection)
Deprecated.
Construct an instance.
|
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,
CommandResult raw)
Deprecated.
In the 3.0 version of the driver, this will be constructed only by the driver, and will therefore not have a public
constructor.
|
OutMessage(DBCollection collection,
DBEncoder enc,
DBObject query,
int options,
ReadPreference readPref,
int maxBSONObjectSize) |
OutMessage(DBCollection collection,
Mongo m,
OutMessage.OpCode opCode,
DBEncoder enc) |
OutMessage(DBCollection collection,
Mongo m,
OutMessage.OpCode opCode,
DBEncoder enc,
DBObject query,
int options,
ReadPreference readPref,
int maxBSONObjectSize) |
OutMessage(DBCollection collection,
OutMessage.OpCode opCode) |
OutMessage(DBCollection collection,
OutMessage.OpCode opCode,
DBEncoder enc) |
OutMessage(DBCollection collection,
OutMessage.OpCode opCode,
DBEncoder enc,
DBObject query) |
Response(ServerAddress addr,
DBCollection collection,
java.io.InputStream in,
DBDecoder decoder) |
| Modifier and Type | Field and Description |
|---|---|
protected DBCollection |
GridFS._chunkCollection
Deprecated.
Please use
GridFS.getChunksCollection() for access. |
protected DBCollection |
GridFS._filesCollection
Deprecated.
Please use
GridFS.getFilesCollection() for access. |
| Modifier and Type | Method and Description |
|---|---|
protected DBCollection |
GridFS.getChunksCollection()
Gets the
DBCollection in which the binary chunks are stored. |
protected DBCollection |
GridFS.getFilesCollection()
Gets the
DBCollection in which the file's metadata is stored. |