You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/07/16 10:11:00 UTC
[jira] [Commented] (LUCENE-8400) Make BytesRefHash.compact public
and @lucene.internal
[ https://issues.apache.org/jira/browse/LUCENE-8400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545030#comment-16545030 ]
Adrien Grand commented on LUCENE-8400:
--------------------------------------
I don't mind making it public. The whole class is already tagged with @lucene.internal anyway.
> Make BytesRefHash.compact public and @lucene.internal
> -----------------------------------------------------
>
> Key: LUCENE-8400
> URL: https://issues.apache.org/jira/browse/LUCENE-8400
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Major
>
> {{BytesRefHash}} is an internal Lucene class, essentially providing a compact representation of {{Map<BytesRef,int>}}. It already has a public {{sort}} method, which destructively compacts all entries and returns them, but its {{compact}} method (which compacts all entries without the cost of sorting) is not public ... I'd like to make it public, and also mark it {{@lucene.internal}}.
--
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