public class BatchedWriteCommand extends Command
| Modifier and Type | Field and Description |
|---|---|
static VersionRange |
REQUIRED_VERSION_RANGE
The required server version range for the
BatchedWrite command. |
COMMAND_COLLECTIONHEADER_SIZE, myCollectionName, myDatabaseName| Constructor and Description |
|---|
BatchedWriteCommand(String databaseName,
String collectionName,
BatchedWrite.Bundle bundle)
Create a new BatchedWriteCommand.
|
BatchedWriteCommand(String databaseName,
String collectionName,
Document commandDocument)
Creates a new BatchedWriteCommand.
|
| 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.
|
BatchedWrite.Bundle |
getBundle()
Returns the bundle for the batched write.
|
int |
hashCode()
Computes a reasonable hash code.
|
getCommand, getOperationName, getRoutingDocument, isAllowJumbo, setAllowJumbo, size, toString, validateSize, write, writefinishHeader, getCollectionName, getDatabaseName, getReadPreference, getRequiredVersionRange, init, writeHeader, writeHeaderpublic static final VersionRange REQUIRED_VERSION_RANGE
BatchedWrite command.public BatchedWriteCommand(String databaseName, String collectionName, BatchedWrite.Bundle bundle)
databaseName - The name of the database.collectionName - The name of the collection the command is using. This should
be the real collection and not
$cmd if the real collection
is known.bundle - The bundle for the batched write.public BatchedWriteCommand(String databaseName, String collectionName, Document commandDocument)
BatchedWrite.BundledatabaseName - The name of the database.collectionName - The name of the collection the command is using. This should
be the real collection and not
$cmd if the real collection
is known.commandDocument - The batch command document.public boolean equals(Object object)
equals in class Commandobject - The object to compare to.Object.equals(java.lang.Object)public BatchedWrite.Bundle getBundle()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.