org.apache.lucene.index
Class LuceneSegmentsMerger
java.lang.Object
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
LuceneSegmentsMerger
public LuceneSegmentsMerger(Directory dir,
boolean closeDir,
LuceneSearchEngineFactory searchEngineFactory)
throws IOException
- Throws:
IOException
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.