Package weka.core.metastore
Interface MetaStore
-
- All Known Implementing Classes:
XMLFileBasedMetaStore
public interface MetaStoreInterface for metastore implementations. The metastore is a simple storage place that can be used, as an example, for storing named configuration settings (e.g. general application settings, reusable database connections etc.).- Version:
- $Revision: 11805 $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateStore(java.lang.String storeName)Create a named storejava.lang.ObjectgetEntry(java.lang.String storeName, java.lang.String name, java.lang.Class<?> clazz)Get a named entry from the storejava.util.Set<java.lang.String>listMetaStoreEntries(java.lang.String storeName)Get a list of all entries in a named storejava.util.Set<java.lang.String>listMetaStoreEntries(java.lang.String storeName, java.lang.String prefix)Get a list of all named entries starting with the given prefixjava.util.Set<java.lang.String>listMetaStores()Get a list of all named meta storesvoidstoreEntry(java.lang.String storeName, java.lang.String name, java.lang.Object toStore)Store a named entry
-
-
-
Method Detail
-
listMetaStores
java.util.Set<java.lang.String> listMetaStores() throws java.io.IOExceptionGet a list of all named meta stores- Returns:
- a list of meta stores
- Throws:
java.io.IOException- if a problem occurs
-
listMetaStoreEntries
java.util.Set<java.lang.String> listMetaStoreEntries(java.lang.String storeName) throws java.io.IOExceptionGet a list of all entries in a named store- Parameters:
storeName- the name of the store to get entries for- Returns:
- a list of all entries in the named store
- Throws:
java.io.IOException- if a problem occurs
-
listMetaStoreEntries
java.util.Set<java.lang.String> listMetaStoreEntries(java.lang.String storeName, java.lang.String prefix) throws java.io.IOExceptionGet a list of all named entries starting with the given prefix- Parameters:
storeName- the name of the store to get entries forprefix- the prefix with which to search for entries- Returns:
- a list of entries
- Throws:
java.io.IOException- if a problem occurs
-
createStore
void createStore(java.lang.String storeName) throws java.io.IOExceptionCreate a named store- Parameters:
storeName- the name of the store to create- Throws:
java.io.IOException- if a problem occurs
-
getEntry
java.lang.Object getEntry(java.lang.String storeName, java.lang.String name, java.lang.Class<?> clazz) throws java.io.IOExceptionGet a named entry from the store- Parameters:
storeName- the name of the store to usename- the full name of the entry to retrieveclazz- the expected class of the entry when deserialized- Returns:
- the deserialized entry or null if the name does not exist in the store
- Throws:
java.io.IOException- if the deserialized entry does not match the expected class
-
storeEntry
void storeEntry(java.lang.String storeName, java.lang.String name, java.lang.Object toStore) throws java.io.IOExceptionStore a named entry- Parameters:
storeName- the name of the store to usename- the full name of the entry to storetoStore- a beans compliant object to store- Throws:
java.io.IOException- if a problem occurs
-
-