public abstract static class SegmentInfos.FindSegmentsFile<T>
extends java.lang.Object
Constructor and Description |
---|
FindSegmentsFile(Directory directory)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
doBody(java.lang.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. |
final Directory directory
public FindSegmentsFile(Directory directory)
public T run() throws java.io.IOException
segments
file and
run doBody(java.lang.String)
on it.java.io.IOException
public T run(IndexCommit commit) throws java.io.IOException
doBody(java.lang.String)
on the provided commit.java.io.IOException
protected abstract T doBody(java.lang.String segmentFileName) throws java.io.IOException
java.io.IOException