You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2019/04/29 05:04:00 UTC

[jira] [Commented] (SOLR-13432) Add .toString methods to BitDocSet and SortedIntDocSet

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

Shalin Shekhar Mangar commented on SOLR-13432:
----------------------------------------------

Here's a simple patch that adds toString method to both classes with size (number of docs) and ramUsed (human readable value of ramBytesUsed()).

> Add .toString methods to BitDocSet and SortedIntDocSet
> ------------------------------------------------------
>
>                 Key: SOLR-13432
>                 URL: https://issues.apache.org/jira/browse/SOLR-13432
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Major
>             Fix For: 8.1, master (9.0)
>
>         Attachments: SOLR-13432.patch
>
>
> Add .toString methods to BitDocSet and SortedIntDocSet. The motivation here is that the "showItems" property on FastLRUCache tries to show the items inside the cache. But the output is not useful because these two classes (used as values for filter cache) do not implement toString so the Object.toString is called.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org