Package org.apache.lucene.index
Class MergePolicy.MergeSpecification
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 TypeMethodDescriptionvoid
add
(MergePolicy.OneMerge merge) Adds the providedMergePolicy.OneMerge
to this specification.(package private) boolean
await()
Waits, until interrupted, for all merges to complete.(package private) boolean
Waits 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.OneMerge
to 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.
-