Lucene.Net.Index.DirectoryReader.Directory C# (CSharp) Метод

Directory() публичный Метод

Returns the directory this index resides in.
public Directory ( ) : Lucene.Net.Store.Directory
Результат Lucene.Net.Store.Directory
        public override Directory Directory()
        {
            // Don't ensureOpen here -- in certain cases, when a
            // cloned/reopened reader needs to commit, it may call
            // this method on the closed original reader
            return internalDirectory;
        }

Usage Example

Пример #1
0
 /// <summary>
 /// Create a new FilterDirectoryReader that filters a passed in DirectoryReader,
 /// using the supplied SubReaderWrapper to wrap its subreader. </summary>
 /// <param name="in"> the DirectoryReader to filter </param>
 /// <param name="wrapper"> the SubReaderWrapper to use to wrap subreaders </param>
 public FilterDirectoryReader(DirectoryReader @in, SubReaderWrapper wrapper)
     : base(@in.Directory(), wrapper.Wrap(@in.GetSequentialSubReaders().OfType <AtomicReader>().ToList()))
 {
     this.@in = @in;
 }
All Usage Examples Of Lucene.Net.Index.DirectoryReader::Directory