org.apache.lucene.util.packed
Class EliasFanoDocIdSet
java.lang.Object
org.apache.lucene.search.DocIdSet
org.apache.lucene.util.packed.EliasFanoDocIdSet
public class EliasFanoDocIdSet
- extends DocIdSet
A DocIdSet in Elias-Fano encoding.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
Methods inherited from class org.apache.lucene.search.DocIdSet |
bits |
EliasFanoDocIdSet
public EliasFanoDocIdSet(int numValues,
int upperBound)
encodeFromDisi
public void encodeFromDisi(DocIdSetIterator disi)
throws IOException
- Throws:
IOException
iterator
public DocIdSetIterator iterator()
- Provides a
DocIdSetIterator
to access encoded document ids.
- Specified by:
iterator
in class DocIdSet
isCacheable
public boolean isCacheable()
- This DocIdSet implementation is cacheable. @return
true
- Overrides:
isCacheable
in class DocIdSet
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.