Hi, I'm an architecture engineer and native Korean speaker.
I have started to live in Seoul in Korea.
I have been developping Abilists tool,
Please feel free to visit abilists.com
Monday, August 12, 2013
Hbase - Page limit
@For a paging like [Select * from aTable limit 10]
// HbaseDao.java
public ResultScanner resultScanner(String tableName, int intPages) throws Exception {
// Get a object from Pool
HTableInterface hTable = htablePool.getTable(tableName);
long pageSize = intPages;
Filter filter = new PageFilter(pageSize);
Scan s =new Scan();
s.setFilter(filter);
ResultScanner rs = hTable.getScanner(s);
return rs;
}
Labels:
Hbase
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment