Package com.mongodb.bulk
Class BulkWriteUpsert
- java.lang.Object
-
- com.mongodb.bulk.BulkWriteUpsert
-
public class BulkWriteUpsert extends Object
Represents an item in the bulk write that was upserted.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description BulkWriteUpsert(int index, org.bson.BsonValue id)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
org.bson.BsonValue
getId()
Gets the id of the upserted item.int
getIndex()
Gets the index of the upserted item based on the order it was added to the bulk write operation.int
hashCode()
String
toString()
-