public class ParallelScanCommand extends Command implements CursorableMessage
parallelCollectionScan
commands.Modifier and Type | Field and Description |
---|---|
static Version |
REQUIRED_VERSION
The first version of MongoDB to support the
parallelCollectionScan command. |
COMMAND_COLLECTION
HEADER_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, write
finishHeader, getCollectionName, getDatabaseName, getReadPreference, getRequiredVersionRange, init, writeHeader, writeHeader
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCollectionName
getDatabaseName, getOperationName, getReadPreference, getRequiredVersionRange, size, validateSize, write, write
public 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 Command
object
- 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 CursorableMessage
public int getLimit()
Overridden to return 0 or no limit.
getLimit
in interface CursorableMessage
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.