org.apache.solr.index

## Class SortingMergePolicy

- java.lang.Object
- - org.apache.lucene.index.MergePolicy
  - - org.apache.lucene.index.MergePolicyWrapper
    - - org.apache.solr.index.SortingMergePolicy

-     public final class SortingMergePolicy
      extends MergePolicyWrapper

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.lucene.index.MergePolicy

      `MergePolicy.MergeAbortedException, MergePolicy.MergeException, MergePolicy.MergeSpecification, MergePolicy.OneMerge`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.index.MergePolicyWrapper

      `in`

    - ### Fields inherited from class org.apache.lucene.index.MergePolicy

      `DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_NO_CFS_RATIO, maxCFSSegmentSize, noCFSRatio`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SortingMergePolicy(MergePolicy in, Sort sort)` Create a new `MergePolicy` that sorts documents with the given `sort`.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Sort` | `getSort()` Return the `Sort` order that is used to sort segments when merging.
    `String` | `toString()`

    - ### Methods inherited from class org.apache.lucene.index.MergePolicyWrapper

      `findForcedDeletesMerges, findForcedMerges, findMerges, getNoCFSRatio, setMaxCFSSegmentSizeMB, setNoCFSRatio, size, useCompoundFile`

    - ### Methods inherited from class org.apache.lucene.index.MergePolicy

      `getMaxCFSSegmentSizeMB, isMerged`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SortingMergePolicy

          public SortingMergePolicy(MergePolicy in,
                                    Sort sort)

      Create a new `MergePolicy` that sorts documents with the given `sort`.

  - ### Method Detail

    - #### getSort

          public Sort getSort()

      Return the `Sort` order that is used to sort segments when merging.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `MergePolicyWrapper`

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