Package org.moeaframework.analysis.store
Class DataStoreProvider
java.lang.Object
org.moeaframework.analysis.store.DataStoreProvider
- Direct Known Subclasses:
FileSystemDataStoreProvider
Defines a SPI for creating data stores. A data store is identified by a URI with a specific schema. The remainder
of the URI, including the path and query segments, can be used to configure the data store.
Avoid including secrets in the URI itself. The provided URI may appear in logs, exception messages, or command line arguments, and is not a safe place to store secrets. Instead, if required, provide a reference to the secret, such as referencing an environment variable name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract DataStore
getDataStore
(URI uri) Creates the data store if defined by this provider.
-
Constructor Details
-
DataStoreProvider
public DataStoreProvider()Constructs a data store provider.
-
-
Method Details
-
getDataStore
Creates the data store if defined by this provider.- Parameters:
uri
- the URI defining the data store- Returns:
- the data store, or
null
if not implemented by this provider
-