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

Adrien Grand commented on LUCENE-5095:
--------------------------------------

Actually, I would love if we exposed this kind of information in a structured 
way: not just a toString() method but rather something like optional methods 
returning -1 by default that could be used by people implementing formats to 
report on the disk and memory size used by their format. It is very common that 
users wonder about what is eating their disk or memory capacity and I feel like 
such monitoring methods would be very useful.
                
> Add useful toString()s to DocValues impls
> -----------------------------------------
>
>                 Key: LUCENE-5095
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5095
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Robert Muir
>
> Currently, you have no insight into what these are doing (what kind of 
> compression does your numerics have, how much RAM are the datastructures 
> taking up, so on.
> So I think we should add some cheap toString's (nothing heavy), things like
> {code}
> @Override
> public String toString() {
>   return "Lucene42Numeric(compression=TABLE,bpv=" + bitsPerValue)";
> }
> {code}
> and so on. Maybe we could think about printing them from CheckIndex when 
> verbose=true too.

--
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to