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