See: Description
Class | Description |
---|---|
BerkeleyDbConfig |
A
Config that creates BerkeleyDB specific configuration. |
This package defines the configuration by extending Config
: fr.inria.atlanmod.neoemf.data.mapdb.config.BerkeleyDbConfig
is a fluent API allowing to easily set BerkeleyDB
specific mapping configuration in client applications. Since the configuration implements Config
it can be used to combiner BerkeleyDB specific and generic configuration.
These classes are used to create option maps used in EMF save and load methods. For example, the following code creates a map that tells the framework to use a BerkeleyDB backend with an explicit representation of collection indices, and a cache the accessed features to retrieve them efficiently. The explicit indice representation is a BerkeleyDB specific option, while the caching behavior is defined at the core level.
// Create the option map
Map<String, Object> options = new BerkeleyDbConfig()
.withIndices()
.cacheFeatures()
.toMap();
// Load the resource with the specified options
myResource.load(options);
// Manipulate the resource with a BerkeleyDB backend representing explicitly collection indices and feature cache
enabled
myResource.getContents() [...]
Copyright © 2013–2019 Atlanmod. All rights reserved.