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

Simplify Iterable API interface hierarchy to eliminate method duplication

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Internal
    • None

    Description

      The Iterable API currently contains duplicative methods in various interfaces, including FindIterable, AggregateIterable, ListIndexesIterable, DistinctIterable, DatabaseIterable, and ChangeStreamIterable. These duplications impact code maintenance and can lead to inconsistencies.

      Introduce internal interfaces and abstract classes, if necessary, to consolidate the duplicative methods and achieve a cleaner design without compromising backward and binary compatibility.  

      The objective is to improve code maintainability and consistency.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slav.babanin@mongodb.com Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: