org.elasticsearch.index.merge.policy
Class LogByteSizeMergePolicyProvider

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.merge.policy.LogByteSizeMergePolicyProvider
All Implemented Interfaces:
CloseableIndexComponent, MergePolicyProvider<org.apache.lucene.index.LogByteSizeMergePolicy>, IndexShardComponent

public class LogByteSizeMergePolicyProvider
extends AbstractIndexShardComponent
implements MergePolicyProvider<org.apache.lucene.index.LogByteSizeMergePolicy>


Nested Class Summary
static class LogByteSizeMergePolicyProvider.CustomLogByteSizeMergePolicy
           
static class LogByteSizeMergePolicyProvider.EnableMergeLogByteSizeMergePolicy
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
LogByteSizeMergePolicyProvider(Store store, IndexSettingsService indexSettingsService)
           
 
Method Summary
 void close(boolean delete)
          Closes the index component.
 org.apache.lucene.index.LogByteSizeMergePolicy newMergePolicy()
           
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent
indexSettings, shardId
 

Constructor Detail

LogByteSizeMergePolicyProvider

@Inject
public LogByteSizeMergePolicyProvider(Store store,
                                             IndexSettingsService indexSettingsService)
Method Detail

newMergePolicy

public org.apache.lucene.index.LogByteSizeMergePolicy newMergePolicy()
Specified by:
newMergePolicy in interface MergePolicyProvider<org.apache.lucene.index.LogByteSizeMergePolicy>

close

public void close(boolean delete)
           throws ElasticSearchException
Description copied from interface: CloseableIndexComponent
Closes the index component. A boolean indicating if its part of an actual index deletion or not is passed.

Specified by:
close in interface CloseableIndexComponent
Parameters:
delete - true if the index is being deleted.
Throws:
ElasticSearchException