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

ASF subversion and git services commented on LUCENE-10506:
----------------------------------------------------------

Commit 972663cc1de4c273df99e3ed9dcf7a5c0d44065a in lucene's branch 
refs/heads/branch_9x from Luca Cavanna
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=972663cc1de ]

LUCENE-10506: change visibility of ProfilerCollector#deriveCollectorName to 
protected (#799)

This allows subclasses to extend how the inner collector name is derived.

> ProfilerCollector to support customizing how name is derived
> ------------------------------------------------------------
>
>                 Key: LUCENE-10506
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10506
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/sandbox
>            Reporter: Luca Cavanna
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> ProfilerCollector (part of the sandbox) has a private method called 
> deriveCollectorName that extracts the class simple name from the provided 
> collector and sets it as the name of the collector which becomes part of the 
> profile results later.
> While the default behaviour is reasonable, there are cases where it would be 
> useful to extend this logic, and perhaps not use class names, or enhance that 
> with more context that the collectors could provide. This could be achieved 
> by making the deriveCollectorName method protected.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to