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(Path dir) |
Modifier and Type | Method and Description |
---|---|
void |
listSegments() |
static void |
main(String[] args) |
void |
remove(String[] segs) |
void |
split(Path destDir,
String[] segs) |
public final SegmentInfos infos
public IndexSplitter(Path dir) throws IOException
IOException
public void listSegments() throws IOException
IOException
public void remove(String[] segs) throws IOException
IOException
public void split(Path destDir, String[] segs) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.