Show / Hide Table of Contents

    Class OpenBitSetIterator

    An iterator to iterate over set bits in an OpenBitSet. this is faster than NextSetBit(Int64) for iterating over the complete set of bits, especially when the density of the bits set is high.

    Inheritance
    System.Object
    DocIdSetIterator
    OpenBitSetIterator
    Inherited Members
    DocIdSetIterator.GetEmpty()
    DocIdSetIterator.NO_MORE_DOCS
    DocIdSetIterator.SlowAdvance(Int32)
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class OpenBitSetIterator : DocIdSetIterator

    Constructors

    | Improve this Doc View Source

    OpenBitSetIterator(OpenBitSet)

    Declaration
    public OpenBitSetIterator(OpenBitSet obs)
    Parameters
    Type Name Description
    OpenBitSet obs
    | Improve this Doc View Source

    OpenBitSetIterator(Int64[], Int32)

    Declaration
    public OpenBitSetIterator(long[] bits, int numWords)
    Parameters
    Type Name Description
    System.Int64[] bits
    System.Int32 numWords

    Properties

    | Improve this Doc View Source

    DocID

    Declaration
    public override int DocID { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    DocIdSetIterator.DocID

    Methods

    | Improve this Doc View Source

    Advance(Int32)

    Declaration
    public override int Advance(int target)
    Parameters
    Type Name Description
    System.Int32 target
    Returns
    Type Description
    System.Int32
    Overrides
    DocIdSetIterator.Advance(Int32)
    | Improve this Doc View Source

    GetCost()

    Declaration
    public override long GetCost()
    Returns
    Type Description
    System.Int64
    Overrides
    DocIdSetIterator.GetCost()
    | Improve this Doc View Source

    NextDoc()

    Declaration
    public override int NextDoc()
    Returns
    Type Description
    System.Int32
    Overrides
    DocIdSetIterator.NextDoc()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)