org.elasticsearch.index.deletionpolicy
Class SnapshotIndexCommits

java.lang.Object
  extended by org.elasticsearch.index.deletionpolicy.SnapshotIndexCommits
All Implemented Interfaces:
java.lang.Iterable<SnapshotIndexCommit>, Releasable

public class SnapshotIndexCommits
extends java.lang.Object
implements java.lang.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.


Constructor Summary
SnapshotIndexCommits(java.util.List<SnapshotIndexCommit> commits)
           
 
Method Summary
 java.util.Iterator<SnapshotIndexCommit> iterator()
           
 boolean release()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotIndexCommits

public SnapshotIndexCommits(java.util.List<SnapshotIndexCommit> commits)
Method Detail

size

public int size()

iterator

public java.util.Iterator<SnapshotIndexCommit> iterator()
Specified by:
iterator in interface java.lang.Iterable<SnapshotIndexCommit>

release

public boolean release()
Specified by:
release in interface Releasable