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