public final class PForDeltaDocIdSet extends DocIdSet implements Accountable
DocIdSet
implementation based on pfor-delta encoding.
This implementation is inspired from LinkedIn's Kamikaze (http://data.linkedin.com/opensource/kamikaze) and Daniel Lemire's JavaFastPFOR (https://github.com/lemire/JavaFastPFOR).
On the contrary to the original PFOR paper, exceptions are encoded with FOR instead of Simple16.
Modifier and Type | Class and Description |
---|---|
static class |
PForDeltaDocIdSet.Builder
A builder for
PForDeltaDocIdSet . |
Modifier and Type | Method and Description |
---|---|
int |
cardinality()
Return the number of documents in this
DocIdSet in constant time. |
boolean |
isCacheable()
This method is a hint for
CachingWrapperFilter , if this DocIdSet
should be cached without copying it. |
DocIdSetIterator |
iterator()
Provides a
DocIdSetIterator to access the set. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
public boolean isCacheable()
DocIdSet
CachingWrapperFilter
, if this DocIdSet
should be cached without copying it. The default is to return
false
. If you have an own DocIdSet
implementation
that does its iteration very effective and fast without doing disk I/O,
override this method and return true
.isCacheable
in class DocIdSet
public DocIdSetIterator iterator()
DocIdSet
DocIdSetIterator
to access the set.
This implementation can return null
if there
are no docs that match.public int cardinality()
DocIdSet
in constant time.public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
ramBytesUsed
in class DocIdSet
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.