org.elasticsearch.index.deletionpolicy
Class SnapshotIndexCommits

java.lang.Object
  extended by 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.


Constructor Summary
SnapshotIndexCommits(List<SnapshotIndexCommit> commits)
           
 
Method Summary
 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(List<SnapshotIndexCommit> commits)
Method Detail

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.