org.elasticsearch.common.lucene
Class IndexCommitDelegate

java.lang.Object
  extended by org.apache.lucene.index.IndexCommit
      extended by org.elasticsearch.common.lucene.IndexCommitDelegate
All Implemented Interfaces:
Comparable<org.apache.lucene.index.IndexCommit>
Direct Known Subclasses:
SnapshotIndexCommit

public abstract class IndexCommitDelegate
extends org.apache.lucene.index.IndexCommit

A simple delegate that delegates all IndexCommit calls to a delegated IndexCommit.


Field Summary
protected  org.apache.lucene.index.IndexCommit delegate
           
 
Constructor Summary
IndexCommitDelegate(org.apache.lucene.index.IndexCommit delegate)
          Constructs a new IndexCommit that will delegate all calls to the provided delegate.
 
Method Summary
 void delete()
           
 boolean equals(Object other)
           
 org.apache.lucene.store.Directory getDirectory()
           
 Collection<String> getFileNames()
           
 long getGeneration()
           
 int getSegmentCount()
           
 String getSegmentsFileName()
           
 long getTimestamp()
           
 Map<String,String> getUserData()
           
 long getVersion()
           
 int hashCode()
           
 boolean isDeleted()
           
 
Methods inherited from class org.apache.lucene.index.IndexCommit
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final org.apache.lucene.index.IndexCommit delegate
Constructor Detail

IndexCommitDelegate

public IndexCommitDelegate(org.apache.lucene.index.IndexCommit delegate)
Constructs a new IndexCommit that will delegate all calls to the provided delegate.

Parameters:
delegate - The delegate
Method Detail

getSegmentsFileName

public String getSegmentsFileName()
Specified by:
getSegmentsFileName in class org.apache.lucene.index.IndexCommit

getFileNames

public Collection<String> getFileNames()
                                throws IOException
Specified by:
getFileNames in class org.apache.lucene.index.IndexCommit
Throws:
IOException

getDirectory

public org.apache.lucene.store.Directory getDirectory()
Specified by:
getDirectory in class org.apache.lucene.index.IndexCommit

delete

public void delete()
Specified by:
delete in class org.apache.lucene.index.IndexCommit

isDeleted

public boolean isDeleted()
Specified by:
isDeleted in class org.apache.lucene.index.IndexCommit

getSegmentCount

public int getSegmentCount()
Specified by:
getSegmentCount in class org.apache.lucene.index.IndexCommit

equals

public boolean equals(Object other)
Overrides:
equals in class org.apache.lucene.index.IndexCommit

hashCode

public int hashCode()
Overrides:
hashCode in class org.apache.lucene.index.IndexCommit

getVersion

public long getVersion()
Specified by:
getVersion in class org.apache.lucene.index.IndexCommit

getGeneration

public long getGeneration()
Specified by:
getGeneration in class org.apache.lucene.index.IndexCommit

getTimestamp

public long getTimestamp()
                  throws IOException
Overrides:
getTimestamp in class org.apache.lucene.index.IndexCommit
Throws:
IOException

getUserData

public Map<String,String> getUserData()
                               throws IOException
Specified by:
getUserData in class org.apache.lucene.index.IndexCommit
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.