Database Reference
In-Depth Information
// Only row key will be fetched.
client.setFilter(keyOnlyFilter);
queryString = "Select e from Employee e";
query = em.createQuery(queryString);
employees = query.getResultList();
System.out.println(employees.size());
employee = employees.get(0);
System.out.println(employee.getEmployeeId());
System.out.println(employee.getEmployeeName());
System.out.println(employee.getAddress());
System.out.println(employee.getDepartment());
You can start using HBase in your project using Kundera very easily. A few
highlighting features of Kundera that makes working with HBase simple are
as follows:
• It serves as a JPA compliant solution. JPA is a very popular Java API
speciication for RDBMS for a long period of time.
• It allows you to focus on the domain model and forget the complexity of
NoSQL by enabling you to perform operations and query data using the
common high-level API.
• It enables switching across data stores using the same code by simply
changing conigurations.
REST clients
HBase has a close relationship with Java. In the Java world, REST is a way to interact
with objects over the Web. HBase provides the REST service that runs as a separate
process and communicates with HBase. This REST service uses the same client API
to access HBase.
 
Search WWH ::




Custom Search