public final class InsertRequest extends WriteRequest
WriteRequest.Type
Constructor | Description |
---|---|
InsertRequestβ(BsonDocument document) |
Construct an instance with the given document.
|
Modifier and Type | Method | Description |
---|---|---|
BsonDocument |
getDocumentβ() |
Gets the document to insert.
|
WriteRequest.Type |
getTypeβ() |
Gets the type of the write.
|
public InsertRequestβ(BsonDocument document)
document
- the document, which may not be nullpublic BsonDocument getDocumentβ()
public WriteRequest.Type getTypeβ()
WriteRequest
getType
in class WriteRequest