Package org.apache.lucene.index
Interface MergeScheduler.MergeSource
- Enclosing class:
- MergeScheduler
public static interface MergeScheduler.MergeSource
Provides access to new merges and executes the actual merge
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionTheMergeScheduler
calls this method to retrieve the next merge requested by the MergePolicyboolean
Expert: returns true if there are merges waiting to be scheduled.void
merge
(MergePolicy.OneMerge merge) Merges the indicated segments, replacing them in the stack with a single segment.void
Does finishing for a merge.
-
Method Details
-
getNextMerge
MergePolicy.OneMerge getNextMerge()TheMergeScheduler
calls this method to retrieve the next merge requested by the MergePolicy -
onMergeFinished
Does finishing for a merge. -
hasPendingMerges
boolean hasPendingMerges()Expert: returns true if there are merges waiting to be scheduled. -
merge
Merges the indicated segments, replacing them in the stack with a single segment.- Throws:
IOException
-