Package org.apache.lucene.index
Class MergePolicy.MergeSpecification
- java.lang.Object
-
- org.apache.lucene.index.MergePolicy.MergeSpecification
-
- Enclosing class:
- MergePolicy
public static class MergePolicy.MergeSpecification extends Object
A MergeSpecification instance provides the information necessary to perform multiple merges. It simply contains a list ofMergePolicy.OneMergeinstances.
-
-
Field Summary
Fields Modifier and Type Field Description List<MergePolicy.OneMerge>mergesThe subset of segments to be included in the primitive merge.
-
Constructor Summary
Constructors Constructor Description MergeSpecification()Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(MergePolicy.OneMerge merge)Adds the providedMergePolicy.OneMergeto this specification.StringsegString(Directory dir)Returns a description of the merges in this specification.StringtoString()
-
-
-
Field Detail
-
merges
public final List<MergePolicy.OneMerge> merges
The subset of segments to be included in the primitive merge.
-
-
Constructor Detail
-
MergeSpecification
public MergeSpecification()
Sole constructor. Useadd(MergePolicy.OneMerge)to add merges.
-
-
Method Detail
-
add
public void add(MergePolicy.OneMerge merge)
Adds the providedMergePolicy.OneMergeto this specification.
-
segString
public String segString(Directory dir)
Returns a description of the merges in this specification.
-
-