Show / Hide Table of Contents

    Class FilterDirectoryReader

    A FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.

    Subclasses should implement DoWrapDirectoryReader(DirectoryReader) to return an instance of the subclass.

    If the subclass wants to wrap the DirectoryReader's subreaders, it should also implement a FilterDirectoryReader.SubReaderWrapper subclass, and pass an instance to its base constructor.

    Inheritance
    System.Object
    IndexReader
    CompositeReader
    BaseCompositeReader<AtomicReader>
    DirectoryReader
    FilterDirectoryReader
    Inherited Members
    DirectoryReader.DEFAULT_TERMS_INDEX_DIVISOR
    DirectoryReader.m_directory
    DirectoryReader.Open(Directory)
    DirectoryReader.Open(Directory, Int32)
    DirectoryReader.Open(IndexWriter, Boolean)
    DirectoryReader.Open(IndexCommit)
    DirectoryReader.Open(IndexCommit, Int32)
    DirectoryReader.OpenIfChanged(DirectoryReader)
    DirectoryReader.OpenIfChanged(DirectoryReader, IndexCommit)
    DirectoryReader.OpenIfChanged(DirectoryReader, IndexWriter, Boolean)
    DirectoryReader.ListCommits(Directory)
    DirectoryReader.IndexExists(Directory)
    DirectoryReader.Directory
    BaseCompositeReader<AtomicReader>.GetTermVectors(Int32)
    BaseCompositeReader<AtomicReader>.NumDocs
    BaseCompositeReader<AtomicReader>.MaxDoc
    BaseCompositeReader<AtomicReader>.Document(Int32, StoredFieldVisitor)
    BaseCompositeReader<AtomicReader>.DocFreq(Term)
    BaseCompositeReader<AtomicReader>.TotalTermFreq(Term)
    BaseCompositeReader<AtomicReader>.GetSumDocFreq(String)
    BaseCompositeReader<AtomicReader>.GetDocCount(String)
    BaseCompositeReader<AtomicReader>.GetSumTotalTermFreq(String)
    BaseCompositeReader<AtomicReader>.ReaderIndex(Int32)
    BaseCompositeReader<AtomicReader>.ReaderBase(Int32)
    BaseCompositeReader<AtomicReader>.GetSequentialSubReaders()
    CompositeReader.ToString()
    CompositeReader.Context
    IndexReader.AddReaderClosedListener(IndexReader.IReaderClosedListener)
    IndexReader.RemoveReaderClosedListener(IndexReader.IReaderClosedListener)
    IndexReader.RegisterParentReader(IndexReader)
    IndexReader.RefCount
    IndexReader.IncRef()
    IndexReader.TryIncRef()
    IndexReader.DecRef()
    IndexReader.EnsureOpen()
    IndexReader.Equals(Object)
    IndexReader.GetHashCode()
    IndexReader.GetTermVector(Int32, String)
    IndexReader.NumDeletedDocs
    IndexReader.Document(Int32)
    IndexReader.Document(Int32, ISet<String>)
    IndexReader.HasDeletions
    IndexReader.Dispose()
    IndexReader.Dispose(Boolean)
    IndexReader.Leaves
    IndexReader.CoreCacheKey
    IndexReader.CombinedCoreAndDeletesKey
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class FilterDirectoryReader : DirectoryReader

    Constructors

    | Improve this Doc View Source

    FilterDirectoryReader(DirectoryReader)

    Create a new FilterDirectoryReader that filters a passed in DirectoryReader.

    Declaration
    public FilterDirectoryReader(DirectoryReader input)
    Parameters
    Type Name Description
    DirectoryReader input

    the DirectoryReader to filter

    | Improve this Doc View Source

    FilterDirectoryReader(DirectoryReader, FilterDirectoryReader.SubReaderWrapper)

    Create a new FilterDirectoryReader that filters a passed in DirectoryReader, using the supplied FilterDirectoryReader.SubReaderWrapper to wrap its subreader.

    Declaration
    public FilterDirectoryReader(DirectoryReader input, FilterDirectoryReader.SubReaderWrapper wrapper)
    Parameters
    Type Name Description
    DirectoryReader input

    the DirectoryReader to filter

    FilterDirectoryReader.SubReaderWrapper wrapper

    the FilterDirectoryReader.SubReaderWrapper to use to wrap subreaders

    Fields

    | Improve this Doc View Source

    m_input

    The filtered DirectoryReader

    Declaration
    protected readonly DirectoryReader m_input
    Field Value
    Type Description
    DirectoryReader

    Properties

    | Improve this Doc View Source

    IndexCommit

    Declaration
    public override IndexCommit IndexCommit { get; }
    Property Value
    Type Description
    IndexCommit
    Overrides
    DirectoryReader.IndexCommit
    | Improve this Doc View Source

    Version

    Declaration
    public override long Version { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    DirectoryReader.Version

    Methods

    | Improve this Doc View Source

    DoClose()

    Declaration
    protected override void DoClose()
    Overrides
    IndexReader.DoClose()
    | Improve this Doc View Source

    DoOpenIfChanged()

    Declaration
    protected override sealed DirectoryReader DoOpenIfChanged()
    Returns
    Type Description
    DirectoryReader
    Overrides
    DirectoryReader.DoOpenIfChanged()
    | Improve this Doc View Source

    DoOpenIfChanged(IndexCommit)

    Declaration
    protected override sealed DirectoryReader DoOpenIfChanged(IndexCommit commit)
    Parameters
    Type Name Description
    IndexCommit commit
    Returns
    Type Description
    DirectoryReader
    Overrides
    DirectoryReader.DoOpenIfChanged(IndexCommit)
    | Improve this Doc View Source

    DoOpenIfChanged(IndexWriter, Boolean)

    Declaration
    protected override sealed DirectoryReader DoOpenIfChanged(IndexWriter writer, bool applyAllDeletes)
    Parameters
    Type Name Description
    IndexWriter writer
    System.Boolean applyAllDeletes
    Returns
    Type Description
    DirectoryReader
    Overrides
    DirectoryReader.DoOpenIfChanged(IndexWriter, Boolean)
    | Improve this Doc View Source

    DoWrapDirectoryReader(DirectoryReader)

    Called by the DoOpenIfChanged() methods to return a new wrapped DirectoryReader.

    Implementations should just return an instance of themselves, wrapping the passed in DirectoryReader.

    Declaration
    protected abstract DirectoryReader DoWrapDirectoryReader(DirectoryReader input)
    Parameters
    Type Name Description
    DirectoryReader input

    the DirectoryReader to wrap

    Returns
    Type Description
    DirectoryReader

    the wrapped DirectoryReader

    | Improve this Doc View Source

    IsCurrent()

    Declaration
    public override bool IsCurrent()
    Returns
    Type Description
    System.Boolean
    Overrides
    DirectoryReader.IsCurrent()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)