public abstract class IndexCommitDelegate
extends org.apache.lucene.index.IndexCommit
IndexCommit
calls to a delegated
IndexCommit
.Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.index.IndexCommit |
delegate |
Constructor and Description |
---|
IndexCommitDelegate(org.apache.lucene.index.IndexCommit delegate)
Constructs a new
IndexCommit that will delegate all calls
to the provided delegate. |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object other) |
org.apache.lucene.store.Directory |
getDirectory() |
java.util.Collection<java.lang.String> |
getFileNames() |
long |
getGeneration() |
int |
getSegmentCount() |
java.lang.String |
getSegmentsFileName() |
java.util.Map<java.lang.String,java.lang.String> |
getUserData() |
int |
hashCode() |
boolean |
isDeleted() |
public IndexCommitDelegate(org.apache.lucene.index.IndexCommit delegate)
IndexCommit
that will delegate all calls
to the provided delegate.delegate
- The delegatepublic java.lang.String getSegmentsFileName()
getSegmentsFileName
in class org.apache.lucene.index.IndexCommit
public java.util.Collection<java.lang.String> getFileNames() throws java.io.IOException
getFileNames
in class org.apache.lucene.index.IndexCommit
java.io.IOException
public org.apache.lucene.store.Directory getDirectory()
getDirectory
in class org.apache.lucene.index.IndexCommit
public void delete()
delete
in class org.apache.lucene.index.IndexCommit
public boolean isDeleted()
isDeleted
in class org.apache.lucene.index.IndexCommit
public int getSegmentCount()
getSegmentCount
in class org.apache.lucene.index.IndexCommit
public boolean equals(java.lang.Object other)
equals
in class org.apache.lucene.index.IndexCommit
public int hashCode()
hashCode
in class org.apache.lucene.index.IndexCommit
public long getGeneration()
getGeneration
in class org.apache.lucene.index.IndexCommit
public java.util.Map<java.lang.String,java.lang.String> getUserData() throws java.io.IOException
getUserData
in class org.apache.lucene.index.IndexCommit
java.io.IOException