org.elasticsearch.index.deletionpolicy
Class KeepLastNDeletionPolicy
java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.deletionpolicy.KeepLastNDeletionPolicy
- All Implemented Interfaces:
- org.apache.lucene.index.IndexDeletionPolicy, IndexShardComponent
public class KeepLastNDeletionPolicy
- extends AbstractIndexShardComponent
- implements org.apache.lucene.index.IndexDeletionPolicy
Method Summary |
void |
onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits)
|
void |
onInit(List<? extends org.apache.lucene.index.IndexCommit> commits)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepLastNDeletionPolicy
@Inject
public KeepLastNDeletionPolicy(ShardId shardId,
@IndexSettings
Settings indexSettings)
onInit
public void onInit(List<? extends org.apache.lucene.index.IndexCommit> commits)
throws IOException
- Specified by:
onInit
in interface org.apache.lucene.index.IndexDeletionPolicy
- Throws:
IOException
onCommit
public void onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits)
throws IOException
- Specified by:
onCommit
in interface org.apache.lucene.index.IndexDeletionPolicy
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.