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.IndexDeletionPolicy
IOException
public 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.IndexDeletionPolicy
IOException
public SnapshotIndexCommits snapshots() throws IOException
SnapshotIndexCommits.close()
to release it.IOException
public SnapshotIndexCommit snapshot() throws IOException
SnapshotIndexCommit.close()
in order to release it.IOException
public ShardId shardId()
shardId
in interface IndexShardComponent
public Settings indexSettings()
indexSettings
in interface IndexShardComponent
public String nodeName()
Copyright © 2009–2016. All rights reserved.