public class LuceneDirectoryBuilderImpl extends AbstractComponent implements LuceneDirectoryBuilder
LuceneDirectoryBuilder interface.| Modifier and Type | Field and Description |
|---|---|
private FileUtil |
fileUtil |
private static String |
PATH_SUFFIX_LUCENE
The suffix for the lucene directory.
|
private SystemUtil |
systemUtil |
| Constructor and Description |
|---|
LuceneDirectoryBuilderImpl()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.store.Directory |
createDirectory(SearchIndexConfiguration configuration)
This method creates a
Directory for the given
configuration. |
org.apache.lucene.store.Directory |
createDirectory(String directory)
This method creates a
Directory for the given
directory. |
protected void |
doInitialize()
This method performs the actual
initialization. |
void |
setFileUtil(FileUtil fileUtil) |
void |
setSystemUtil(SystemUtil systemUtil) |
doInitialized, getInitializationState, initializeprivate static final String PATH_SUFFIX_LUCENE
private FileUtil fileUtil
setFileUtil(FileUtil)private SystemUtil systemUtil
setSystemUtil(SystemUtil)@Inject public void setFileUtil(FileUtil fileUtil)
fileUtil - is the fileUtil to set@Inject public void setSystemUtil(SystemUtil systemUtil)
systemUtil - is the systemUtil to setprotected void doInitialize()
initialization. It is called when AbstractComponent.initialize() is
invoked for the first time. super.AbstractComponent.doInitialize().doInitialize in class AbstractComponentpublic org.apache.lucene.store.Directory createDirectory(SearchIndexConfiguration configuration)
Directory for the given
configuration.createDirectory in interface LuceneDirectoryBuilderconfiguration - is the SearchIndexConfiguration.Directory.public org.apache.lucene.store.Directory createDirectory(String directory)
Directory for the given
directory.createDirectory in interface LuceneDirectoryBuilderdirectory - is the path pointing to a directory for the index.Directory.Copyright © 2001–2016 mmm-Team. All rights reserved.