Esempio n. 1
0
			internal AnonymousClassFindSegmentsFile1(bool openReadOnly, DirectoryReader enclosingInstance, Mono.Lucene.Net.Store.Directory Param1):base(Param1)
			{
				InitBlock(openReadOnly, enclosingInstance);
			}
Esempio n. 2
0
 private DirectoryReader DoReopen(SegmentInfos infos, bool doClone, bool openReadOnly)
 {
     lock (this)
     {
         DirectoryReader reader;
         if (openReadOnly)
         {
             reader = new ReadOnlyDirectoryReader(directory, infos, subReaders, starts, normsCache, doClone, termInfosIndexDivisor);
         }
         else
         {
             reader = new DirectoryReader(directory, infos, subReaders, starts, normsCache, false, doClone, termInfosIndexDivisor);
         }
         reader.SetDisableFakeNorms(GetDisableFakeNorms());
         return reader;
     }
 }
Esempio n. 3
0
			private void  InitBlock(bool openReadOnly, DirectoryReader enclosingInstance)
			{
				this.openReadOnly = openReadOnly;
				this.enclosingInstance = enclosingInstance;
			}
Esempio n. 4
0
 public AnonymousFindSegmentsFile(Directory directory, bool openReadOnly, DirectoryReader dirReader) : base(directory)
 {
     this.dir = directory;
     this.openReadOnly = openReadOnly;
     enclosingInstance = dirReader;
 }