[infinispan-issues] [JBoss JIRA] (ISPN-5427) Change getAll to return ordered map

William Burns (JIRA) issues at jboss.org
Thu Apr 30 11:06:46 EDT 2015


     [ https://issues.jboss.org/browse/ISPN-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Burns updated ISPN-5427:
--------------------------------
    Description: 
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

  was:
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.

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



> Change getAll to return ordered map
> -----------------------------------
>
>                 Key: ISPN-5427
>                 URL: https://issues.jboss.org/browse/ISPN-5427
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Core, Remote Protocols
>            Reporter: William Burns
>            Assignee: William Burns
>             Fix For: 8.0.0.Final
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list