public final class InsertRequest extends WriteRequest
WriteRequest.Type| 构造器和说明 |
|---|
InsertRequest(BsonDocument document)
Construct an instance with the given document.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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()
WriteRequestgetType 在类中 WriteRequest