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.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–2015. All rights reserved.