protected internal override System.Object DoBody(System.String segmentFileName)
			{
				SegmentInfos infos = new SegmentInfos();
				infos.Read(directory, segmentFileName);
				
				DirectoryIndexReader newReader = Enclosing_Instance.DoReopen(infos);
				
				if (Enclosing_Instance != newReader)
				{
					newReader.Init(directory, infos, Enclosing_Instance.closeDirectory);
					newReader.deletionPolicy = Enclosing_Instance.deletionPolicy;
				}
				
				return newReader;
			}
 internal AnonymousClassFindSegmentsFile1(DirectoryIndexReader enclosingInstance, Lucene.Net.Store.Directory Param1)
     : base(Param1)
 {
     this.enclosingInstance = enclosingInstance;
 }
示例#3
0
 private static IndexReader Open(Directory directory, bool closeDirectory, IndexDeletionPolicy deletionPolicy)
 {
     return(DirectoryIndexReader.Open(directory, closeDirectory, deletionPolicy));
 }
			internal AnonymousClassFindSegmentsFile1(DirectoryIndexReader enclosingInstance, Lucene.Net.Store.Directory Param1) : base(Param1)
			{
				InitBlock(enclosingInstance);
			}
			private void  InitBlock(DirectoryIndexReader enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}