public class KeepLastNDeletionPolicy
extends org.apache.lucene.index.IndexDeletionPolicy
Modifier and Type | Field and Description |
---|---|
protected Settings |
indexSettings |
protected ESLogger |
logger |
protected ShardId |
shardId |
Constructor and Description |
---|
KeepLastNDeletionPolicy(ShardId shardId,
IndexSettingsService indexSettingsService) |
protected final ESLogger logger
protected final ShardId shardId
protected final Settings indexSettings
@Inject public KeepLastNDeletionPolicy(ShardId shardId, IndexSettingsService indexSettingsService)
public void onInit(List<? extends org.apache.lucene.index.IndexCommit> commits) throws IOException
onInit
in class org.apache.lucene.index.IndexDeletionPolicy
IOException
public void onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits) throws IOException
onCommit
in class org.apache.lucene.index.IndexDeletionPolicy
IOException
public ShardId shardId()
shardId
in interface IndexShardComponent
public Settings indexSettings()
indexSettings
in interface IndexShardComponent
public String nodeName()
Copyright © 2009–2016. All rights reserved.