Class FieldCacheDocIdSet
Base class for DocIdSet to be used with IFieldCache. The implementation
of its iterator is very stupid and slow if the implementation of the
MatchDoc(Int32) method is not optimized, as iterators simply increment
the document id until MatchDoc(Int32) returns true
. Because of this
MatchDoc(Int32) must be as fast as possible and in no case do any
I/O.
This is a Lucene.NET INTERNAL API, use at your own risk
Inheritance
System.Object
FieldCacheDocIdSet
Assembly: Lucene.Net.dll
Syntax
public abstract class FieldCacheDocIdSet : DocIdSet
Constructors
|
Improve this Doc
View Source
FieldCacheDocIdSet(Int32, IBits)
Declaration
public FieldCacheDocIdSet(int maxDoc, IBits acceptDocs)
Parameters
Type |
Name |
Description |
System.Int32 |
maxDoc |
|
IBits |
acceptDocs |
|
Fields
|
Improve this Doc
View Source
m_acceptDocs
Declaration
protected readonly IBits m_acceptDocs
Field Value
|
Improve this Doc
View Source
m_maxDoc
Declaration
protected readonly int m_maxDoc
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
Bits
Declaration
public override sealed IBits Bits { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsCacheable
This DocIdSet is always cacheable (does not go back
to the reader for iteration)
Declaration
public override sealed bool IsCacheable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
|
Improve this Doc
View Source
GetIterator()
Declaration
public override sealed DocIdSetIterator GetIterator()
Returns
Overrides
|
Improve this Doc
View Source
MatchDoc(Int32)
This method checks, if a doc is a hit
Declaration
protected abstract bool MatchDoc(int doc)
Parameters
Type |
Name |
Description |
System.Int32 |
doc |
|
Returns
Type |
Description |
System.Boolean |
|