## 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.lucene50 | Components from the Lucene 5.0 index format See `org.apache.lucene.codecs.lucene53` for an overview of the index 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 and Description
    --- | ---
    `abstract void` | LiveDocsFormat.`files(SegmentCommitInfo info, Collection<String> files)` Records all files in use by this `SegmentCommitInfo` 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.lucene50

    Methods in org.apache.lucene.codecs.lucene50 with parameters of type SegmentCommitInfo
    Modifier and Type | Method and Description
    --- | ---
    `void` | Lucene50LiveDocsFormat.`files(SegmentCommitInfo info, Collection<String> files)`
    `Bits` | Lucene50LiveDocsFormat.`readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context)`
    `void` | Lucene50LiveDocsFormat.`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 and Description
    --- | ---
    `List<SegmentCommitInfo>` | MergePolicy.OneMerge.`segments` Segments to be merged.

    Methods in org.apache.lucene.index that return SegmentCommitInfo
    Modifier and Type | Method and Description
    --- | ---
    `SegmentCommitInfo` | SegmentCommitInfo.`clone()`
    `SegmentCommitInfo` | MergePolicy.OneMerge.`getMergeInfo()` Returns the `SegmentCommitInfo` for the merged segment, or null if it hasn't been set yet.
    `SegmentCommitInfo` | SegmentReader.`getSegmentInfo()` Return the SegmentInfoPerCommit of the segment this reader is reading.
    `SegmentCommitInfo` | SegmentInfos.`info(int i)` Returns `SegmentCommitInfo` at the provided index.

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

    Methods in org.apache.lucene.index with parameters of type SegmentCommitInfo
    Modifier and Type | Method and Description
    --- | ---
    `void` | SegmentInfos.`add(SegmentCommitInfo si)` Appends the provided `SegmentCommitInfo`.
    `protected boolean` | MergePolicy.`isMerged(SegmentInfos infos, SegmentCommitInfo info, IndexWriter writer)` 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 setting
    `int` | IndexWriter.`numDeletedDocs(SegmentCommitInfo info)` Obtain the number of deleted docs for a pooled reader.
    `void` | SegmentInfos.`remove(SegmentCommitInfo si)` Remove the provided `SegmentCommitInfo`.
    `void` | MergePolicy.OneMerge.`setMergeInfo(SegmentCommitInfo info)` Expert: Sets the `SegmentCommitInfo` of the merged segment.
    `protected boolean` | UpgradeIndexMergePolicy.`shouldUpgradeSegment(SegmentCommitInfo si)` Returns if the given segment should be upgraded.
    `protected long` | MergePolicy.`size(SegmentCommitInfo info, IndexWriter writer)` Return the byte size of the provided `SegmentCommitInfo`, pro-rated by percentage of non-deleted documents is set.
    `protected long` | LogByteSizeMergePolicy.`size(SegmentCommitInfo info, IndexWriter writer)`
    `protected long` | MergePolicyWrapper.`size(SegmentCommitInfo info, IndexWriter writer)`
    `protected long` | LogDocMergePolicy.`size(SegmentCommitInfo info, IndexWriter writer)`
    `protected long` | NoMergePolicy.`size(SegmentCommitInfo info, IndexWriter writer)`
    `protected long` | LogMergePolicy.`sizeBytes(SegmentCommitInfo info, IndexWriter writer)` Return the byte size of the provided `SegmentCommitInfo`, pro-rated by percentage of non-deleted documents if `LogMergePolicy.setCalibrateSizeByDeletes(boolean)` is set.
    `protected long` | LogMergePolicy.`sizeDocs(SegmentCommitInfo info, IndexWriter writer)` Return the number of documents in the provided `SegmentCommitInfo`, pro-rated by percentage of non-deleted documents if `LogMergePolicy.setCalibrateSizeByDeletes(boolean)` is set.
    `boolean` | MergePolicy.`useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, IndexWriter writer)` Returns true if a new segment (regardless of its origin) should use the compound file format.
    `boolean` | MergePolicyWrapper.`useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, IndexWriter writer)`
    `boolean` | NoMergePolicy.`useCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment, IndexWriter writer)`

    Method parameters in org.apache.lucene.index with type arguments of type SegmentCommitInfo
    Modifier and Type | Method and Description
    --- | ---
    `void` | SegmentInfos.`addAll(Iterable<SegmentCommitInfo> sis)` Appends the provided `SegmentCommitInfo`s.
    `abstract MergePolicy.MergeSpecification` | MergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)` Determine what set of merge operations is necessary in order to merge to `<=` the specified segment count.
    `MergePolicy.MergeSpecification` | OneMergeWrappingMergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)`
    `MergePolicy.MergeSpecification` | MergePolicyWrapper.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)`
    `MergePolicy.MergeSpecification` | LogMergePolicy.`findForcedMerges(SegmentInfos infos, int maxNumSegments, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)` Returns the merges necessary to merge the index down to a specified number of segments.
    `MergePolicy.MergeSpecification` | NoMergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)`
    `MergePolicy.MergeSpecification` | UpgradeIndexMergePolicy.`findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)`
    `MergePolicy.MergeSpecification` | TieredMergePolicy.`findForcedMerges(SegmentInfos infos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)`
    `protected boolean` | LogMergePolicy.`isMerged(SegmentInfos infos, int maxNumSegments, Map<SegmentCommitInfo,Boolean> segmentsToMerge, IndexWriter writer)` 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<SegmentCommitInfo> candidate, boolean hitTooLarge, long mergingBytes, IndexWriter writer)` Expert: scores one merge; subclasses can override.

    Constructors in org.apache.lucene.index with parameters of type SegmentCommitInfo
    Constructor and Description
    `SegmentReader(SegmentCommitInfo si, IOContext context)` Constructs a new SegmentReader with a new core.

    Constructor parameters in org.apache.lucene.index with type arguments of type SegmentCommitInfo
    Constructor and Description
    `OneMerge(List<SegmentCommitInfo> segments)` Sole constructor.

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.