public class ParallelScanCommand extends Command implements CursorableMessage
parallelCollectionScan commands.| Modifier and Type | Field and Description | 
|---|---|
| static Version | REQUIRED_VERSIONThe first version of MongoDB to support the
  parallelCollectionScancommand. | 
COMMAND_COLLECTIONHEADER_SIZE, myCollectionName, myDatabaseName| Constructor and Description | 
|---|
| ParallelScanCommand(ParallelScan command,
                   String databaseName,
                   String collectionName,
                   Document commandDocument,
                   ReadPreference readPreference)Create a new ParallelScanCommand. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object)Determines if the passed object is of this same type as this object and
 if so that its fields are equal. | 
| int | getBatchSize()Returns the number of documents to be returned in each batch of results. | 
| int | getLimit()Returns the total number of documents to be returned. | 
| int | hashCode()Computes a reasonable hash code. | 
getCommand, getOperationName, getRoutingDocument, isAllowJumbo, setAllowJumbo, size, toString, validateSize, write, writefinishHeader, getCollectionName, getDatabaseName, getReadPreference, getRequiredVersionRange, init, writeHeader, writeHeaderclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCollectionNamegetDatabaseName, getOperationName, getReadPreference, getRequiredVersionRange, size, validateSize, write, writepublic static final Version REQUIRED_VERSION
parallelCollectionScan command.public ParallelScanCommand(ParallelScan command, String databaseName, String collectionName, Document commandDocument, ReadPreference readPreference)
command - The original request.databaseName - The name of the database.collectionName - The name of the collection to run the scan on.commandDocument - The command document containing the command and options.readPreference - The read preference for the command.public boolean equals(Object object)
equals in class Commandobject - The object to compare to.Object.equals(java.lang.Object)public int getBatchSize()
Overridden to return 0 or the default batch size.
getBatchSize in interface CursorableMessagepublic int getLimit()
Overridden to return 0 or no limit.
getLimit in interface CursorableMessageCopyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.