Show / Hide Table of Contents

    Class BitsFilteredDocIdSet

    This implementation supplies a filtered DocIdSet, that excludes all docids which are not in a IBits instance. This is especially useful in Filter to apply the Lucene.Net.Search.BitsFilteredDocIdSet.acceptDocs passed to GetDocIdSet(AtomicReaderContext, IBits) before returning the final DocIdSet.

    Inheritance
    System.Object
    DocIdSet
    FilteredDocIdSet
    BitsFilteredDocIdSet
    Inherited Members
    FilteredDocIdSet.IsCacheable
    FilteredDocIdSet.Bits
    FilteredDocIdSet.GetIterator()
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>)
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>, Func<IBits>)
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>, Func<Boolean>)
    DocIdSet.NewAnonymous(Func<DocIdSetIterator>, Func<IBits>, Func<Boolean>)
    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 sealed class BitsFilteredDocIdSet : FilteredDocIdSet

    Constructors

    | Improve this Doc View Source

    BitsFilteredDocIdSet(DocIdSet, IBits)

    Constructor.

    Declaration
    public BitsFilteredDocIdSet(DocIdSet innerSet, IBits acceptDocs)
    Parameters
    Type Name Description
    DocIdSet innerSet

    Underlying DocIdSet

    IBits acceptDocs

    Allowed docs, all docids not in this set will not be returned by this DocIdSet

    Methods

    | Improve this Doc View Source

    Match(Int32)

    Declaration
    protected override bool Match(int docid)
    Parameters
    Type Name Description
    System.Int32 docid
    Returns
    Type Description
    System.Boolean
    Overrides
    FilteredDocIdSet.Match(Int32)
    | Improve this Doc View Source

    Wrap(DocIdSet, IBits)

    Convenience wrapper method: If acceptDocs == null it returns the original set without wrapping.

    Declaration
    public static DocIdSet Wrap(DocIdSet set, IBits acceptDocs)
    Parameters
    Type Name Description
    DocIdSet set

    Underlying DocIdSet. If null, this method returns null

    IBits acceptDocs

    Allowed docs, all docids not in this set will not be returned by this DocIdSet. If null, this method returns the original set without wrapping.

    Returns
    Type Description
    DocIdSet

    Extension Methods

    Number.IsNumber(Object)

    See Also

    DocIdSet
    Filter
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)