Skip navigation links

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

Provides utility classes to create HBase specific URIs, serialize and deserialize HBase records, and manage HBase resource life-cycle.

See: Description

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

Provides utility classes to create HBase specific URIs, serialize and deserialize HBase records, and manage HBase resource life-cycle.

This package defines the HBaseURI class, that extends PersistenceURI to create HBase specific URIs. HBaseURIs are convenience wrappers of EMF URIs that set a dedicated protocol that is parsed by NeoEMF to create the appropriate database.

HBaseURIs are created using the following code. The HBaseURI allows to easily set the address and port of the remote HBase server that contains a model.


 // Create a HBase URI referencing the HBase server running on localhost:1234 and containing the resource myModel
 URI hbaseURI = HBaseURI.createHierarchicalURI("localhost", "1234", "myModel");

 // The created URI can be used as a regular EMF URI to create a NeoEMF resource
 Resource neoEMFResource = resourceSet.createResource(hbaseURI);

 // And accessed as a regular EMF resource
 neoEMFResource.getContents() [...]
 
Skip navigation links

Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.