public class KeepLastNDeletionPolicy
extends org.apache.lucene.index.IndexDeletionPolicy
| Modifier and Type | Field and Description |
|---|---|
protected Settings |
componentSettings |
protected Settings |
indexSettings |
protected ESLogger |
logger |
protected ShardId |
shardId |
| Constructor and Description |
|---|
KeepLastNDeletionPolicy(ShardId shardId,
Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
Settings |
indexSettings() |
String |
nodeName() |
void |
onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits) |
void |
onInit(List<? extends org.apache.lucene.index.IndexCommit> commits) |
ShardId |
shardId() |
protected final ESLogger logger
protected final ShardId shardId
protected final Settings indexSettings
protected final Settings componentSettings
@Inject public KeepLastNDeletionPolicy(ShardId shardId, @IndexSettings Settings indexSettings)
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–2016. All rights reserved.