add javadoc

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1466275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-04-09 22:43:46 +00:00
parent b7e58e8efb
commit d8dd6c5d90
1 changed files with 6 additions and 0 deletions

View File

@ -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