## Uses of Class
org.apache.lucene.index.SegmentInfoPerCommit

Packages that use SegmentInfoPerCommit
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 SegmentInfoPerCommit in org.apache.lucene.codecs

Methods in org.apache.lucene.codecs with parameters of type SegmentInfoPerCommit
Modifier and Type | Method and Description
--- | ---
`abstract void` | LiveDocsFormat.`files(SegmentInfoPerCommit info, Collection<String> files)` Records all files in use by this `SegmentInfoPerCommit` into the files argument.
`abstract Bits` | LiveDocsFormat.`readLiveDocs(Directory dir, SegmentInfoPerCommit info, IOContext context)` Read live docs bits.
`abstract void` | LiveDocsFormat.`writeLiveDocs(MutableBits bits, Directory dir, SegmentInfoPerCommit info, int newDelCount, IOContext context)` Persist live docs bits.

### Uses of SegmentInfoPerCommit in org.apache.lucene.codecs.lucene40

Methods in org.apache.lucene.codecs.lucene40 with parameters of type SegmentInfoPerCommit
Modifier and Type | Method and Description
--- | ---
`void` | Lucene40LiveDocsFormat.`files(SegmentInfoPerCommit info, Collection<String> files)`
`Bits` | Lucene40LiveDocsFormat.`readLiveDocs(Directory dir, SegmentInfoPerCommit info, IOContext context)`
`void` | Lucene40LiveDocsFormat.`writeLiveDocs(MutableBits bits, Directory dir, SegmentInfoPerCommit info, int newDelCount, IOContext context)`

### Uses of SegmentInfoPerCommit in org.apache.lucene.index

Fields in org.apache.lucene.index with type parameters of type SegmentInfoPerCommit
Modifier and Type | Field and Description
--- | ---
`List<SegmentInfoPerCommit>` | MergePolicy.OneMerge.`segments` Segments to be merged.

Methods in org.apache.lucene.index that return SegmentInfoPerCommit
Modifier and Type | Method and Description
--- | ---
`SegmentInfoPerCommit` | SegmentInfoPerCommit.`clone()`
`SegmentInfoPerCommit` | SegmentInfos.`info(int i)` Returns `SegmentInfoPerCommit` at the provided index.

Methods in org.apache.lucene.index that return types with arguments of type SegmentInfoPerCommit
Modifier and Type | Method and Description
--- | ---
`List<SegmentInfoPerCommit>` | SegmentInfos.`asList()` Returns all contained segments as an unmodifiable `List` view.
`Collection<SegmentInfoPerCommit>` | IndexWriter.`getMergingSegments()` Expert: to be used by a `MergePolicy` to avoid selecting merges for segments already being merged.
`Iterator<SegmentInfoPerCommit>` | SegmentInfos.`iterator()` Returns an unmodifiable `Iterator` of contained segments in order.

Methods in org.apache.lucene.index with parameters of type SegmentInfoPerCommit
Modifier and Type | Method and Description
--- | ---
`void` | SegmentInfos.`add(SegmentInfoPerCommit si)` Appends the provided `SegmentInfoPerCommit`.
`protected boolean` | LogMergePolicy.`isMerged(SegmentInfoPerCommit info)` Returns true if this single info is already fully merged (has no pending norms or deletes, is in the same dir as the writer, and matches the current compound file setting
`int` | IndexWriter.`numDeletedDocs(SegmentInfoPerCommit info)` Obtain the number of deleted docs for a pooled reader.
`void` | SegmentInfos.`remove(SegmentInfoPerCommit si)` Remove the provided `SegmentInfoPerCommit`.
`String` | IndexWriter.`segString(SegmentInfoPerCommit info)` Returns a string description of the specified segment, for debugging.
`protected boolean` | UpgradeIndexMergePolicy.`shouldUpgradeSegment(SegmentInfoPerCommit si)` Returns if the given segment should be upgraded.
`protected abstract long` | LogMergePolicy.`size(SegmentInfoPerCommit info)` Return the size of the provided `SegmentInfoPerCommit`.
`protected long` | LogDocMergePolicy.`size(SegmentInfoPerCommit info)`
`protected long` | LogByteSizeMergePolicy.`size(SegmentInfoPerCommit info)`
`protected long` | LogMergePolicy.`sizeBytes(SegmentInfoPerCommit info)` Return the byte size of the provided `SegmentInfoPerCommit`, pro-rated by percentage of non-deleted documents if `LogMergePolicy.setCalibrateSizeByDeletes(boolean)` is set.
`protected long` | LogMergePolicy.`sizeDocs(SegmentInfoPerCommit info)` Return the number of documents in the provided `SegmentInfoPerCommit`, pro-rated by percentage of non-deleted documents if `LogMergePolicy.setCalibrateSizeByDeletes(boolean)` is set.
`boolean` | UpgradeIndexMergePolicy.`useCompoundFile(SegmentInfos segments, SegmentInfoPerCommit newSegment)`
`boolean` | TieredMergePolicy.`useCompoundFile(SegmentInfos infos, SegmentInfoPerCommit mergedInfo)`
`boolean` | NoMergePolicy.`useCompoundFile(SegmentInfos segments, SegmentInfoPerCommit newSegment)`
`abstract boolean` | MergePolicy.`useCompoundFile(SegmentInfos segments, SegmentInfoPerCommit newSegment)` Returns true if a new segment (regardless of its origin) should use the compound file format.
`boolean` | LogMergePolicy.`useCompoundFile(SegmentInfos infos, SegmentInfoPerCommit mergedInfo)`

Method parameters in org.apache.lucene.index with type arguments of type SegmentInfoPerCommit
Modifier and Type | Method and Description
--- | ---
`void` | SegmentInfos.`addAll(Iterable<SegmentInfoPerCommit> sis)` Appends the provided `SegmentInfoPerCommit`s.
`MergePolicy.MergeSpecification` | UpgradeIndexMergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)`
`MergePolicy.MergeSpecification` | TieredMergePolicy.`findForcedMerges(SegmentInfos infos, int maxSegmentCount, Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)`
`MergePolicy.MergeSpecification` | NoMergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)`
`abstract MergePolicy.MergeSpecification` | MergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)` Determine what set of merge operations is necessary in order to merge to <= the specified segment count.
`MergePolicy.MergeSpecification` | LogMergePolicy.`findForcedMerges(SegmentInfos infos, int maxNumSegments, Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)` Returns the merges necessary to merge the index down to a specified number of segments.
`protected boolean` | LogMergePolicy.`isMerged(SegmentInfos infos, int maxNumSegments, Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)` Returns true if the number of segments eligible for merging is less than or equal to the specified `maxNumSegments`.
`protected TieredMergePolicy.MergeScore` | TieredMergePolicy.`score(List<SegmentInfoPerCommit> candidate, boolean hitTooLarge, long mergingBytes)` Expert: scores one merge; subclasses can override.
`String` | IndexWriter.`segString(Iterable<SegmentInfoPerCommit> infos)` Returns a string description of the specified segments, for debugging.

Constructors in org.apache.lucene.index with parameters of type SegmentInfoPerCommit
Constructor and Description
`SegmentReader(SegmentInfoPerCommit 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 SegmentInfoPerCommit
Constructor and Description
`MergePolicy.OneMerge(List<SegmentInfoPerCommit> segments)` Sole constructor.