|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.MergePolicy.OneMerge
public static class MergePolicy.OneMerge
OneMerge provides the information necessary to perform an individual primitive merge operation, resulting in a single new segment. The merge spec includes the subset of segments to be merged as well as whether the new segment should use the compound file format.
Field Summary | |
---|---|
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 Summary | |
---|---|
MergePolicy.OneMerge(List<SegmentInfoPerCommit> segments)
Sole constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public volatile long estimatedMergeBytes
public final List<SegmentInfoPerCommit> segments
public final int totalDocCount
Constructor Detail |
---|
public MergePolicy.OneMerge(List<SegmentInfoPerCommit> segments)
segments
- List of SegmentInfoPerCommit
s
to be merged.Method Detail |
---|
public void checkAborted(Directory dir) throws MergePolicy.MergeAbortedException
IndexWriter
while
merging to see if the merge is aborted.
MergePolicy.MergeAbortedException
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
public MergeInfo getMergeInfo()
MergeInfo
describing this merge.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |