Search code examples
apachehbasegora

Best way to retrieve all the table records in Apache Gora 0.5


I know about

 query.setStartKey(startKey);
 query.setEndKey(endKey);

Isn't there something similar to

 SELECT * FROM TABLE;

in Apache Gora while creating queries, that would return me all the result set.

EDIT* I executed the program without setting anything. But still, the result set is null.

 Query<String, Obj> query = store.newQuery();
 Result<String, Obj> result= query.execute();

Solution

  • If you don't set the start nor the end key, it will retrieve all the table like the select you talk about -at least with HBase-.