Show / Hide Table of Contents

    Class ReaderUtil

    Common util methods for dealing with IndexReaders and IndexReaderContexts.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    ReaderUtil
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class ReaderUtil : object

    Methods

    | Improve this Doc View Source

    GetTopLevelContext(IndexReaderContext)

    Walks up the reader tree and return the given context's top level reader context, or in other words the reader tree's root context.

    Declaration
    public static IndexReaderContext GetTopLevelContext(IndexReaderContext context)
    Parameters
    Type Name Description
    IndexReaderContext context
    Returns
    Type Description
    IndexReaderContext
    | Improve this Doc View Source

    SubIndex(Int32, IList<AtomicReaderContext>)

    Returns index of the searcher/reader for document n in the array used to construct this searcher/reader.

    Declaration
    public static int SubIndex(int n, IList<AtomicReaderContext> leaves)
    Parameters
    Type Name Description
    System.Int32 n
    IList<AtomicReaderContext> leaves
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SubIndex(Int32, Int32[])

    Returns index of the searcher/reader for document n in the array used to construct this searcher/reader.

    Declaration
    public static int SubIndex(int n, int[] docStarts)
    Parameters
    Type Name Description
    System.Int32 n
    System.Int32[] docStarts
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)