public abstract static class SegmentInfos.FindSegmentsFile<T> extends Object
| Constructor and Description |
|---|
SegmentInfos.FindSegmentsFile(Directory directory)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
doBody(String segmentFileName)
Subclass must implement this.
|
T |
run()
Locate the most recent
segments file and
run doBody(java.lang.String) on it. |
T |
run(IndexCommit commit)
Run
doBody(java.lang.String) on the provided commit. |
public SegmentInfos.FindSegmentsFile(Directory directory)
public T run() throws IOException
segments file and
run doBody(java.lang.String) on it.IOExceptionpublic T run(IndexCommit commit) throws IOException
doBody(java.lang.String) on the provided commit.IOExceptionprotected abstract T doBody(String segmentFileName) throws IOException
IOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.