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.IndexDeletionPolicyIOExceptionpublic void onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits) throws IOException
onCommit in class org.apache.lucene.index.IndexDeletionPolicyIOExceptionpublic ShardId shardId()
shardId in interface IndexShardComponentpublic Settings indexSettings()
indexSettings in interface IndexShardComponentpublic String nodeName()
Copyright © 2009–2017. All rights reserved.