public final class WorkingMemoryDataStores extends Object implements DataStores
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_NAME |
| Constructor and Description |
|---|
WorkingMemoryDataStores(String directory,
PropositionDefinitionCache cache)
Constructs a working memory creator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
exists(String dbname) |
PropositionDefinitionCache |
getCache() |
org.eurekaclinical.datastore.DataStore<String,WorkingMemoryFactStore> |
getDataStore(String name)
Gets the persisted data store with the given name, if it exists, or
creates a new data store with the given name.
|
public static final String DATABASE_NAME
public WorkingMemoryDataStores(String directory, PropositionDefinitionCache cache) throws IOException
directory - the directory in which the working memory data stores
will be stored. Cannot be null.cache - the proposition definitions to write to the store.IOExceptionpublic PropositionDefinitionCache getCache()
public boolean exists(String dbname) throws IOException
exists in interface DataStoresIOExceptionpublic org.eurekaclinical.datastore.DataStore<String,WorkingMemoryFactStore> getDataStore(String name) throws IOException
getDataStore in interface DataStoresname - the name of the data store.IOException - if an error occurred querying for the data store.public void close()
throws IOException
close in interface AutoCloseableclose in interface DataStoresIOExceptionCopyright © 2012–2018 Emory University. All rights reserved.