Package | Description |
---|---|
com.mongodb |
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,
com.mongodb.ReadPreference readPreference)
Executes the command against the database with the given read preference.
|
CommandResult |
DB.command(DBObject command,
com.mongodb.ReadPreference readPreference,
DBEncoder encoder)
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
|
CommandResult |
DB.command(String command)
Executes a database command.
|
CommandResult |
DB.command(String command,
com.mongodb.ReadPreference readPreference)
Executes a database command.
|
CommandResult |
DB.doEval(String code,
Object... args)
Evaluates JavaScript functions on the database server.
|
CommandResult |
DBCollection.explainAggregate(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.
|
Copyright © 2017. All rights reserved.