org.elasticsearch.index.deletionpolicy
Class SnapshotIndexCommits
java.lang.Object
org.elasticsearch.index.deletionpolicy.SnapshotIndexCommits
- All Implemented Interfaces:
- Iterable<SnapshotIndexCommit>, Releasable
public class SnapshotIndexCommits
- extends Object
- implements Iterable<SnapshotIndexCommit>, Releasable
Represents a snapshot view of several commits. Provides a way to iterate over
them as well as a simple method to release all of them.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotIndexCommits
public SnapshotIndexCommits(List<SnapshotIndexCommit> commits)
size
public int size()
iterator
public Iterator<SnapshotIndexCommit> iterator()
- Specified by:
iterator
in interface Iterable<SnapshotIndexCommit>
release
public boolean release()
- Specified by:
release
in interface Releasable
Copyright © 2009-2012. All Rights Reserved.