public abstract static class SegmentInfos.FindSegmentsFile<T> extends Object
Constructor and Description |
---|
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 FindSegmentsFile(Directory directory)
public T run() throws IOException
segments
file and
run doBody(java.lang.String)
on it.IOException
public T run(IndexCommit commit) throws IOException
doBody(java.lang.String)
on the provided commit.IOException
protected abstract T doBody(String segmentFileName) throws IOException
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.