- <init>
Sole constructor.
- size
Returns number of SegmentCommitInfos.
- readLatestCommit
Find the latest commit ( segments_N file) and load all SegmentCommitInfos.
- info
- commit
Writes and syncs to the Directory dir, taking care to remove the segments file
on exception Note: #c
- getVersion
version number when this SegmentInfos was generated.
- getGeneration
Returns current generation.
- files
Returns all file names referenced by SegmentInfo. The returned collection is
recomputed on each invo
- getLastCommitSegmentsFileName
Get the filename of the segments_N file for the most recent commit in the list
of index files.
- getUserData
Return userData saved with this commit.
- read
Read a particular segmentFileName. Note that this may throw an IOException if a
commit is in process
- readCommit
Read the commit from the provided ChecksumIndexInput.