Package com.mongodb.bulk
Class InsertRequest
java.lang.Object
com.mongodb.bulk.WriteRequest
com.mongodb.bulk.InsertRequest
Deprecated.
A representation of a document to insert.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mongodb.bulk.WriteRequest
WriteRequest.Type
-
Constructor Summary
ConstructorsConstructorDescriptionInsertRequest
(BsonDocument document) Deprecated.Construct an instance with the given document. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the document to insert.getType()
Deprecated.Gets the type of the write.
-
Constructor Details
-
InsertRequest
Deprecated.Construct an instance with the given document.- Parameters:
document
- the document, which may not be null
-
-
Method Details
-
getDocument
Deprecated.Gets the document to insert.- Returns:
- the document
-
getType
Deprecated.Description copied from class:WriteRequest
Gets the type of the write.- Specified by:
getType
in classWriteRequest
- Returns:
- the type
-