See: Description
Class | Description |
---|---|
HBaseUriFactory |
A
UriFactory that creates HBase specific resource URIs. |
This package defines the fr.inria.atlanmod.neoemf.data.hbase.util.HBaseUri
class, that extends fr.inria.atlanmod.neoemf.util.UriBuilder
to create HBase specific URIs. fr.inria.atlanmod.neoemf.data.hbase.util.HBaseUri
s are convenience wrappers of EMF URIs that set a dedicated
protocol that is parsed by NeoEMF to create the appropriate database.
fr.inria.atlanmod.neoemf.data.hbase.util.HBaseUri
s are created using the following code. The fr.inria.atlanmod.neoemf.data.hbase.util.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 uri = HBaseUriFactory.createRemoteUri("localhost", 1234, "myModel");
// The created URI can be used as a regular EMF URI to create a NeoEMF resource
Resource resource = resourceSet.createResource(uri);
// And accessed as a regular EMF resource
resource.getContents() [...]
Copyright © 2013–2019 Atlanmod. All rights reserved.