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, shutDownNow
public ExclusiveIndexWorkspaceImpl(DirectoryBasedIndexManager indexManager, WorkerBuildContext context, Properties cfg)
public void afterTransactionApplied(boolean someFailureHappened, boolean streaming)
Workspace
Workspace.getIndexWriter()
in a finally block
as implementations might rely on counters to release the IndexWriter.afterTransactionApplied
in interface Workspace
afterTransactionApplied
in class AbstractWorkspaceImpl
someFailureHappened
- 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()
Workspace
public void notifyWorkApplied(LuceneWork work)
Workspace
work
- the LuceneWork which was just processedCopyright © 2006–2014 Hibernate. All rights reserved.