C - the "self"-type of this Config@ParametersAreNonnullByDefault public class BaseBlueprintsConfig<C extends BaseBlueprintsConfig<C>> extends BaseConfig<C>
Config that provides utility methods to create generic Blueprints
configuration.
All features are all optional: configuration can be created using all or none of them.
| Modifier and Type | Field and Description |
|---|---|
static String |
BLUEPRINTS_PREFIX
The base prefix for all options related to Blueprints, whatever the implementation.
|
BASE_PREFIX| Constructor and Description |
|---|
BaseBlueprintsConfig()
Constructs a new
BaseBlueprintsConfig. |
| Modifier and Type | Method and Description |
|---|---|
protected Predicate<String> |
isPersistentKey()
Returns a
Predicate used to filter the options to be saved in a configuration file, in order to retrieve
them in a future execution. |
protected Predicate<String> |
isReadOnlyKey()
Returns a
Predicate used to filter read-only keys. |
protected void |
setGraph(Class<? extends com.tinkerpop.blueprints.Graph> graph)
Defines the
graph implementation of the Blueprints database. |
void |
setLocation(Path directory)
Defines the location of the Blueprints database.
|
protected C |
withDefault()
Defines the mapping to use for the created
BlueprintsBackend. |
addListener, addOption, addStore, autoSave, autoSave, cacheContainers, cacheFeatures, cacheMetaClasses, cacheSizes, createKey, getMapping, getName, getOptions, getStores, getVariant, log, log, merge, merge, readOnly, recordStats, save, setMapping, setMappingWithCheck, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, forName, forScheme, loadgetOption, getOptions, hasOption, isReadOnlypublic static final String BLUEPRINTS_PREFIX
public BaseBlueprintsConfig()
BaseBlueprintsConfig.@Nonnull protected C withDefault()
BlueprintsBackend.
This mapping corresponds to a simple representation of multi-valued features, by using the AbstractFeatureBean.position().
NOTE: This is the default mapping.
protected void setGraph(Class<? extends com.tinkerpop.blueprints.Graph> graph)
graph implementation of the Blueprints database.graph - the fully qualified name of the class of the Blueprints graphInvalidConfigException - if the graph is already defined and its value is different from the given graphpublic void setLocation(Path directory)
NOTE: This option is intended to be used internally by the BlueprintsBackendFactory.
directory - the location of the database@Nonnull protected Predicate<String> isPersistentKey()
BaseConfigPredicate used to filter the options to be saved in a configuration file, in order to retrieve
them in a future execution.
By default, only the options related to a back-end are saved.
isPersistentKey in class BaseConfig<C extends BaseBlueprintsConfig<C>>BaseConfig.save(Path)@Nonnull protected Predicate<String> isReadOnlyKey()
BaseConfigPredicate used to filter read-only keys. These keys can not be modified after their first
declaration.isReadOnlyKey in class BaseConfig<C extends BaseBlueprintsConfig<C>>BaseConfig.addOption(String, Object)Copyright © 2013–2019 Atlanmod. All rights reserved.