public static class MergePolicy.OneMerge extends Object
Modifier and Type | Field and Description |
---|---|
long |
estimatedMergeBytes
Estimated size in bytes of the merged segment.
|
List<SegmentInfoPerCommit> |
segments
Segments to be merged.
|
int |
totalDocCount
Number of documents in the merged segment.
|
Constructor and Description |
---|
MergePolicy.OneMerge(List<SegmentInfoPerCommit> segments)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkAborted(Directory dir)
Called periodically by
IndexWriter while
merging to see if the merge is aborted. |
MergeInfo |
getMergeInfo()
Return
MergeInfo describing this merge. |
boolean |
getPause()
Returns true if this merge is paused.
|
String |
segString(Directory dir)
Returns a readable description of the current merge
state.
|
void |
setPause(boolean paused)
Set or clear whether this merge is paused paused (for example
ConcurrentMergeScheduler will pause merges
if too many are running). |
long |
totalBytesSize()
Returns the total size in bytes of this merge.
|
int |
totalNumDocs()
Returns the total number of documents that are included with this merge.
|
public volatile long estimatedMergeBytes
public final List<SegmentInfoPerCommit> segments
public final int totalDocCount
public MergePolicy.OneMerge(List<SegmentInfoPerCommit> segments)
segments
- List of SegmentInfoPerCommit
s
to be merged.public void checkAborted(Directory dir) throws MergePolicy.MergeAbortedException
IndexWriter
while
merging to see if the merge is aborted.public void setPause(boolean paused)
ConcurrentMergeScheduler
will pause merges
if too many are running).public boolean getPause()
setPause(boolean)
public String segString(Directory dir)
public long totalBytesSize() throws IOException
IOException
public int totalNumDocs() throws IOException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.