Skip navigation links

Package fr.inria.atlanmod.neoemf.data.hbase.config

Provides configuration classes to define specific behaviors of HBase data persistence.

See: Description

Package fr.inria.atlanmod.neoemf.data.hbase.config Description

Provides configuration classes to define specific behaviors of HBase data persistence.

This package defines the configuration by extending Config: HBaseConfig is a fluent API allowing to easily set HBase specific configuration in client applications. Since the configuration implements Config it can be used to combine HBase 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 HBase backend in read-only mode, and a cache the accessed features to retrieve them efficiently. The read-only nature is a HBase specific option, while the caching behavior is defined at the core level.


 // Create the option map
 Map<String, Object> options = new HBaseConfig()
     .readOnly()
     .cacheFeatures()
     .toMap();

 // Load the resource with the specified options
 myResource.load(options);

 // Manipulate the resource with a read-only HBase backend and feature cache enabled
 myResource.getContents() [...]
 
Skip navigation links

Copyright © 2013–2019 Atlanmod. All rights reserved.