public class BulkWriteUpsert extends Object
BulkWriteRequestBuilder.upsert()
Constructor and Description |
---|
BulkWriteUpsert(int index,
Object id)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
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, Object id)
index
- the index of the item that was upsertedid
- the value of the _id of the upserted itempublic int getIndex()
public Object getId()