Class PForDeltaDocIdSet
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.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class PForDeltaDocIdSet : DocIdSet
Properties
Cardinality
Gets the number of documents in this DocIdSet in constant time.
Declaration
public int Cardinality { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsCacheable
This method is a hint for 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 property and return true.
Declaration
public override bool IsCacheable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
GetIterator()
Provides a DocIdSetIterator to access the set.
This implementation can return null if there
are no docs that match.
Declaration
public override DocIdSetIterator GetIterator()
Returns
| Type | Description |
|---|---|
| DocIdSetIterator |
Overrides
RamBytesUsed()
Return the memory usage of this instance.
Declaration
public long RamBytesUsed()
Returns
| Type | Description |
|---|---|
| long |