class DeleteCommandMessage extends BaseWriteCommandMessage
RequestMessage.EncodingMetadata, RequestMessage.OpCode| Modifier and Type | Field and Description |
|---|---|
private java.util.List<DeleteRequest> |
deletes |
REQUEST_ID| Constructor and Description |
|---|
DeleteCommandMessage(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
MessageSettings settings,
java.util.List<DeleteRequest> deletes)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getCommandName()
Gets the name of the write command
|
protected FieldNameValidator |
getFieldNameValidator()
Gets the field name validator to apply.
|
int |
getItemCount()
Gets the number of write requests left to encode.
|
java.util.List<DeleteRequest> |
getRequests()
Gets the list of requests.
|
protected BaseWriteCommandMessage |
writeTheWrites(BsonOutput bsonOutput,
int commandStartPosition,
BsonBinaryWriter writer)
Write the list of writes to the output after the write command prologue has been written.
|
encode, encodeMessageBody, encodeMessageBodyWithMetadata, exceedsLimits, getBypassDocumentValidation, getWriteConcern, getWriteNamespace, isOrderedaddCollectibleDocument, addDocument, backpatchMessageLength, encodeWithMetadata, getCodec, getCollectionName, getCurrentGlobalId, getId, getNamespace, getOpCode, getSettings, writeMessagePrologueprivate final java.util.List<DeleteRequest> deletes
public DeleteCommandMessage(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, MessageSettings settings, java.util.List<DeleteRequest> deletes)
namespace - the namespaceordered - whether the writes are orderedwriteConcern - the write concernsettings - the message settingsdeletes - the list of delete requestspublic int getItemCount()
BaseWriteCommandMessagegetItemCount in class BaseWriteCommandMessageprotected FieldNameValidator getFieldNameValidator()
BaseWriteCommandMessagegetFieldNameValidator in class BaseWriteCommandMessagepublic java.util.List<DeleteRequest> getRequests()
protected java.lang.String getCommandName()
BaseWriteCommandMessagegetCommandName in class BaseWriteCommandMessageprotected BaseWriteCommandMessage writeTheWrites(BsonOutput bsonOutput, int commandStartPosition, BsonBinaryWriter writer)
BaseWriteCommandMessagewriteTheWrites in class BaseWriteCommandMessagebsonOutput - the BSON outputcommandStartPosition - the position in the output where the command document startswriter - the writer