org.elasticsearch.index.gateway
Class CommitPoints

java.lang.Object
  extended by org.elasticsearch.index.gateway.CommitPoints
All Implemented Interfaces:
java.lang.Iterable<CommitPoint>

public class CommitPoints
extends java.lang.Object
implements java.lang.Iterable<CommitPoint>


Constructor Summary
CommitPoints(java.util.List<CommitPoint> commitPoints)
           
 
Method Summary
 org.elasticsearch.common.collect.ImmutableList<CommitPoint> commits()
           
 CommitPoint.FileInfo findNameFile(java.lang.String name)
           
 CommitPoint.FileInfo findPhysicalIndexFile(java.lang.String physicalName)
           
static CommitPoint fromXContent(byte[] data)
           
 boolean hasVersion(long version)
           
 java.util.Iterator<CommitPoint> iterator()
           
static byte[] toXContent(CommitPoint commitPoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitPoints

public CommitPoints(java.util.List<CommitPoint> commitPoints)
Method Detail

commits

public org.elasticsearch.common.collect.ImmutableList<CommitPoint> commits()

hasVersion

public boolean hasVersion(long version)

findPhysicalIndexFile

public CommitPoint.FileInfo findPhysicalIndexFile(java.lang.String physicalName)

findNameFile

public CommitPoint.FileInfo findNameFile(java.lang.String name)

iterator

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

toXContent

public static byte[] toXContent(CommitPoint commitPoint)
                         throws java.lang.Exception
Throws:
java.lang.Exception

fromXContent

public static CommitPoint fromXContent(byte[] data)
                                throws java.lang.Exception
Throws:
java.lang.Exception