Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AssertingDirectoryReader

    A Lucene.Net.Index.DirectoryReader that wraps all its subreaders with AssertingAtomicReader

    Inheritance
    object
    IndexReader
    CompositeReader
    BaseCompositeReader<AtomicReader>
    DirectoryReader
    FilterDirectoryReader
    AssertingDirectoryReader
    Implements
    IDisposable
    Inherited Members
    FilterDirectoryReader.m_input
    FilterDirectoryReader.DoOpenIfChanged()
    FilterDirectoryReader.DoOpenIfChanged(IndexCommit)
    FilterDirectoryReader.DoOpenIfChanged(IndexWriter, bool)
    FilterDirectoryReader.Version
    FilterDirectoryReader.IsCurrent()
    FilterDirectoryReader.IndexCommit
    FilterDirectoryReader.DoClose()
    DirectoryReader.DEFAULT_TERMS_INDEX_DIVISOR
    DirectoryReader.m_directory
    DirectoryReader.Open(Directory)
    DirectoryReader.Open(Directory, int)
    DirectoryReader.Open(IndexWriter, bool)
    DirectoryReader.Open(IndexCommit)
    DirectoryReader.Open(IndexCommit, int)
    DirectoryReader.OpenIfChanged(DirectoryReader)
    DirectoryReader.OpenIfChanged(DirectoryReader, IndexCommit)
    DirectoryReader.OpenIfChanged(DirectoryReader, IndexWriter, bool)
    DirectoryReader.ListCommits(Directory)
    DirectoryReader.IndexExists(Directory)
    DirectoryReader.Directory
    BaseCompositeReader<AtomicReader>.GetTermVectors(int)
    BaseCompositeReader<AtomicReader>.NumDocs
    BaseCompositeReader<AtomicReader>.MaxDoc
    BaseCompositeReader<AtomicReader>.Document(int, StoredFieldVisitor)
    BaseCompositeReader<AtomicReader>.DocFreq(Term)
    BaseCompositeReader<AtomicReader>.TotalTermFreq(Term)
    BaseCompositeReader<AtomicReader>.GetSumDocFreq(string)
    BaseCompositeReader<AtomicReader>.GetDocCount(string)
    BaseCompositeReader<AtomicReader>.GetSumTotalTermFreq(string)
    BaseCompositeReader<AtomicReader>.ReaderIndex(int)
    BaseCompositeReader<AtomicReader>.ReaderBase(int)
    BaseCompositeReader<AtomicReader>.GetSequentialSubReaders()
    CompositeReader.ToString()
    CompositeReader.Context
    IndexReader.AddReaderDisposedListener(IReaderDisposedListener)
    IndexReader.RemoveReaderDisposedListener(IReaderDisposedListener)
    IndexReader.RegisterParentReader(IndexReader)
    IndexReader.RefCount
    IndexReader.IncRef()
    IndexReader.TryIncRef()
    IndexReader.DecRef()
    IndexReader.EnsureOpen()
    IndexReader.Equals(object)
    IndexReader.GetHashCode()
    IndexReader.GetTermVector(int, string)
    IndexReader.NumDeletedDocs
    IndexReader.Document(int)
    IndexReader.Document(int, ISet<string>)
    IndexReader.HasDeletions
    IndexReader.Dispose()
    IndexReader.Dispose(bool)
    IndexReader.Leaves
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class AssertingDirectoryReader : FilterDirectoryReader, IDisposable

    Constructors

    AssertingDirectoryReader(DirectoryReader)

    A Lucene.Net.Index.DirectoryReader that wraps all its subreaders with AssertingAtomicReader

    Declaration
    public AssertingDirectoryReader(DirectoryReader @in)
    Parameters
    Type Name Description
    DirectoryReader in

    Properties

    CombinedCoreAndDeletesKey

    Expert: Returns a key for this Lucene.Net.Index.IndexReader that also includes deletions, so Lucene.Net.Search.IFieldCache/Lucene.Net.Search.CachingWrapperFilter can find it again. This key must not have Equals()/GetHashCode() methods, so "equals" means "identical".

    Declaration
    public override object CombinedCoreAndDeletesKey { get; }
    Property Value
    Type Description
    object
    Overrides
    Lucene.Net.Index.IndexReader.CombinedCoreAndDeletesKey

    CoreCacheKey

    Expert: Returns a key for this Lucene.Net.Index.IndexReader, so Lucene.Net.Search.FieldCache/Lucene.Net.Search.CachingWrapperFilter can find it again. This key must not have Equals()/GetHashCode() methods, so "equals" means "identical".

    Declaration
    public override object CoreCacheKey { get; }
    Property Value
    Type Description
    object
    Overrides
    Lucene.Net.Index.IndexReader.CoreCacheKey

    Methods

    DoWrapDirectoryReader(DirectoryReader)

    Called by the Lucene.Net.Index.FilterDirectoryReader.DoOpenIfChanged() methods to return a new wrapped Lucene.Net.Index.DirectoryReader.

    Implementations should just return an instance of themselves, wrapping the passed in Lucene.Net.Index.DirectoryReader.
    Declaration
    protected override DirectoryReader DoWrapDirectoryReader(DirectoryReader @in)
    Parameters
    Type Name Description
    DirectoryReader in
    Returns
    Type Description
    DirectoryReader

    the wrapped Lucene.Net.Index.DirectoryReader

    Overrides
    Lucene.Net.Index.FilterDirectoryReader.DoWrapDirectoryReader(Lucene.Net.Index.DirectoryReader)

    Implements

    IDisposable
    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.