org.elasticsearch.common.lucene
Class IndexCommitDelegate
java.lang.Object
org.apache.lucene.index.IndexCommit
org.elasticsearch.common.lucene.IndexCommitDelegate
- All Implemented Interfaces:
- java.lang.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. |
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 |
delegate
protected final org.apache.lucene.index.IndexCommit delegate
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
getSegmentsFileName
public java.lang.String getSegmentsFileName()
- Specified by:
getSegmentsFileName
in class org.apache.lucene.index.IndexCommit
getFileNames
public java.util.Collection<java.lang.String> getFileNames()
throws java.io.IOException
- Specified by:
getFileNames
in class org.apache.lucene.index.IndexCommit
- Throws:
java.io.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(java.lang.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 java.io.IOException
- Overrides:
getTimestamp
in class org.apache.lucene.index.IndexCommit
- Throws:
java.io.IOException
getUserData
public java.util.Map<java.lang.String,java.lang.String> getUserData()
throws java.io.IOException
- Specified by:
getUserData
in class org.apache.lucene.index.IndexCommit
- Throws:
java.io.IOException