FindMerges() public abstract method

Determine what set of merge operations are now necessary on the index. IndexWriter calls this whenever there is a change to the segments. this call is always synchronized on the IndexWriter instance so only one thread at a time will call this method.
public abstract FindMerges ( MergeTrigger mergeTrigger, SegmentInfos segmentInfos ) : MergeSpecification
mergeTrigger MergeTrigger the event that triggered the merge
segmentInfos SegmentInfos /// the total set of segments in the index
return MergeSpecification
Ejemplo n.º 1
0
        public virtual void TestNoMergePolicy_Mem()
        {
            MergePolicy mp = NoMergePolicy.NO_COMPOUND_FILES;

            Assert.IsNull(mp.FindMerges(/*null*/ (MergeTrigger)int.MinValue, (SegmentInfos)null));
            Assert.IsNull(mp.FindForcedMerges(null, 0, null));
            Assert.IsNull(mp.FindForcedDeletesMerges(null));
            Assert.IsFalse(mp.UseCompoundFile(null, null));
            mp.Dispose();
        }
Ejemplo n.º 2
0
 public override MergeSpecification FindMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos)
 {
     // LUCENENET specific - just use min value to indicate "null" for merge trigger
     return(m_base.FindMerges((MergeTrigger)int.MinValue, segmentInfos));
 }
Ejemplo n.º 3
0
 public override MergeSpecification FindMerges(MergeTrigger?mergeTrigger, SegmentInfos segmentInfos)
 {
     return(@base.FindMerges(null, segmentInfos));
 }