[infinispan-issues] [JBoss JIRA] (ISPN-5167) Cache.size() returns cluster-wide entry size in int and overflow

William Burns (JIRA) issues at jboss.org
Tue Jun 2 11:34:03 EDT 2015


    [ https://issues.jboss.org/browse/ISPN-5167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073285#comment-13073285 ] 

William Burns edited comment on ISPN-5167 at 6/2/15 11:33 AM:
--------------------------------------------------------------

Takayoshi, with ISPN 8 we have streams.  Internally their API defines .count which returns a long.  Is it sufficient for you to just call {code} cache.keySet().stream().count(){code} to get the size as a long?


was (Author: william.burns):
Takayoshi, with ISPN 8 we have streams.  Internally their API defines .count which returns a long.  Is it sufficient for you to just call cache.keySet().stream().count() to get the size as a long?

> Cache.size() returns cluster-wide entry size in int and overflow
> ----------------------------------------------------------------
>
>                 Key: ISPN-5167
>                 URL: https://issues.jboss.org/browse/ISPN-5167
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 7.0.3.Final
>            Reporter: Takayoshi Kimura
>            Assignee: William Burns
>
> We have a large cluster and a cache will have number of entries > Integer.MAX_VALUE in near future.
> It would be great if we have an additional method which returns size in long type.



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


More information about the infinispan-issues mailing list