Show / Hide Table of Contents

    Class IndexReaderContext

    A struct like class that represents a hierarchical relationship between IndexReader instances.

    Inheritance
    System.Object
    IndexReaderContext
    AtomicReaderContext
    CompositeReaderContext
    Inherited Members
    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.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class IndexReaderContext

    Properties

    | Improve this Doc View Source

    Children

    Returns the context's children iff this context is a composite context otherwise null.

    Declaration
    public abstract IList<IndexReaderContext> Children { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<IndexReaderContext>
    | Improve this Doc View Source

    DocBaseInParent

    the doc base for this reader in the parent, 0 if parent is null

    Declaration
    public int DocBaseInParent { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IsTopLevel

    true if this context struct represents the top level reader within the hierarchical context

    Declaration
    public bool IsTopLevel { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Leaves

    Returns the context's leaves if this context is a top-level context. For convenience, if this is an AtomicReaderContext this returns itself as the only leaf.

    Note: this is convenience method since leaves can always be obtained by walking the context tree using Children.

    Declaration
    public abstract IList<AtomicReaderContext> Leaves { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<AtomicReaderContext>
    Exceptions
    Type Condition
    System.InvalidOperationException

    if this is not a top-level context.

    See Also
    Children
    | Improve this Doc View Source

    OrdInParent

    the ord for this reader in the parent, 0 if parent is null

    Declaration
    public int OrdInParent { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Parent

    The reader context for this reader's immediate parent, or null if none

    Declaration
    public CompositeReaderContext Parent { get; }
    Property Value
    Type Description
    CompositeReaderContext
    | Improve this Doc View Source

    Reader

    Returns the IndexReader, this context represents.

    Declaration
    public abstract IndexReader Reader { get; }
    Property Value
    Type Description
    IndexReader

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)