Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5427

Change getAll to return ordered map

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Core, Remote Protocols
    • None

      Currently our getAll returns a map of entries that exist in the cache in any order. We could enhance this to return a map where the entries are in the same iteration order of the Set (important when the user uses a LinkedHashSet). We could even do something like List<V> getAll(List<K>) to show better ordering as an option too.

      This has 2 immediate advantages.

      1. Remote getAll no longer requires to serialize all the keys in the response since it knows which values map to which keys based on what it sent.
      2. Query results need ordered List as well. See query/src/main/java/org/infinispan/query/impl/EntityLoader.java

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: