public class DirectoryFactory extends Object implements LuceneIndexFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_ID_SEGMENT_SEPARATOR |
| Constructor and Description |
|---|
DirectoryFactory(DirectoryType type,
org.apache.lucene.analysis.Analyzer analyzer) |
DirectoryFactory(DirectoryType type,
org.apache.lucene.analysis.Analyzer analyzer,
File hostingDir) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
clusterIdOf(File file) |
static File |
defaultHostingDir() |
void |
dispose() |
Map<? extends KCluster,? extends LuceneIndex> |
getIndexes() |
protected void |
loadIndexes(DirectoryType type,
org.apache.lucene.analysis.Analyzer analyzer,
File hostingDir) |
LuceneIndex |
newCluster(KCluster kcluster) |
void |
remove(KCluster cluster) |
public static final String CLUSTER_ID_SEGMENT_SEPARATOR
public DirectoryFactory(DirectoryType type, org.apache.lucene.analysis.Analyzer analyzer)
public DirectoryFactory(DirectoryType type, org.apache.lucene.analysis.Analyzer analyzer, File hostingDir)
protected void loadIndexes(DirectoryType type, org.apache.lucene.analysis.Analyzer analyzer, File hostingDir)
public static File defaultHostingDir()
public LuceneIndex newCluster(KCluster kcluster)
newCluster in interface LuceneIndexFactorypublic void remove(KCluster cluster)
remove in interface LuceneIndexFactorypublic Map<? extends KCluster,? extends LuceneIndex> getIndexes()
getIndexes in interface LuceneIndexFactorypublic void dispose()
dispose in interface DisposableCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.