@Override public boolean useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, MergeContext mergeContext) throws IOException { return in.useCompoundFile(infos, mergedInfo, mergeContext); }
/** Returns true if this single info is already fully merged (has no * pending deletes, is in the same dir as the * writer, and matches the current compound file setting */ protected final boolean isMerged(SegmentInfos infos, SegmentCommitInfo info, MergeContext mergeContext) throws IOException { assert mergeContext != null; int delCount = mergeContext.numDeletesToMerge(info); assert assertDelCount(delCount, info); return delCount == 0 && useCompoundFile(infos, info, mergeContext) == info.info.getUseCompoundFile(); }
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, merge.info, this);
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, infoPerCommit, this);
@Override public boolean useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, MergeContext mergeContext) throws IOException { return in.useCompoundFile(infos, mergedInfo, mergeContext); }
@Override public boolean useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, IndexWriter writer) throws IOException { return in.useCompoundFile(infos, mergedInfo, writer); }
@Override public boolean useCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment, IndexWriter writer) throws IOException { return delegate.useCompoundFile(segments, newSegment, writer); }
@Override public boolean useCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment, IndexWriter writer) throws IOException { return delegate.useCompoundFile(segments, newSegment, writer); }
@Override public boolean useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, IndexWriter writer) throws IOException { return in.useCompoundFile(infos, mergedInfo, writer); }
/** Returns true if this single info is already fully merged (has no * pending deletes, is in the same dir as the * writer, and matches the current compound file setting */ protected final boolean isMerged(SegmentInfos infos, SegmentCommitInfo info, IndexWriter writer) throws IOException { assert writer != null; boolean hasDeletions = writer.numDeletedDocs(info) > 0; return !hasDeletions && info.info.dir == writer.getDirectory() && useCompoundFile(infos, info, writer) == info.info.getUseCompoundFile(); }
/** Returns true if this single info is already fully merged (has no * pending deletes, is in the same dir as the * writer, and matches the current compound file setting */ protected final boolean isMerged(SegmentInfos infos, SegmentCommitInfo info, MergeContext mergeContext) throws IOException { assert mergeContext != null; int delCount = mergeContext.numDeletesToMerge(info); assert assertDelCount(delCount, info); return delCount == 0 && useCompoundFile(infos, info, mergeContext) == info.info.getUseCompoundFile(); }
/** Returns true if this single info is already fully merged (has no * pending deletes, is in the same dir as the * writer, and matches the current compound file setting */ protected final boolean isMerged(SegmentInfos infos, SegmentCommitInfo info, IndexWriter writer) throws IOException { assert writer != null; boolean hasDeletions = writer.numDeletedDocs(info) > 0; return !hasDeletions && info.info.dir == writer.getDirectory() && useCompoundFile(infos, info, writer) == info.info.getUseCompoundFile(); }
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, merge.info, this);
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, infoPerCommit, this);
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, infoPerCommit, this);
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, infoPerCommit, this);
checkpoint(); if (flushDocs && mergePolicy.useCompoundFile(segmentInfos, newSegment)) {
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, merge.info, this);
checkpoint(); if (flushDocs && mergePolicy.useCompoundFile(segmentInfos, newSegment)) {
useCompoundFile = mergePolicy.useCompoundFile(segmentInfos, merge.info, this);