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
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class FieldCacheDocIdSet : DocIdSet
Constructors
| Improve this Doc View SourceFieldCacheDocIdSet(Int32, IBits)
Declaration
public FieldCacheDocIdSet(int maxDoc, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxDoc | |
IBits | acceptDocs |
Fields
| Improve this Doc View Sourcem_acceptDocs
Declaration
protected readonly IBits m_acceptDocs
Field Value
Type | Description |
---|---|
IBits |
m_maxDoc
Declaration
protected readonly int m_maxDoc
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceBits
Declaration
public override sealed IBits Bits { get; }
Property Value
Type | Description |
---|---|
IBits |
Overrides
| Improve this Doc View SourceIsCacheable
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 SourceGetIterator()
Declaration
public override sealed DocIdSetIterator GetIterator()
Returns
Type | Description |
---|---|
DocIdSetIterator |
Overrides
| Improve this Doc View SourceMatchDoc(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 |