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(Object other) |
org.apache.lucene.store.Directory |
getDirectory() |
Collection<String> |
getFileNames() |
long |
getGeneration() |
int |
getSegmentCount() |
String |
getSegmentsFileName() |
Map<String,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 String getSegmentsFileName()
getSegmentsFileName
in class org.apache.lucene.index.IndexCommit
public Collection<String> getFileNames() throws IOException
getFileNames
in class org.apache.lucene.index.IndexCommit
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(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 Map<String,String> getUserData() throws IOException
getUserData
in class org.apache.lucene.index.IndexCommit
IOException
Copyright © 2009–2016. All rights reserved.