Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-270

Proposal for a new List implementation: BackedList

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.2
    • None
    • List
    • None

    Description

      Here is a new List implementation named BackedList, to use for transparently accessing values of a generic data source as it were a normal List.
      This List implementation dynamically accesses data source values through a proper strategy object, keeping in memory only a limited, configurable, buffer of values.
      So, it is useful for:
      1) Providing a List-like view of different data source values.
      2) Avoiding to pre-load all values in a standard list, providing better performances and less memory consumption.

      As a side note, this list implementation is already used in production for implementing pagination over a relational data source.

      Attachments

        1. BackedListTest.java
          11 kB
          Sergio Bossa
        2. DataAccessStrategy.java
          0.8 kB
          Sergio Bossa
        3. BackedList.java
          9 kB
          Sergio Bossa

        Activity

          People

            Unassigned Unassigned
            sbtourist Sergio Bossa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: