public class SnapshotDeletionPolicy
extends org.apache.lucene.index.IndexDeletionPolicy
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Settings |
indexSettings |
protected ESLogger |
logger |
protected ShardId |
shardId |
| コンストラクタと説明 |
|---|
SnapshotDeletionPolicy(org.apache.lucene.index.IndexDeletionPolicy primary)
Constructs a new snapshot deletion policy that wraps the provided deletion policy.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 クラス内 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 クラス内 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 インタフェース内 IndexShardComponentpublic Settings indexSettings()
indexSettings インタフェース内 IndexShardComponentpublic String nodeName()
Copyright © 2009–2016. All rights reserved.