[ 
https://issues.apache.org/jira/browse/LUCENE-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913622#action_12913622
 ] 

Jason Rutherglen commented on LUCENE-2662:
------------------------------------------

The THPF is hashing tokens for use in the indexing RAM buffer and the creation 
of postings, ie, the lookup of term byte[]s to term ids.  The hash component is 
currently interwoven into THPF.  

Here's some of the variables being used in THPF.

{code}
private int postingsHashSize = 4;
private int postingsHashHalfSize = postingsHashSize/2;
private int postingsHashMask = postingsHashSize-1;
private int[] postingsHash;
{code}

Also there's the methods rehashPostings, shrinkHash, postingEquals, and add(int 
textStart) has the lookup.  

We'll probably also need to separate out the quick sort implementation in THPF, 
I'll add that to this issue.

> BytesHash
> ---------
>
>                 Key: LUCENE-2662
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2662
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: Realtime Branch
>            Reporter: Jason Rutherglen
>            Priority: Minor
>             Fix For: Realtime Branch
>
>         Attachments: LUCENE-2662.patch
>
>
> This issue will have the BytesHash separated out from LUCENE-2186

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to