[
https://issues.apache.org/jira/browse/LUCENE-5524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978590#comment-13978590
]
ASF GitHub Bot commented on LUCENE-5524:
----------------------------------------
GitHub user PaulElschot opened a pull request:
https://github.com/apache/lucene-solr/pull/45
Squashed commit of efbytesref, 20140422
LUCENE-5524
This PR adds encoding/decoding an Elias-Fano sequence in/from a BytesRef.
This PR adds three classes:
EliasFanoLongs and EliasFanoBytes both extending EliasFanoSequence,
and the long[] encoding is moved from EliasFanoEncoder into EliasFanoLongs.
The EliasFanoDecoder is changed to use these classes.
(There are also some improved variable names, this makes the changes
somewhat less easy to read...)
The recent fix for the number of index entry bits is included.
This PR also adds methods readVlong and writeVLong to BytesRef. I
considered keeping them local in EliasFanoBytes, but these fit better in
BytesRef I think.
This PR also changes EliasFanoDocIdSet to use EliasFanoLongs, and to fall
back to a FixedBitSet when too many bits are set. This fall back could be a
separate issue, but that would be more work now.
I hope I got the generics and diamonds right...
This is a squashed commit against trunk, 12 March 2014
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/PaulElschot/lucene-solr efbytesref-201404a
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/45.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #45
----
commit a214913ac2143277d9539a3e9e3d1cd1662b754a
Author: Paul Elschot <[email protected]>
Date: 2014-03-12T21:21:13Z
Squashed commit of efbytesref, 20140312
----
> Elias-Fano sequence also on BytesRef
> ------------------------------------
>
> Key: LUCENE-5524
> URL: https://issues.apache.org/jira/browse/LUCENE-5524
> Project: Lucene - Core
> Issue Type: New Feature
> Components: core/other
> Reporter: Paul Elschot
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]