Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
com.mongodb.gridfs |
GridFS tools.
|
Modifier and Type | Method and Description |
---|---|
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 query,
DBObject fields,
int numToSkip,
int batchSize)
Deprecated.
|
DBCursor |
DBCollection.find(DBObject query,
DBObject fields,
int numToSkip,
int batchSize,
int options)
Deprecated.
|
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.resetOptions()
resets the query options
|
DBCursor |
DBCursor.setDecoderFactory(DBDecoderFactory fact) |
DBCursor |
DBCursor.setOptions(int options)
sets the query option - see Bytes.QUERYOPTION_* for list
|
DBCursor |
DBCursor.setReadPreference(ReadPreference preference)
Sets the read preference for this cursor.
|
DBCursor |
DBCursor.skip(int n)
Discards a given number of elements at the beginning of the cursor.
|
DBCursor |
DBCursor.slaveOk()
Deprecated.
Replaced with
ReadPreference.secondaryPreferred() |
DBCursor |
DBCursor.snapshot()
Use snapshot mode for the query.
|
DBCursor |
DBCursor.sort(DBObject orderBy)
Sorts this cursor's elements.
|
Modifier and Type | Method and Description |
---|---|
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
|
DBCursor |
GridFS.getFileList(DBObject query,
DBObject sort)
gets a filtered list of files stored in this gridfs, sorted by param sort
|