You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2018/07/19 08:41:47 UTC
[46/50] [abbrv] lucene-solr:jira/solr-12509: LUCENE-8400: make
BytesRefHash.compact public
LUCENE-8400: make BytesRefHash.compact public
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a2f113c5
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a2f113c5
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a2f113c5
Branch: refs/heads/jira/solr-12509
Commit: a2f113c5c65ad2a9cacc45a397f4e33eb403cadb
Parents: 331ccf3
Author: Mike McCandless <mi...@apache.org>
Authored: Wed Jul 18 05:53:59 2018 -0400
Committer: Mike McCandless <mi...@apache.org>
Committed: Wed Jul 18 05:53:59 2018 -0400
----------------------------------------------------------------------
lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a2f113c5/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
index c9eed4e..6200fc5 100644
--- a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
@@ -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++) {