org.elasticsearch.index.gateway
Class CommitPoints
java.lang.Object
org.elasticsearch.index.gateway.CommitPoints
- All Implemented Interfaces:
- java.lang.Iterable<CommitPoint>
public class CommitPoints
- extends java.lang.Object
- implements java.lang.Iterable<CommitPoint>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommitPoints
public CommitPoints(java.util.List<CommitPoint> commitPoints)
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