Uses of Class
org.apache.lucene.index.SegmentCommitInfo
-
Packages that use SegmentCommitInfo Package Description org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.lucene40 Lucene 4.0 file format.org.apache.lucene.index Code to maintain and access indices. -
-
Uses of SegmentCommitInfo in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type SegmentCommitInfo Modifier and Type Method Description abstract 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(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)
Persist live docs bits. -
Uses of SegmentCommitInfo in org.apache.lucene.codecs.lucene40
Methods in org.apache.lucene.codecs.lucene40 with parameters of type SegmentCommitInfo Modifier and Type Method Description void
Lucene40LiveDocsFormat. files(SegmentCommitInfo info, Collection<String> files)
Bits
Lucene40LiveDocsFormat. readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)
void
Lucene40LiveDocsFormat. writeLiveDocs(MutableBits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context)
-
Uses of SegmentCommitInfo in org.apache.lucene.index
Fields in org.apache.lucene.index with type parameters of type SegmentCommitInfo Modifier and Type Field Description List<SegmentCommitInfo>
MergePolicy.OneMerge. segments
Segments to be merged.Methods in org.apache.lucene.index that return SegmentCommitInfo Modifier and Type Method Description SegmentCommitInfo
SegmentCommitInfo. clone()
SegmentCommitInfo
SegmentReader. getSegmentInfo()
Return the SegmentInfoPerCommit of the segment this reader is reading.SegmentCommitInfo
SegmentInfos. info(int i)
ReturnsSegmentCommitInfo
at the provided index.Methods in org.apache.lucene.index that return types with arguments of type SegmentCommitInfo Modifier and Type Method Description List<SegmentCommitInfo>
SegmentInfos. asList()
Returns all contained segments as an unmodifiableList
view.Collection<SegmentCommitInfo>
IndexWriter. getMergingSegments()
Expert: to be used by aMergePolicy
to avoid selecting merges for segments already being merged.Iterator<SegmentCommitInfo>
SegmentInfos. iterator()
Returns an unmodifiableIterator
of contained segments in order.Methods in org.apache.lucene.index with parameters of type SegmentCommitInfo Modifier and Type Method Description void
SegmentInfos. add(SegmentCommitInfo si)
Appends the providedSegmentCommitInfo
.protected boolean
MergePolicy. isMerged(SegmentInfos infos, SegmentCommitInfo info)
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.void
SegmentInfos. remove(SegmentCommitInfo si)
Remove the providedSegmentCommitInfo
.String
IndexWriter. segString(SegmentCommitInfo info)
Returns a string description of the specified segment, for debugging.void
MergePolicy.OneMerge. setInfo(SegmentCommitInfo info)
Expert: Sets theSegmentCommitInfo
of thisMergePolicy.OneMerge
.protected boolean
UpgradeIndexMergePolicy. shouldUpgradeSegment(SegmentCommitInfo si)
Returns if the given segment should be upgraded.protected long
LogByteSizeMergePolicy. size(SegmentCommitInfo info)
protected long
LogDocMergePolicy. size(SegmentCommitInfo info)
protected long
MergePolicy. size(SegmentCommitInfo info)
Return the byte size of the providedSegmentCommitInfo
, pro-rated by percentage of non-deleted documents is set.protected long
NoMergePolicy. size(SegmentCommitInfo info)
protected long
LogMergePolicy. sizeBytes(SegmentCommitInfo info)
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)
Return the number of documents in the providedSegmentCommitInfo
, pro-rated by percentage of non-deleted documents ifLogMergePolicy.setCalibrateSizeByDeletes(boolean)
is set.boolean
MergePolicy. useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo)
Returns true if a new segment (regardless of its origin) should use the compound file format.boolean
NoMergePolicy. useCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment)
boolean
UpgradeIndexMergePolicy. useCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment)
Method parameters in org.apache.lucene.index with type arguments of type SegmentCommitInfo Modifier and Type Method Description void
SegmentInfos. addAll(Iterable<SegmentCommitInfo> sis)
Appends the providedSegmentCommitInfo
s.MergePolicy.MergeSpecification
LogMergePolicy. findForcedMerges(SegmentInfos infos, int maxNumSegments, Map<SegmentCommitInfo,Boolean> segmentsToMerge)
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)
Determine what set of merge operations is necessary in order to merge to <= the specified segment count.MergePolicy.MergeSpecification
NoMergePolicy. findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge)
MergePolicy.MergeSpecification
TieredMergePolicy. findForcedMerges(SegmentInfos infos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge)
MergePolicy.MergeSpecification
UpgradeIndexMergePolicy. findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge)
protected boolean
LogMergePolicy. isMerged(SegmentInfos infos, int maxNumSegments, Map<SegmentCommitInfo,Boolean> segmentsToMerge)
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, long mergingBytes)
Expert: scores one merge; subclasses can override.String
IndexWriter. segString(Iterable<SegmentCommitInfo> infos)
Returns a string description of the specified segments, for debugging.Constructors in org.apache.lucene.index with parameters of type SegmentCommitInfo Constructor Description SegmentReader(SegmentCommitInfo si, int termInfosIndexDivisor, IOContext context)
Constructs a new SegmentReader with a new core.Constructor parameters in org.apache.lucene.index with type arguments of type SegmentCommitInfo Constructor Description OneMerge(List<SegmentCommitInfo> segments)
Sole constructor.
-