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