Package com.mongodb.bulk
Class InsertRequest
- java.lang.Object
-
- com.mongodb.bulk.WriteRequest
-
- com.mongodb.bulk.InsertRequest
-
Deprecated.
@Deprecated public final class InsertRequest extends WriteRequest
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
Constructors Constructor Description InsertRequest(BsonDocument document)
Deprecated.Construct an instance with the given document.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BsonDocument
getDocument()
Deprecated.Gets the document to insert.WriteRequest.Type
getType()
Deprecated.Gets the type of the write.
-
-
-
Constructor Detail
-
InsertRequest
public InsertRequest(BsonDocument document)
Deprecated.Construct an instance with the given document.- Parameters:
document
- the document, which may not be null
-
-
Method Detail
-
getDocument
public BsonDocument getDocument()
Deprecated.Gets the document to insert.- Returns:
- the document
-
getType
public WriteRequest.Type getType()
Deprecated.Description copied from class:WriteRequest
Gets the type of the write.- Specified by:
getType
in classWriteRequest
- Returns:
- the type
-
-