Home > other >  A few restrictions to achieve HBASE query results?
A few restrictions to achieve HBASE query results?

Time:09-16

Everyone a great god, and I at the time of query hbase from screening results, draw article 100 before the number to achieve? How do you achieve?

CodePudding user response:

Org, apache hadoop, hbase. Filter. PageFilter
Specific usage
 
Scan Scan=new Scan ();
Scan. SetFilter (new PageFilter (100));

Just at the time of scan, 100 truncation scan, return a result, there is no guarantee that LIMIT 100 such fields as the SQL ORDER BY XXX and orderly,

CodePudding user response:

# command line
Scan 'table' {LIMIT=& gt; 10}

# code sets
Scan. SetMaxResultSize (100);
Scan. SetLimit (100).
  • Related