|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetaDataStore
The MetaDataStore provides a mechanism to store name/value pairs in associate with an index. The search engine does not store any data of its own in the MetaDataStore. This service exists to allow applications that use the search engine to store a few values in the index directory in a safe way for the engine. Changes are persisted at the same time that the engine dumps in-memory data to disk.
Method Summary | |
---|---|
java.lang.String |
getProperty(java.lang.String name)
Gets the value of the named property. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Gets the value of the named property, or the default value if no value exists. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets a propery in the meta data store. |
Method Detail |
---|
void setProperty(java.lang.String name, java.lang.String value)
SearchEngine.flush()
method is
called.
name
- the name of the property to setvalue
- the value of the named propertyjava.lang.String getProperty(java.lang.String name)
name
- the property to retrieve
java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- the property to retrievedefaultValue
- the default value to return if the
property is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |