Apache Lucene open-source search software
add javadoc
Michael McCandlessd8dd6c5d9080
diff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.javaindex 1e8219f4579..f757f965976 100644--- a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java@@ -402,6 +402,12 @@ public final class BytesRefHash {return hashPos;}+ /** Adds a "arbitrary" int offset instead of a BytesRef+ * term. This is used in the indexer to hold the hash for term+ * vectors, because they do not redundantly store the byte[] term+ * directly and instead reference the byte[] term+ * already stored by the postings BytesRefHash. See+ * add(int textStart) in TermsHashPerField. */public int addByPoolOffset(int offset) {assert bytesStart != null : "Bytesstart is null - not initialized";// final position