Class InsertManyResult


  • public class InsertManyResult
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.Integer,​java.lang.Object> getInsertedIds()
      An unmodifiable map of the index of the inserted document to the id of the inserted document.
      boolean isAcknowledged()
      Returns true if the write was acknowledged.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isAcknowledged

        public boolean isAcknowledged()
        Returns true if the write was acknowledged.
        Returns:
        true if the write was acknowledged
      • getInsertedIds

        public java.util.Map<java.lang.Integer,​java.lang.Object> getInsertedIds()
        An unmodifiable map of the index of the inserted document to the id of the inserted document.

        Note: Inserting RawBsonDocuments does not generate an _id value and it's corresponding value will be null.

        Returns:
        A map of the index of the inserted document to the id of the inserted document.