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. |
public FindSegmentsFile(Directory directory)
public T run() throws java.io.IOException
segments file and
run doBody(java.lang.String) on it.java.io.IOExceptionpublic T run(IndexCommit commit) throws java.io.IOException
doBody(java.lang.String) on the provided commit.java.io.IOExceptionprotected abstract T doBody(java.lang.String segmentFileName) throws java.io.IOException
java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.