The MergePolicy type exposes the following members.

Constructors

  NameDescription
Public methodMergePolicy
Initializes a new instance of the MergePolicy class

Methods

  NameDescription
Public methodClose
Release all resources for the policy.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindMerges
Determine what set of merge operations are now necessary on the index. {@link IndexWriter} calls this whenever there is a change to the segments. This call is always synchronized on the {@link IndexWriter} instance so only one thread at a time will call this method.
Public methodFindMergesForOptimize
Determine what set of merge operations is necessary in order to optimize the index. {@link IndexWriter} calls this when its {@link IndexWriter#Optimize()} method is called. This call is always synchronized on the {@link IndexWriter} instance so only one thread at a time will call this method.
Public methodFindMergesToExpungeDeletes
Determine what set of merge operations is necessary in order to expunge all deletes from the index.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodUseCompoundDocStore
Returns true if the doc store files should use the compound file format.
Public methodUseCompoundFile
Returns true if a newly flushed (not from merge) segment should use the compound file format.

Fields

  NameDescription
Protected fieldwriter

See Also