|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.IndexCommit
org.elasticsearch.common.lucene.IndexCommitDelegate
org.elasticsearch.index.deletionpolicy.SnapshotIndexCommit
public class SnapshotIndexCommit
A snapshot index commit point. While this is held and release()
was not called, no files will be deleted that relates to this commit point
(IndexCommitDelegate.getFileNames()
).
Field Summary |
---|
Fields inherited from class org.elasticsearch.common.lucene.IndexCommitDelegate |
---|
delegate |
Method Summary | |
---|---|
void |
delete()
Override the delete operation, and only actually delete it if it is not held by the SnapshotDeletionPolicy . |
java.lang.String[] |
getFiles()
|
boolean |
release()
Releases the current snapshot, returning true if it was
actually released. |
Methods inherited from class org.elasticsearch.common.lucene.IndexCommitDelegate |
---|
equals, getDirectory, getFileNames, getGeneration, getSegmentCount, getSegmentsFileName, getTimestamp, getUserData, getVersion, hashCode, isDeleted |
Methods inherited from class org.apache.lucene.index.IndexCommit |
---|
compareTo |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String[] getFiles()
public boolean release()
true
if it was
actually released.
release
in interface Releasable
public void delete()
SnapshotDeletionPolicy
.
delete
in class IndexCommitDelegate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |