public class Command extends Query
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_COLLECTION
The collection to use when issuing commands to the database.
|
AWAIT_DATA_FLAG_BIT, DEFAULT_BATCH_SIZE, EXHAUST_FLAG_BIT, NO_CURSOR_TIMEOUT_FLAG_BIT, OPLOG_REPLAY_FLAG_BIT, PARTIAL_FLAG_BIT, REPLICA_OK_FLAG_BIT, TAILABLE_CURSOR_FLAG_BIT
HEADER_SIZE, myCollectionName, myDatabaseName
Constructor and Description |
---|
Command(String databaseName,
Document commandDocument)
Create a new Command.
|
Command(String databaseName,
Document commandDocument,
ReadPreference readPreference)
Create a new Command.
|
equals, getBatchSize, getLimit, getNumberToReturn, getNumberToSkip, getQuery, getReturnFields, hashCode, isAwaitData, isBatchSizeSet, isExhaust, isLimitSet, isNoCursorTimeout, isPartial, isTailable, validateSize, write
getCollectionName, getDatabaseName, getReadPreference, init, writeHeader
public static final String COMMAND_COLLECTION
public Command(String databaseName, Document commandDocument)
databaseName
- The name of the database.commandDocument
- The command document containing the command and options.public Command(String databaseName, Document commandDocument, ReadPreference readPreference)
databaseName
- The name of the database.commandDocument
- The command document containing the command and options.readPreference
- The preference for which servers to use to retrieve the
results.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.