Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ReaderUtil

    Common util methods for dealing with IndexReaders and IndexReaderContexts.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    object
    ReaderUtil
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class ReaderUtil

    Methods

    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

    SubIndex(int, 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
    int n
    IList<AtomicReaderContext> leaves
    Returns
    Type Description
    int

    SubIndex(int, int[])

    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
    int n
    int[] docStarts
    Returns
    Type Description
    int
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.