示例#1
0
 internal AnonymousClassFindSegmentsFile1(bool openReadOnly, DirectoryReader enclosingInstance, Lucene.Net.Store.Directory Param1):base(Param1)
 {
     InitBlock(openReadOnly, enclosingInstance);
 }
示例#2
0
 private void  InitBlock(bool openReadOnly, DirectoryReader enclosingInstance)
 {
     this.openReadOnly = openReadOnly;
     this.enclosingInstance = enclosingInstance;
 }
示例#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;
     }
 }
示例#4
0
 public AnonymousFindSegmentsFile(Directory directory, bool openReadOnly, DirectoryReader dirReader) : base(directory)
 {
     this.dir = directory;
     this.openReadOnly = openReadOnly;
     enclosingInstance = dirReader;
 }