public static interface MergeScheduler.MergeSource
Modifier and Type | Method and Description |
---|---|
MergePolicy.OneMerge |
getNextMerge()
The
MergeScheduler calls this method to retrieve the next
merge requested by the MergePolicy |
boolean |
hasPendingMerges()
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 |
onMergeFinished(MergePolicy.OneMerge merge)
Does finishing for a merge.
|
MergePolicy.OneMerge getNextMerge()
MergeScheduler
calls this method to retrieve the next
merge requested by the MergePolicyvoid onMergeFinished(MergePolicy.OneMerge merge)
boolean hasPendingMerges()
void merge(MergePolicy.OneMerge merge) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.