|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use DBCursor | |
|---|---|
| com.mongodb | Main package with core files. |
| com.mongodb.gridfs | GridFS tools. |
| Uses of DBCursor in com.mongodb |
|---|
| Methods in com.mongodb that return DBCursor | |
|---|---|
DBCursor |
DBCursor.addOption(int option)
adds a query option - see Bytes.QUERYOPTION_* for list |
DBCursor |
DBCursor.addSpecial(String name,
Object o)
adds a special operator like $maxScan or $returnKey e.g. |
DBCursor |
DBCursor.batchSize(int n)
Limits the number of elements returned in one batch. |
DBCursor |
DBCursor.copy()
Creates a copy of an existing database cursor. |
DBCursor |
DBCollection.find()
Queries for all objects in this collection. |
DBCursor |
DBCollection.find(DBObject ref)
Queries for an object in this collection. |
DBCursor |
DBCollection.find(DBObject ref,
DBObject keys)
Queries for an object in this collection. |
DBCursor |
DBCollection.find(DBObject ref,
DBObject fields,
int numToSkip,
int batchSize)
Finds objects from the database that match a query. |
DBCursor |
DBCollection.find(DBObject query,
DBObject fields,
int numToSkip,
int batchSize,
int options)
Calls DBCollection.find(com.mongodb.DBObject, com.mongodb.DBObject, int, int) and applies the query options |
DBCursor |
DBCursor.hint(DBObject indexKeys)
Informs the database of indexed fields of the collection in order to improve performance. |
DBCursor |
DBCursor.hint(String indexName)
Informs the database of an indexed field of the collection in order to improve performance. |
DBCursor |
DBCursor.limit(int n)
Limits the number of elements returned. |
DBCursor |
DBCursor.skip(int n)
Discards a given number of elements at the beginning of the cursor. |
DBCursor |
DBCursor.slaveOk()
makes this query ok to run on a slave node |
DBCursor |
DBCursor.snapshot()
Use snapshot mode for the query. |
DBCursor |
DBCursor.sort(DBObject orderBy)
Sorts this cursor's elements. |
| Uses of DBCursor in com.mongodb.gridfs |
|---|
| Methods in com.mongodb.gridfs that return DBCursor | |
|---|---|
DBCursor |
GridFS.getFileList()
gets the list of files stored in this gridfs, sorted by filename |
DBCursor |
GridFS.getFileList(DBObject query)
gets a filtered list of files stored in this gridfs, sorted by filename |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||