Lucene.Net.Index.LogMergePolicy.IsOptimized C# (CSharp) Метод

IsOptimized() приватный Метод

Returns true if this single info is optimized (has no pending norms or deletes, is in the same dir as the writer, and matches the current compound file setting
private IsOptimized ( SegmentInfo info ) : bool
info SegmentInfo
Результат bool
		private bool IsOptimized(SegmentInfo info)
		{
			bool hasDeletions = writer.NumDeletedDocs(info) > 0;
			return !hasDeletions && !info.HasSeparateNorms() && info.dir == writer.Directory &&
                (info.GetUseCompoundFile() == useCompoundFile || internalNoCFSRatio < 1.0);
		}
		

Same methods

LogMergePolicy::IsOptimized ( SegmentInfos infos, int maxNumSegments, ISet segmentsToOptimize ) : bool