Interface IndexWriterDelegator
-
- All Known Implementing Classes:
IndexWriterDelegatorImpl
public interface IndexWriterDelegatorA component exposing features similar toIndexWriter, but simpler to use, and delegated to an actual writer.This interface also allows easy mocking of the index writer in unit tests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longaddDocuments(Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs)longdeleteDocuments(org.apache.lucene.index.Term term)longdeleteDocuments(org.apache.lucene.search.Query query)longupdateDocuments(org.apache.lucene.index.Term term, Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs)
-
-
-
Method Detail
-
addDocuments
long addDocuments(Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) throws IOException
- Throws:
IOException
-
updateDocuments
long updateDocuments(org.apache.lucene.index.Term term, Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) throws IOException- Throws:
IOException
-
deleteDocuments
long deleteDocuments(org.apache.lucene.index.Term term) throws IOException- Throws:
IOException
-
deleteDocuments
long deleteDocuments(org.apache.lucene.search.Query query) throws IOException- Throws:
IOException
-
-