Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
Modifier and Type | Method and Description |
---|---|
CommandResult |
DB.command(DBObject command)
Executes a database command.
|
CommandResult |
DB.command(DBObject command,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject command,
ReadPreference readPreference)
Executes the command against the database with the given read preference.
|
CommandResult |
DB.command(DBObject command,
ReadPreference readPreference,
DBEncoder encoder)
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
|
CommandResult |
DB.command(java.lang.String command)
Executes a database command.
|
CommandResult |
DB.command(java.lang.String command,
ReadPreference readPreference)
Executes a database command.
|
CommandResult |
DB.doEval(java.lang.String code,
java.lang.Object... args)
Evaluates JavaScript functions on the database server.
|
(package private) CommandResult |
DB.executeCommand(BsonDocument commandDocument) |
(package private) CommandResult |
DB.executeCommand(BsonDocument commandDocument,
ReadPreference readPreference) |
CommandResult |
DBCollection.explainAggregate(java.util.List<? extends DBObject> pipeline,
AggregationOptions options)
Return the explain plan for the aggregation pipeline.
|
CommandResult |
Mongo.fsync(boolean async)
Forces the master server to fsync the RAM data to disk This is done automatically by the server at intervals, but can be forced for
better reliability.
|
CommandResult |
Mongo.fsyncAndLock()
Forces the master server to fsync the RAM data to disk, then lock all writes.
|
CommandResult |
DBCollection.getStats()
The collStats command returns a variety of storage statistics for a given collection
|
CommandResult |
DB.getStats()
Helper method for calling a 'dbStats' command.
|