Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2718

InsertMany with InsertOptions should allow for unordered data structure

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.6.1
    • API
    • None
    • Major Change

    Description

      Since methods like insertMany accept both a List of elements and an InsertManyOptions which may allow for unordered insertion the API should allow for unordered collections to be passed in instead of the Always ordered java.util.List.

      I'm attaching a PR where I propose for the methods that accept Lists of elements and InsertManyOptions to be changed from:

      void insertMany(List<? extends TDocument> documents, InsertManyOptions options);
      

      to:

      void insertMany(Collection<? extends TDocument> documents, InsertManyOptions options);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardoespsanto Ricardo Espirito Santo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: