Show / Hide Table of Contents

    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
    DocIdSet
    FieldCacheDocIdSet
    Inherited Members
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>)
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>, Func<IBits>)
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>, Func<Boolean>)
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>, Func<IBits>, Func<Boolean>)
    Namespace: Lucene.Net.Search
    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
    Type Description
    IBits
    | 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
    Type Description
    IBits
    Overrides
    DocIdSet.Bits
    | 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
    DocIdSet.IsCacheable

    Methods

    | Improve this Doc View Source

    GetIterator()

    Declaration
    public override sealed DocIdSetIterator GetIterator()
    Returns
    Type Description
    DocIdSetIterator
    Overrides
    DocIdSet.GetIterator()
    | 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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)