public class WorkspaceHolder extends Object
Constructor and Description |
---|
WorkspaceHolder() |
Modifier and Type | Method and Description |
---|---|
void |
applyStreamWork(LuceneWork singleOperation,
IndexingMonitor monitor) |
void |
applyWork(List<LuceneWork> workList,
IndexingMonitor monitor) |
void |
close() |
void |
flushAndReleaseResources() |
Lock |
getExclusiveWriteLock() |
LuceneBackendResources |
getIndexResources() |
void |
indexMappingChanged() |
void |
initialize(Properties props,
WorkerBuildContext context,
IndexManager indexManager) |
void |
setCustomWorkspace(AbstractWorkspaceImpl workspace)
If invoked before
initialize(Properties, WorkerBuildContext, IndexManager)
it can set a customized Workspace instance to be used by this backend. |
public void initialize(Properties props, WorkerBuildContext context, IndexManager indexManager)
public void close()
public void applyStreamWork(LuceneWork singleOperation, IndexingMonitor monitor)
public void applyWork(List<LuceneWork> workList, IndexingMonitor monitor)
public Lock getExclusiveWriteLock()
public LuceneBackendResources getIndexResources()
public void setCustomWorkspace(AbstractWorkspaceImpl workspace)
initialize(Properties, WorkerBuildContext, IndexManager)
it can set a customized Workspace instance to be used by this backend.workspace
- the new workspacepublic void indexMappingChanged()
public void flushAndReleaseResources()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved