public class SharedIndexWorkspaceImpl extends AbstractWorkspaceImpl
writerHolder
Constructor and Description |
---|
SharedIndexWorkspaceImpl(DirectoryBasedIndexManager indexManager,
WorkerBuildContext context,
Properties cfg) |
Modifier and Type | Method and Description |
---|---|
CommitPolicy |
getCommitPolicy()
Get the commit policy applied to the workspace
|
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.
|
afterTransactionApplied, areSingleTermDeletesSafe, flush, getAnalyzer, getDocumentBuilder, getEntitiesInIndexManager, incrementModificationCounter, isDeleteByTermEnforced, optimizerPhase, performOptimization, shutDownNow
public SharedIndexWorkspaceImpl(DirectoryBasedIndexManager indexManager, WorkerBuildContext context, Properties cfg)
public IndexWriter getIndexWriter()
Workspace
getIndexWriter
in interface Workspace
getIndexWriter
in class AbstractWorkspaceImpl
public IndexWriter getIndexWriter(ErrorContextBuilder errorContextBuilder)
getIndexWriter
in class AbstractWorkspaceImpl
public void notifyWorkApplied(LuceneWork work)
Workspace
work
- the LuceneWork which was just processedpublic CommitPolicy getCommitPolicy()
Workspace
CommitPolicy
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved