incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tommaso Teofili (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRECTMEMORY-43) Cache should allow key objects instead of plain string
Date Thu, 16 Feb 2012 11:14:59 GMT

    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209276#comment-13209276
] 

Tommaso Teofili commented on DIRECTMEMORY-43:
---------------------------------------------

bq . didn't find a test which documents the need of this case. 

If you take a look at the examples module you can find:

{noformat}
@Test
    public void testPut()
    {
        try
        {
            QueryResultKey queryResultKey =...
            DocValues docValues = ...
            solrOffHeapCache.put( queryResultKey, docValues );
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            fail( e.getLocalizedMessage() );
        }
    }
{noformat}

inside SolrOffHeapCacheTest under examples test sources.
The SolrCache<K,V> interface has generics so the impl using DM is SolrOffHeapCache<K,V>
and consequently it'd be very good if we could have coherent behavior in the underlying DM
Cache
                
> Cache should allow key objects instead of plain string
> ------------------------------------------------------
>
>                 Key: DIRECTMEMORY-43
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-43
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>            Reporter: Maurizio Cucchiara
>            Assignee: Maurizio Cucchiara
>         Attachments: DIRECTMEMORY-43.patch
>
>
> See http://goo.gl/D4SRN

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message