org.elasticsearch.index.gateway
Class CommitPoints

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

public class CommitPoints
extends Object
implements Iterable<CommitPoint>


Constructor Summary
CommitPoints(List<CommitPoint> commitPoints)
           
 
Method Summary
 com.google.common.collect.ImmutableList<CommitPoint> commits()
           
 CommitPoint.FileInfo findNameFile(String name)
           
 CommitPoint.FileInfo findPhysicalIndexFile(String physicalName)
           
static CommitPoint fromXContent(byte[] data)
           
 boolean hasVersion(long version)
           
 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(List<CommitPoint> commitPoints)
Method Detail

commits

public com.google.common.collect.ImmutableList<CommitPoint> commits()

hasVersion

public boolean hasVersion(long version)

findPhysicalIndexFile

public CommitPoint.FileInfo findPhysicalIndexFile(String physicalName)

findNameFile

public CommitPoint.FileInfo findNameFile(String name)

iterator

public Iterator<CommitPoint> iterator()
Specified by:
iterator in interface Iterable<CommitPoint>

toXContent

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

fromXContent

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


Copyright © 2009-2012. All Rights Reserved.