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