Uses of Class
org.apache.lucene.index.SegmentCommitInfo
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
Lucene 9.0 file format.
Code to maintain and access indices.
Internal bridges to package-private internals, for use by the lucene test framework only.
-
Uses of SegmentCommitInfo in org.apache.lucene.codecs
Modifier and TypeMethodDescriptionabstract void
LiveDocsFormat.files
(SegmentCommitInfo info, Collection<String> files) Records all files in use by thisSegmentCommitInfo
into the files argument.abstract Bits
LiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Read live docs bits.abstract void
LiveDocsFormat.writeLiveDocs
(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Persist live docs bits. -
Uses of SegmentCommitInfo in org.apache.lucene.codecs.lucene90
Modifier and TypeMethodDescriptionvoid
Lucene90LiveDocsFormat.files
(SegmentCommitInfo info, Collection<String> files) Lucene90LiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) void
Lucene90LiveDocsFormat.writeLiveDocs
(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of SegmentCommitInfo in org.apache.lucene.index
Modifier and TypeFieldDescriptionfinal List<SegmentCommitInfo>
MergePolicy.OneMerge.segments
Segments to be merged.Modifier and TypeMethodDescriptionSegmentCommitInfo.clone()
MergePolicy.OneMerge.getMergeInfo()
Returns theSegmentCommitInfo
for the merged segment, or null if it hasn't been set yet.SegmentReader.getSegmentInfo()
Return the SegmentInfoPerCommit of the segment this reader is reading.SegmentInfos.info
(int i) ReturnsSegmentCommitInfo
at the provided index.Modifier and TypeMethodDescriptionSegmentInfos.asList()
Returns all contained segments as an unmodifiableList
view.IndexWriter.getMergingSegments()
Expert: to be used by aMergePolicy
to avoid selecting merges for segments already being merged.MergePolicy.MergeContext.getMergingSegments()
Returns an unmodifiable set of segments that are currently merging.SegmentInfos.iterator()
Returns an unmodifiableIterator
of contained segments in order.Modifier and TypeMethodDescriptionvoid
SegmentInfos.add
(SegmentCommitInfo si) Appends the providedSegmentCommitInfo
.protected final boolean
MergePolicy.assertDelCount
(int delCount, SegmentCommitInfo info) Asserts that the delCount for this SegmentCommitInfo is validprotected 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 settingint
IndexWriter.numDeletedDocs
(SegmentCommitInfo info) Obtain the number of deleted docs for a pooled reader.int
MergePolicy.MergeContext.numDeletedDocs
(SegmentCommitInfo info) Returns the number of deleted documents in the given segments.int
FilterMergePolicy.numDeletesToMerge
(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier) final int
IndexWriter.numDeletesToMerge
(SegmentCommitInfo info) Returns the number of deletes a merge would claim back if the given segment is merged.int
MergePolicy.MergeContext.numDeletesToMerge
(SegmentCommitInfo info) Returns the number of deletes a merge would claim back if the given segment is merged.int
MergePolicy.numDeletesToMerge
(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier) Returns the number of deletes that a merge would claim on the given segment.int
NoMergePolicy.numDeletesToMerge
(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier) int
SoftDeletesRetentionMergePolicy.numDeletesToMerge
(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier) boolean
SegmentInfos.remove
(SegmentCommitInfo si) Remove the providedSegmentCommitInfo
.void
MergePolicy.OneMerge.setMergeInfo
(SegmentCommitInfo info) Expert: Sets theSegmentCommitInfo
of the merged segment.protected boolean
UpgradeIndexMergePolicy.shouldUpgradeSegment
(SegmentCommitInfo si) Returns if the given segment should be upgraded.protected long
FilterMergePolicy.size
(SegmentCommitInfo info, MergePolicy.MergeContext context) protected long
LogByteSizeMergePolicy.size
(SegmentCommitInfo info, MergePolicy.MergeContext mergeContext) protected long
LogDocMergePolicy.size
(SegmentCommitInfo info, MergePolicy.MergeContext mergeContext) protected long
MergePolicy.size
(SegmentCommitInfo info, MergePolicy.MergeContext mergeContext) Return the byte size of the providedSegmentCommitInfo
, pro-rated by percentage of non-deleted documents is set.protected long
NoMergePolicy.size
(SegmentCommitInfo info, MergePolicy.MergeContext context) protected long
LogMergePolicy.sizeBytes
(SegmentCommitInfo info, MergePolicy.MergeContext mergeContext) Return the byte size of the providedSegmentCommitInfo
, pro-rated by percentage of non-deleted documents ifLogMergePolicy.setCalibrateSizeByDeletes(boolean)
is set.protected long
LogMergePolicy.sizeDocs
(SegmentCommitInfo info, MergePolicy.MergeContext mergeContext) Return the number of documents in the providedSegmentCommitInfo
, pro-rated by percentage of non-deleted documents ifLogMergePolicy.setCalibrateSizeByDeletes(boolean)
is set.boolean
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) Modifier and TypeMethodDescriptionvoid
SegmentInfos.addAll
(Iterable<SegmentCommitInfo> sis) Appends the providedSegmentCommitInfo
s.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) 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 TieredMergePolicy.MergeScore
TieredMergePolicy.score
(List<SegmentCommitInfo> candidate, boolean hitTooLarge, Map<SegmentCommitInfo, org.apache.lucene.index.TieredMergePolicy.SegmentSizeAndDocs> segmentsSizes) Expert: scores one merge; subclasses can override.protected TieredMergePolicy.MergeScore
TieredMergePolicy.score
(List<SegmentCommitInfo> candidate, boolean hitTooLarge, Map<SegmentCommitInfo, org.apache.lucene.index.TieredMergePolicy.SegmentSizeAndDocs> segmentsSizes) Expert: scores one merge; subclasses can override.protected final String
MergePolicy.segString
(MergePolicy.MergeContext mergeContext, Iterable<SegmentCommitInfo> infos) Builds a String representation of the given SegmentCommitInfo instances -
Uses of SegmentCommitInfo in org.apache.lucene.internal.tests