org.hibernate.search.backend.impl.lucene
public class SharedIndexWorkspaceImpl extends AbstractWorkspaceImpl
writerHolder| Constructor and Description |
|---|
SharedIndexWorkspaceImpl(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.
|
IndexWriter |
getIndexWriter()
Gets the IndexWriter, opening one if needed.
|
IndexWriter |
getIndexWriter(ErrorContextBuilder errorContextBuilder) |
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, incrementModificationCounter, optimizerPhase, performOptimization, shutDownNowpublic SharedIndexWorkspaceImpl(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 IndexWriter getIndexWriter()
WorkspacegetIndexWriter in interface WorkspacegetIndexWriter in class AbstractWorkspaceImplpublic IndexWriter getIndexWriter(ErrorContextBuilder errorContextBuilder)
getIndexWriter in class AbstractWorkspaceImplpublic void flush()
Workspacepublic void notifyWorkApplied(LuceneWork work)
Workspacework - the LuceneWork which was just processedCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved