org.hibernate.search.backend.impl.lucene
public class ExclusiveIndexWorkspaceImpl extends AbstractWorkspaceImpl
writerHolder| Constructor and Description |
|---|
ExclusiveIndexWorkspaceImpl(DirectoryBasedIndexManager indexManager,
WorkerBuildContext context,
Properties cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTransactionApplied(boolean someFailureHappened,
boolean streaming)
Invoked after all changes of a transaction are applied.
|
void |
flush()
Makes sure eventually pending changes are made visible to IndexReaders.
|
void |
notifyWorkApplied(LuceneWork work)
Some workspaces need this to determine for example the kind of flush operations which are safe
to apply.
|
areSingleTermDeletesSafe, getAnalyzer, getDocumentBuilder, getEntitiesInIndexManager, getIndexWriter, getIndexWriter, incrementModificationCounter, optimizerPhase, performOptimization, shutDownNowpublic ExclusiveIndexWorkspaceImpl(DirectoryBasedIndexManager indexManager, WorkerBuildContext context, Properties cfg)
public void afterTransactionApplied(boolean someFailureHappened,
boolean streaming)
WorkspaceWorkspace.getIndexWriter() in a finally block
as implementations might rely on counters to release the IndexWriter.afterTransactionApplied in interface WorkspaceafterTransactionApplied in class AbstractWorkspaceImplsomeFailureHappened - usually false, set to true if errors
where caught while using the IndexWriterstreaming - if no immediate visibility of the change is required (hint for performance)public void flush()
Workspacepublic void notifyWorkApplied(LuceneWork work)
Workspacework - the LuceneWork which was just processedCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved