See: Description
Class | Description |
---|---|
MapDbOptions |
A
PersistenceOptions that holds MapDB specific options. |
MapDbOptionsBuilder |
A
PersistenceOptionsBuilder that creates MapDB specific options. |
Enum | Description |
---|---|
MapDbStoreOptions |
PersistentStoreOptions that hold MapDB related database access features, such as autocommit, direct write,
usage of raw arrays or List s. |
This package defines two APIs extending PersistentResourceOptions
and PersistenceOptionsBuilder
:
MapDbStoreOptions
:
defines MapDB mapping options, such as explicit indice serialization vs. full collection serialization. HBase
specific options can be combined with generic options defined in PersistentResourceOptions
.MapDbOptionsBuilder
: a fluent API allowing to easily set MapDB
specific mapping options in client applications. Since the builder implements PersistenceOptionsBuilder
it can be used to combiner MapDB specific and generic
options.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 MapDB backend with an explicit representation of collection indices, and a cache the accessed features to retrieve them efficiently. The explicit indice representation is a MapDB specific option, while the caching behavior is defined at the core level.
// Create the option map
Map<String, Object> options = MapDBOptionsBuilder.newBuilder()
.directWriteIndices()
.cacheFeatures()
.asMap();
// Load the resource with the specified options
myResource.load(options);
// Manipulate the resource with a MapDB backend representing explicitly collection indices and feature cache enabled
myResource.getContents() [...]
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.