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.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
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 class FieldCacheDocIdSet : DocIdSet
Constructors
| Improve this Doc View SourceFieldCacheDocIdSet(Int32, IBits)
Declaration
protected FieldCacheDocIdSet(int maxDoc, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxDoc | |
IBits | acceptDocs |
FieldCacheDocIdSet(Int32, IBits, Predicate<Int32>)
Declaration
public FieldCacheDocIdSet(int maxDoc, IBits acceptDocs, Predicate<int> matchDoc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxDoc | |
IBits | acceptDocs | |
System.Predicate<System.Int32> | matchDoc |
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 sealed override 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 sealed override bool IsCacheable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourceGetIterator()
Declaration
public sealed override DocIdSetIterator GetIterator()
Returns
Type | Description |
---|---|
DocIdSetIterator |
Overrides
| Improve this Doc View SourceMatchDoc(Int32)
This method checks, if a doc is a hit
Declaration
protected virtual bool MatchDoc(int doc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc |
Returns
Type | Description |
---|---|
System.Boolean |