pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Whitcomb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIVOT-875) JSON should support using pivot.collections.Map directly
Date Fri, 05 Oct 2012 22:34:02 GMT
Roger Whitcomb created PIVOT-875:
------------------------------------

             Summary: JSON should support using pivot.collections.Map directly
                 Key: PIVOT-875
                 URL: https://issues.apache.org/jira/browse/PIVOT-875
             Project: Pivot
          Issue Type: Improvement
          Components: core-json
    Affects Versions: 2.0.2
         Environment: All
            Reporter: Roger Whitcomb
            Priority: Trivial
             Fix For: 2.0.3


When supplying a pivot.collections.Map as the data object for a TableView, the data is fetched
for each row using JSON.get(...).  However, this method will default to using the BeanAdapter
for anything other than a java.util.Map, which results in values like "class", "capacity",
"count" and "comparator" fetching the values for the Map object instead of using the "get"
method of the actual map to get the values.
This fix will likely speed things up (a bit) because the first "if" in the chain will now
succeed for Pivot Map-based objects, instead of having to fail and do three other tests before
getting to the "dictionary.get" for these objects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message