You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2013/04/10 00:43:46 UTC
svn commit: r1466275 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
Author: mikemccand
Date: Tue Apr 9 22:43:46 2013
New Revision: 1466275
URL: http://svn.apache.org/r1466275
Log:
add javadoc
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java?rev=1466275&r1=1466274&r2=1466275&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java Tue Apr 9 22:43:46 2013
@@ -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