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 LuceneIndexFactory
public void remove(KCluster cluster)
remove
in interface LuceneIndexFactory
public Map<? extends KCluster,? extends LuceneIndex> getIndexes()
getIndexes
in interface LuceneIndexFactory
public void dispose()
dispose
in interface org.uberfire.commons.lifecycle.Disposable
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.