public static class

MergePolicy.OneMerge

extends Object
java.lang.Object
   ↳ org.apache.lucene.index.MergePolicy.OneMerge

Class Overview

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.

Summary

Fields
public long estimatedMergeBytes
public final List<SegmentInfo> segments
public final int totalDocCount
Public Constructors
MergePolicy.OneMerge(List<SegmentInfo> segments)
Public Methods
synchronized boolean getPause()
String segString(Directory dir)
synchronized void setPause(boolean paused)
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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public long estimatedMergeBytes

public final List<SegmentInfo> segments

public final int totalDocCount

Public Constructors

public MergePolicy.OneMerge (List<SegmentInfo> segments)

Public Methods

public synchronized boolean getPause ()

public String segString (Directory dir)

public synchronized void setPause (boolean paused)

public long totalBytesSize ()

Returns the total size in bytes of this merge. Note that this does not indicate the size of the merged segment, but the input total size.

Throws
IOException

public int totalNumDocs ()

Returns the total number of documents that are included with this merge. Note that this does not indicate the number of documents after the merge.

Throws
IOException