public class BulkWriteUpsert extends Object
Constructor and Description |
---|
BulkWriteUpsert(int index,
BsonValue id)
Construct an instance.
|
public BulkWriteUpsert(int index, BsonValue id)
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 upsertpublic int getIndex()
public BsonValue getId()