LUCENE-8400: make BytesRefHash.compact public

This commit is contained in:
Mike McCandless 2018-07-18 05:53:59 -04:00
parent 331ccf3910
commit a2f113c5c6
1 changed files with 3 additions and 1 deletions

View File

@ -130,8 +130,10 @@ public final class BytesRefHash {
* Note: This is a destructive operation. {@link #clear()} must be called in
* order to reuse this {@link BytesRefHash} instance.
* </p>
*
* @lucene.internal
*/
int[] compact() {
public int[] compact() {
assert bytesStart != null : "bytesStart is null - not initialized";
int upto = 0;
for (int i = 0; i < hashSize; i++) {