public class BulkWriteUpsert extends Object
Constructor and Description |
---|
BulkWriteUpsert(int index,
BsonValue id)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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() |
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()