- 論壇徽章:
- 0
|
本帖最后由 logicBaby 于 2015-09-22 20:46 編輯
Scan scan = new Scan(Bytes.toBytes(startRowKey), Bytes.toBytes(stopRowKey));
String rowRegex = String.format(".*\\|.*\\|%s\\|%s", serverRegex, channelRegex);
Filter filter = new RowFilter(CompareFilter.CompareOp.EQUAL, new RegexStringComparator(rowRegex));
scan.setFilter(filter);
添加了這個(gè)RowFilter后非常慢;如果沒(méi)有這個(gè)RowFilter,我自己在代碼里判斷過(guò)濾反倒非?;
為何?難道Filter不能和startRowKey/stopRowKey一起指定?還是指定了Filter后startRowKey/stopRowKey就不起作用了?成全表掃描了?
嚴(yán)重懷疑是HBase的bug,HBase版本 1.0.0+cdh5.4.5+175 …… |
|