public class IndexSplitter
extends java.lang.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(java.nio.file.Path dir) |
Modifier and Type | Method and Description |
---|---|
void |
listSegments() |
static void |
main(java.lang.String[] args) |
void |
remove(java.lang.String[] segs) |
void |
split(java.nio.file.Path destDir,
java.lang.String[] segs) |
public final SegmentInfos infos
public IndexSplitter(java.nio.file.Path dir) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void listSegments() throws java.io.IOException
java.io.IOException
public void remove(java.lang.String[] segs) throws java.io.IOException
java.io.IOException
public void split(java.nio.file.Path destDir, java.lang.String[] segs) throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.