public class BulkWriteUpsert
extends java.lang.Object
| Constructor and Description |
|---|
BulkWriteUpsert(int index,
BsonValue id)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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() |
java.lang.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()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved