org.elasticsearch.common.lucene
Class IndexCommitDelegate
java.lang.Object
org.apache.lucene.index.IndexCommit
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. |
Methods inherited from class org.apache.lucene.index.IndexCommit |
compareTo |
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 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.