Uses of Class
org.apache.lucene.index.SegmentInfos
-
Uses of SegmentInfos in org.apache.lucene.index
Modifier and TypeMethodDescriptionSegmentInfos.clone()
Returns a copy of this instance, also copying each SegmentInfo.StandardDirectoryReader.getSegmentInfos()
Return theSegmentInfos
for this reader.static final SegmentInfos
SegmentInfos.readCommit
(Directory directory, String segmentFileName) Read a particular segmentFileName.static final SegmentInfos
SegmentInfos.readCommit
(Directory directory, ChecksumIndexInput input, long generation) Read the commit from the providedChecksumIndexInput
.static final SegmentInfos
SegmentInfos.readLatestCommit
(Directory directory) Find the latest commit (segments_N file
) and load allSegmentCommitInfo
s.Modifier and TypeMethodDescriptionvoid
IndexWriter.decRefDeleter
(SegmentInfos segmentInfos) Record that the files referenced by thisSegmentInfos
are no longer in use.FilterMergePolicy.findForcedDeletesMerges
(SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) LogMergePolicy.findForcedDeletesMerges
(SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) Finds merges necessary to force-merge all deletes from the index.abstract MergePolicy.MergeSpecification
MergePolicy.findForcedDeletesMerges
(SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) Determine what set of merge operations is necessary in order to expunge all deletes from the index.NoMergePolicy.findForcedDeletesMerges
(SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) OneMergeWrappingMergePolicy.findForcedDeletesMerges
(SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) TieredMergePolicy.findForcedDeletesMerges
(SegmentInfos infos, MergePolicy.MergeContext mergeContext) FilterMergePolicy.findForcedMerges
(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) LogMergePolicy.findForcedMerges
(SegmentInfos infos, int maxNumSegments, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) Returns the merges necessary to merge the index down to a specified number of segments.abstract MergePolicy.MergeSpecification
MergePolicy.findForcedMerges
(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) Determine what set of merge operations is necessary in order to merge to<=
the specified segment count.NoMergePolicy.findForcedMerges
(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) OneMergeWrappingMergePolicy.findForcedMerges
(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) TieredMergePolicy.findForcedMerges
(SegmentInfos infos, int maxSegmentCount, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) UpgradeIndexMergePolicy.findForcedMerges
(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) FilterMergePolicy.findFullFlushMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) MergePolicy.findFullFlushMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) Identifies merges that we want to execute (synchronously) on commit.NoMergePolicy.findFullFlushMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) OneMergeWrappingMergePolicy.findFullFlushMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) FilterMergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) LogMergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos infos, MergePolicy.MergeContext mergeContext) Checks if any merges are now necessary and returns aMergePolicy.MergeSpecification
if so.abstract MergePolicy.MergeSpecification
MergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) Determine what set of merge operations are now necessary on the index.NoMergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) OneMergeWrappingMergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) TieredMergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos infos, MergePolicy.MergeContext mergeContext) UpgradeIndexMergePolicy.findMerges
(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) void
IndexWriter.incRefDeleter
(SegmentInfos segmentInfos) Record that the files referenced by thisSegmentInfos
are still in use.protected boolean
LogMergePolicy.isMerged
(SegmentInfos infos, int maxNumSegments, Map<SegmentCommitInfo, Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) Returns true if the number of segments eligible for merging is less than or equal to the specifiedmaxNumSegments
.protected final boolean
MergePolicy.isMerged
(SegmentInfos infos, SegmentCommitInfo info, MergePolicy.MergeContext mergeContext) Returns true if this single info is already fully merged (has no pending deletes, is in the same dir as the writer, and matches the current compound file settingstatic DirectoryReader
StandardDirectoryReader.open
(Directory directory, SegmentInfos infos, List<? extends LeafReader> oldReaders, Comparator<LeafReader> leafSorter) This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos)
, as well as NRT replication.void
SegmentInfos.updateGeneration
(SegmentInfos other) Carry over generation numbers from another SegmentInfosboolean
FilterMergePolicy.useCompoundFile
(SegmentInfos infos, SegmentCommitInfo mergedInfo, MergePolicy.MergeContext mergeContext) boolean
MergePolicy.useCompoundFile
(SegmentInfos infos, SegmentCommitInfo mergedInfo, MergePolicy.MergeContext mergeContext) Returns true if a new segment (regardless of its origin) should use the compound file format.boolean
NoMergePolicy.useCompoundFile
(SegmentInfos segments, SegmentCommitInfo newSegment, MergePolicy.MergeContext mergeContext)