Package com.mongodb.bulk
Class BulkWriteInsert
java.lang.Object
com.mongodb.bulk.BulkWriteInsert
Represents an item in the bulk write that was inserted.
- Since:
- 4.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BulkWriteInsert
Construct an instance.- Parameters:
index
- the index in the list of bulk write requests that the insert occurred inid
- the id of the document that was inserted as the result of the insert
-
-
Method Details
-
getIndex
public int getIndex()Gets the index of the inserted item based on the order it was added to the bulk write operation.- Returns:
- the index
-
getId
Gets the id of the inserted item.- Returns:
- the id
-
equals
-
hashCode
public int hashCode() -
toString
-