public class IndexSplitter extends Object
This tool does file-level copying of segments files. This means it's unable to split apart a single segment into multiple segments. For example if your index is a single segment, this tool won't help. Also, it does basic file-level copying (using simple File{In,Out}putStream) so it will not work with non FSDirectory Directory impls.
| Modifier and Type | Field and Description | 
|---|---|
| SegmentInfos | infos | 
| Constructor and Description | 
|---|
| IndexSplitter(File dir) | 
public SegmentInfos infos
public IndexSplitter(File dir) throws IOException
IOExceptionpublic void listSegments()
                  throws IOException
IOExceptionpublic void remove(String[] segs) throws IOException
IOExceptionpublic void split(File destDir, String[] segs) throws IOException
IOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.