See: Description
Interface | Description |
---|---|
HBaseResourceOptions |
PersistentResourceOptions that hold HBase related resource-level features. |
Class | Description |
---|---|
HBaseOptions |
A
PersistenceOptions that holds HBase specific options. |
HBaseOptionsBuilder |
A
AbstractPersistenceOptionsBuilder subclass that creates HBase specific options. |
This package defines two APIs extending PersistentResourceOptions
and PersistenceOptionsBuilder
:
HBaseResourceOptions
:
defines HBase specific options, such as the access policy of the HBase store (read-write / read-only). HBase specific
options can be combined with generic options defined in PersistentResourceOptions
.HBaseOptionsBuilder
: a fluent API allowing to easily set HBase
specific options in client applications. Since the builder implements PersistenceOptionsBuilder
it can be used to combine HBase 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 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 = HBaseOptionsBuilder.newBuilder()
.readOnly()
.cacheFeatures()
.asMap();
// 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() [...]
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.