public class SnapshotDeletionPolicy
extends org.apache.lucene.index.IndexDeletionPolicy
| Modifier and Type | Field and Description |
|---|---|
protected Settings |
indexSettings |
protected ESLogger |
logger |
protected ShardId |
shardId |
| Constructor and Description |
|---|
SnapshotDeletionPolicy(org.apache.lucene.index.IndexDeletionPolicy primary)
Constructs a new snapshot deletion policy that wraps the provided deletion policy.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.index.IndexDeletionPolicy |
clone() |
Settings |
indexSettings() |
String |
nodeName() |
void |
onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits)
Called by Lucene..
|
void |
onInit(List<? extends org.apache.lucene.index.IndexCommit> commits)
Called by Lucene.
|
ShardId |
shardId() |
SnapshotIndexCommit |
snapshot()
Returns a snapshot of the index (for the last commit point).
|
SnapshotIndexCommits |
snapshots()
Snapshots all the current commits in the index.
|
protected final ESLogger logger
protected final ShardId shardId
protected final Settings indexSettings
@Inject public SnapshotDeletionPolicy(org.apache.lucene.index.IndexDeletionPolicy primary)
public void onInit(List<? extends org.apache.lucene.index.IndexCommit> commits) throws IOException
onCommit(java.util.List).onInit in class org.apache.lucene.index.IndexDeletionPolicyIOExceptionpublic void onCommit(List<? extends org.apache.lucene.index.IndexCommit> commits) throws IOException
SnapshotIndexCommit
and delegates to the wrapped deletion policy.onCommit in class org.apache.lucene.index.IndexDeletionPolicyIOExceptionpublic SnapshotIndexCommits snapshots() throws IOException
SnapshotIndexCommits.close() to release it.IOExceptionpublic SnapshotIndexCommit snapshot() throws IOException
SnapshotIndexCommit.close() in order to release it.IOExceptionpublic ShardId shardId()
shardId in interface IndexShardComponentpublic Settings indexSettings()
indexSettings in interface IndexShardComponentpublic String nodeName()
Copyright © 2009–2017. All rights reserved.