Class RemoteInsertManyResult

  • Direct Known Subclasses:
    SyncInsertManyResult

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

      • RemoteInsertManyResult

        public RemoteInsertManyResult​(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.