Java org.apache.lucene.index SegmentInfos fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.index SegmentInfos fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.index SegmentInfos.

The text is from its open source code.

Constructor

Method

voidaddAll(Iterable sis)
Appends the provided SegmentCommitInfo s.
ListasList()
Returns all contained segments as an unmodifiable List view.
voidclear()
Clear all SegmentCommitInfo s.
Collectionfiles(boolean includeSegmentsFile)
Returns all file names referenced by SegmentInfo.
longgenerationFromSegmentsFileName(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.
intgetIndexCreatedVersionMajor()
Return the version major that was used to initially create the index.
longgetLastCommitGeneration(String[] files)
Get the generation of the most recent commit to the list of index files (N in the segments_N file).
longgetLastCommitGeneration(Directory directory)
Get the generation of the most recent commit to the index in this directory (N in the segments_N file).
StringgetLastCommitSegmentsFileName(String[] files)
Get the filename of the segments_N file for the most recent commit in the list of index files.
StringgetLastCommitSegmentsFileName(Directory directory)
Get the filename of the segments_N file for the most recent commit to the index in this Directory.
longgetLastGeneration()
Returns last succesfully read or written generation.
StringgetSegmentsFileName()
Get the segments_N filename in use by this segment infos.
MapgetUserData()
Return userData saved with this commit.
longgetVersion()
version number when this SegmentInfos was generated.
SegmentCommitInfoinfo(int i)
Returns SegmentCommitInfo at the provided index.
Iteratoriterator()
Returns an unmodifiable Iterator of contained segments in order.
SegmentInfosreadCommit(Directory directory, String segmentFileName)
Read a particular segmentFileName.
SegmentInfosreadLatestCommit(Directory directory)
Find the latest commit ( segments_N file ) and load all SegmentCommitInfo s.
intsize()
Returns number of SegmentCommitInfo s.