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