Example usage for Java org.apache.lucene.index SegmentInfos fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addAll(Iterable Appends the provided SegmentCommitInfo s. |
List | asList() Returns all contained segments as an unmodifiable List view. |
void | clear() Clear all SegmentCommitInfo s. |
Collection | files(boolean includeSegmentsFile) Returns all file names referenced by SegmentInfo. |
long | generationFromSegmentsFileName(String fileName) Parse the generation off the segments file name and return it. |
byte[] | getId() Since Lucene 5.0, every commit (segments_N) writes a unique id. |
int | getIndexCreatedVersionMajor() Return the version major that was used to initially create the index. |
long | getLastCommitGeneration(String[] files) Get the generation of the most recent commit to the list of index files (N in the segments_N file). |
long | getLastCommitGeneration(Directory directory) Get the generation of the most recent commit to the index in this directory (N in the segments_N file). |
String | getLastCommitSegmentsFileName(String[] files) Get the filename of the segments_N file for the most recent commit in the list of index files. |
String | getLastCommitSegmentsFileName(Directory directory) Get the filename of the segments_N file for the most recent commit to the index in this Directory. |
long | getLastGeneration() Returns last succesfully read or written generation. |
String | getSegmentsFileName() Get the segments_N filename in use by this segment infos. |
Map | getUserData() Return userData saved with this commit. |
long | getVersion() version number when this SegmentInfos was generated. |
SegmentCommitInfo | info(int i) Returns SegmentCommitInfo at the provided index. |
Iterator | iterator() Returns an unmodifiable Iterator of contained segments in order. |
SegmentInfos | readCommit(Directory directory, String segmentFileName) Read a particular segmentFileName. |
SegmentInfos | readLatestCommit(Directory directory) Find the latest commit ( segments_N file ) and load all SegmentCommitInfo s. |
int | size() Returns number of SegmentCommitInfo s. |