public class SnapshotIndexCommit extends IndexCommitDelegate implements Releasable
close()
was not called, no files will be deleted that relates to this commit point
(IndexCommitDelegate.getFileNames()
).delegate
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the current snapshot.
|
void |
delete()
Override the delete operation, and only actually delete it if it
is not held by the
SnapshotDeletionPolicy . |
String[] |
getFiles() |
equals, getDirectory, getFileNames, getGeneration, getSegmentCount, getSegmentsFileName, getUserData, hashCode, isDeleted
public String[] getFiles()
public void close()
close
in interface AutoCloseable
close
in interface Releasable
public void delete()
SnapshotDeletionPolicy
.delete
in class IndexCommitDelegate
Copyright © 2009–2016. All rights reserved.