lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rutherglen (JIRA)" <>
Subject [jira] Commented: (LUCENE-2662) BytesHash
Date Wed, 22 Sep 2010 15:34:34 GMT


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

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

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

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:
>             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:
For additional commands, e-mail:

View raw message