java.lang.Object
org.apache.lucene.index.MergePolicy.MergeSpecification
- Enclosing class:
MergePolicy
A MergeSpecification instance provides the information necessary to perform multiple merges. It
simply contains a list of
MergePolicy.OneMerge instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<MergePolicy.OneMerge> The subset of segments to be included in the primitive merge. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MergePolicy.OneMerge merge) Adds the providedMergePolicy.OneMergeto this specification.(package private) booleanawait()Waits, until interrupted, for all merges to complete.(package private) booleanWaits if necessary for at most the given time for all merges.(package private) CompletableFuture<Void> Returns a description of the merges in this specification.toString()
-
Field Details
-
merges
The subset of segments to be included in the primitive merge.
-
-
Constructor Details
-
MergeSpecification
public MergeSpecification()Sole constructor. Useadd(MergePolicy.OneMerge)to add merges.
-
-
Method Details
-
add
Adds the providedMergePolicy.OneMergeto this specification. -
segString
Returns a description of the merges in this specification. -
toString
-
getMergeCompletedFutures
CompletableFuture<Void> getMergeCompletedFutures() -
await
boolean await()Waits, until interrupted, for all merges to complete. -
await
Waits if necessary for at most the given time for all merges.
-