Class IndexWriterDelegatorImpl
- java.lang.Object
-
- org.hibernate.search.backend.lucene.lowlevel.writer.impl.IndexWriterDelegatorImpl
-
- All Implemented Interfaces:
IndexWriterDelegator
public class IndexWriterDelegatorImpl extends Object implements IndexWriterDelegator
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description IndexWriterDelegatorImpl(org.apache.lucene.index.IndexWriter delegate, EventContext eventContext, SimpleScheduledExecutor delayedCommitExecutor, TimingSource timingSource, int commitInterval, FailureHandler failureHandler, org.hibernate.search.backend.lucene.lowlevel.writer.impl.IndexWriterDelegatorImpl.DelayedCommitFailureHandler delayedCommitFailureHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddDocuments(Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs)voidcommit()voidcommitOrDelay()longdeleteDocuments(org.apache.lucene.index.Term term)longdeleteDocuments(org.apache.lucene.search.Query query)org.apache.lucene.index.IndexWritergetDelegateForTests()voidmergeSegments()org.apache.lucene.index.DirectoryReaderopenReader()org.apache.lucene.index.DirectoryReaderopenReaderIfChanged(org.apache.lucene.index.DirectoryReader oldReader)longupdateDocuments(org.apache.lucene.index.Term term, Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs)
-
-
-
Constructor Detail
-
IndexWriterDelegatorImpl
public IndexWriterDelegatorImpl(org.apache.lucene.index.IndexWriter delegate, EventContext eventContext, SimpleScheduledExecutor delayedCommitExecutor, TimingSource timingSource, int commitInterval, FailureHandler failureHandler, org.hibernate.search.backend.lucene.lowlevel.writer.impl.IndexWriterDelegatorImpl.DelayedCommitFailureHandler delayedCommitFailureHandler)
-
-
Method Detail
-
addDocuments
public long addDocuments(Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) throws IOException
- Specified by:
addDocumentsin interfaceIndexWriterDelegator- Throws:
IOException
-
updateDocuments
public long updateDocuments(org.apache.lucene.index.Term term, Iterable<? extends Iterable<? extends org.apache.lucene.index.IndexableField>> docs) throws IOException- Specified by:
updateDocumentsin interfaceIndexWriterDelegator- Throws:
IOException
-
deleteDocuments
public long deleteDocuments(org.apache.lucene.index.Term term) throws IOException- Specified by:
deleteDocumentsin interfaceIndexWriterDelegator- Throws:
IOException
-
deleteDocuments
public long deleteDocuments(org.apache.lucene.search.Query query) throws IOException- Specified by:
deleteDocumentsin interfaceIndexWriterDelegator- Throws:
IOException
-
mergeSegments
public void mergeSegments() throws IOException- Throws:
IOException
-
commit
public void commit()
-
commitOrDelay
public void commitOrDelay()
-
openReader
public org.apache.lucene.index.DirectoryReader openReader() throws IOException- Throws:
IOException
-
openReaderIfChanged
public org.apache.lucene.index.DirectoryReader openReaderIfChanged(org.apache.lucene.index.DirectoryReader oldReader) throws IOException- Throws:
IOException
-
getDelegateForTests
public org.apache.lucene.index.IndexWriter getDelegateForTests()
-
-