org.apache.lucene.index
Class LuceneSegmentsMerger

java.lang.Object
  extended by org.apache.lucene.index.LuceneSegmentsMerger

public class LuceneSegmentsMerger
extends Object

A helper class that can merge segments from a certain segment number till the last.

Author:
kimchy

Constructor Summary
LuceneSegmentsMerger(Directory dir, boolean closeDir, LuceneSearchEngineFactory searchEngineFactory)
           
 
Method Summary
 void close()
           
 void commit()
           
protected  void finalize()
           
 void mergeFromSegment(int fromSegment)
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSegmentsMerger

public LuceneSegmentsMerger(Directory dir,
                            boolean closeDir,
                            LuceneSearchEngineFactory searchEngineFactory)
                     throws IOException
Throws:
IOException
Method Detail

mergeFromSegment

public void mergeFromSegment(int fromSegment)
                      throws IOException
Throws:
IOException

commit

public void commit()
            throws IOException
Throws:
IOException

rollback

public void rollback()
              throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

finalize

protected void finalize()
                 throws IOException
Overrides:
finalize in class Object
Throws:
IOException


Copyright (c) 2004-2006 The Compass Project.