|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFlintConfig
An interface for the flint configurations.
This API is used by Bastille to know how it should use Flint.
Implement this interface, if you're using a non-standard configuration.
Method Summary | |
---|---|
File |
getDirectory()
|
IndexConfig |
getIndexConfig(String name)
|
List<String> |
getIndexNames()
|
List<File> |
getTemplates()
|
boolean |
hasMultiple()
Indicates whether flint is configured for multiple indexes. |
void |
reload()
Causes the config to be reloaded. |
File |
toFile(Document doc)
Returns the file corresponding to the specified document. |
String |
toPath(File f)
Returns the value of the path field for the specified file. |
Method Detail |
---|
File getDirectory()
boolean hasMultiple()
true
if Flint is configured for multiple indexes;
false
for a single index.List<File> getTemplates()
List<String> getIndexNames()
IndexConfig getIndexConfig(String name)
name
- The name of the index
void reload()
File toFile(Document doc)
This method is used to determine whether changes in some files require reindexing and is typically used by the indexing process.
doc
- The Lucene document
String toPath(File f)
f
- for the specified file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |