Class InsertManyResult


  • public class InsertManyResult
    extends Object
    The result of an insert many operation.
    • Constructor Detail

      • InsertManyResult

        public InsertManyResult​(Map<Long,​BsonValue> insertedIds)
        Constructs a result.
        Parameters:
        insertedIds - the _ids of the inserted documents arranged by the index of the document from the operation and its corresponding id.
    • Method Detail

      • getInsertedIds

        public Map<Long,​BsonValue> getInsertedIds()
        Returns the _ids of the inserted documents arranged by the index of the document from the operation and its corresponding id.
        Returns:
        the _ids of the inserted documents arranged by the index of the document from the operation and its corresponding id.