mirror of https://github.com/apache/lucene.git
LUCENE-8400: make BytesRefHash.compact public
This commit is contained in:
parent
331ccf3910
commit
a2f113c5c6
|
@ -130,8 +130,10 @@ public final class BytesRefHash {
|
||||||
* Note: This is a destructive operation. {@link #clear()} must be called in
|
* Note: This is a destructive operation. {@link #clear()} must be called in
|
||||||
* order to reuse this {@link BytesRefHash} instance.
|
* order to reuse this {@link BytesRefHash} instance.
|
||||||
* </p>
|
* </p>
|
||||||
|
*
|
||||||
|
* @lucene.internal
|
||||||
*/
|
*/
|
||||||
int[] compact() {
|
public int[] compact() {
|
||||||
assert bytesStart != null : "bytesStart is null - not initialized";
|
assert bytesStart != null : "bytesStart is null - not initialized";
|
||||||
int upto = 0;
|
int upto = 0;
|
||||||
for (int i = 0; i < hashSize; i++) {
|
for (int i = 0; i < hashSize; i++) {
|
||||||
|
|
Loading…
Reference in New Issue